Skip to content

Commit

Permalink
Reward splitter (#65)
Browse files Browse the repository at this point in the history
* Update v2 migration

* Remove solidity-docgen

* Fix first rewards update for Genesis vault

* Fix RewardEthTokenMock

* Fix snapshot

* Fix snapshot

* Fix STW-10

* Fix tests and snapshots

* Fix snapshots

* Update deployment scripts

* [STW-03] Update position fee calculation

* Fix GenesisVaultCreated in test

* Implement RewardSplitter

* Update snapshots

* Implement CumulativeMerkleDrop

* Update snapshots

* Fix safeTransfer

* Fix snapshot

* Remove snapshot for signature update

* Add getRate for Balancer RateProvider

* Add audits to the repo
  • Loading branch information
tsudmi authored Aug 20, 2023
1 parent 9c30c45 commit 65b6857
Show file tree
Hide file tree
Showing 32 changed files with 1,908 additions and 33 deletions.
15 changes: 15 additions & 0 deletions abi/IBalancerRateProvider.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"inputs": [],
"name": "getRate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
117 changes: 117 additions & 0 deletions abi/ICumulativeMerkleDrop.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
[
{
"inputs": [],
"name": "AlreadyClaimed",
"type": "error"
},
{
"inputs": [],
"name": "InvalidProof",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "cumulativeAmount",
"type": "uint256"
}
],
"name": "Claimed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "merkleRoot",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "string",
"name": "proofsIpfsHash",
"type": "string"
}
],
"name": "MerkleRootUpdated",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "cumulativeAmount",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "merkleProof",
"type": "bytes32[]"
}
],
"name": "claim",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "merkleRoot",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_merkleRoot",
"type": "bytes32"
},
{
"internalType": "string",
"name": "proofsIpfsHash",
"type": "string"
}
],
"name": "setMerkleRoot",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "token",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit 65b6857

Please sign in to comment.