Skip to content

Instantly share code, notes, and snippets.

Avatar

Brendan Asselstine asselstine

View GitHub Profile
@asselstine
asselstine / generate.js
Created December 7, 2022 01:10
Generate Withdrawal Proof for Polygon
View generate.js
/*
You may need to manually withdraw from the Polygon blockchain.
Once you've run the withdraw transaction on Polygon, you'll need to provide a burn proof on Ethereum.
Use the script below to generate the proof, then go to the WithdrawToWrapperRoot contract on Etherscan:
https://etherscan.io/address/0xb67a8438e15918de8f42aab84eb3950f2588a534
View Claiming Aave Rewards on Polygon.md
[
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
View Gnosis Safe ABI
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"AddedOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"approvedHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"ApproveHash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"masterCopy","type":"address"}],"name":"ChangedMasterCopy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"threshold","type":"uint256"}],"name":"ChangedThreshold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract Module","name":"module","type":"address"}],"name":"DisabledModule","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract Module","name":"module","type":"address"}],"name"
View Tsunami Prize Strategy Psuedocode
contract PickHistory {
// COMP token allows for users to opt-out of delegation for cheap transfers.
function updateBalance(address user, uint256 balance, uint256 currentDrawNumber) external onlyPrizeStrategy {
// get users current balance: (balance, draw number)
// if currentDrawNumber > balance draw number
// then push new record onto stack (balance, currentDrawNumber) 20k gas
View PoolTogether Developer Call #3 Meeting Summary.md

PoolTogether Developer Call #3

April 21, 2021

Agenda

  • Show & Tell
  • Discussion

Show & Tell

View PoolTogether Developer Call #2 Meeting Summary.md

PoolTogether Developer Call #2

April 7, 2021

Agenda

  • Show & Tell
  • Discussion

Show & Tell

View PoolTogether Developer Call #1 Meeting Summary.md

PoolTogether Developer Call #1

March 24, 2021

Agenda

The agenda for the meeting included:

  • Gitcoin Hackathon
  • Contributing Code
  • Show & Tell
View PTIP-6 Proposal Details.md
View POOL_Pool_Proposal_Preparation.md
View Compound Governance Voting using Gnosis Multisig
1. Open the multisig wallet.
2. Click "Add" for a new Multisig transaction
3. Enter the address 0xc0dA01a04C3f3E0be433606045bB7017A7323E38
4. Cut and paste the abi:
[{
"constant": false,
"inputs": [