Skip to content

Commit

Permalink
Merge branch 'sparrowDom/nativeStaking' into nicka/native-staking-for…
Browse files Browse the repository at this point in the history
…k-tests
  • Loading branch information
sparrowDom committed May 6, 2024
2 parents d12957a + fd17ec9 commit 97f1fcd
Show file tree
Hide file tree
Showing 35 changed files with 3,233 additions and 388 deletions.
144 changes: 109 additions & 35 deletions brownie/abi/buyback.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "bps",
"type": "uint256"
}
],
"name": "CVXShareBpsUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -130,7 +143,7 @@
"type": "address"
}
],
"name": "TreasuryManagerUpdated",
"name": "SwapRouterUpdated",
"type": "event"
},
{
Expand All @@ -143,9 +156,35 @@
"type": "address"
}
],
"name": "UniswapUniversalRouterUpdated",
"name": "TreasuryManagerUpdated",
"type": "event"
},
{
"inputs": [],
"name": "balanceForCVX",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "balanceForOGV",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "claimGovernance",
Expand Down Expand Up @@ -181,12 +220,12 @@
},
{
"inputs": [],
"name": "cvxPath",
"name": "cvxShareBps",
"outputs": [
{
"internalType": "bytes",
"internalType": "uint256",
"name": "",
"type": "bytes"
"type": "uint256"
}
],
"stateMutability": "view",
Expand All @@ -209,7 +248,7 @@
"inputs": [
{
"internalType": "address",
"name": "_uniswapUniversalRouter",
"name": "_swapRouter",
"type": "address"
},
{
Expand All @@ -226,6 +265,11 @@
"internalType": "address",
"name": "_rewardsSource",
"type": "address"
},
{
"internalType": "uint256",
"name": "_cvxShareBps",
"type": "uint256"
}
],
"name": "initialize",
Expand Down Expand Up @@ -279,19 +323,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ogvPath",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "rewardsSource",
Expand All @@ -312,6 +343,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_bps",
"type": "uint256"
}
],
"name": "setCVXShareBps",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -342,11 +386,11 @@
"inputs": [
{
"internalType": "address",
"name": "_address",
"name": "_router",
"type": "address"
}
],
"name": "setTreasuryManager",
"name": "setSwapRouter",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand All @@ -355,11 +399,11 @@
"inputs": [
{
"internalType": "address",
"name": "_router",
"name": "_address",
"type": "address"
}
],
"name": "setUniswapUniversalRouter",
"name": "setTreasuryManager",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand All @@ -386,20 +430,56 @@
},
{
"internalType": "uint256",
"name": "minOGV",
"name": "minCVX",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "swapData",
"type": "bytes"
}
],
"name": "swapForCVX",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "minCVX",
"name": "oTokenAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minOGV",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "swapData",
"type": "bytes"
}
],
"name": "swap",
"name": "swapForOGV",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "swapRouter",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -446,15 +526,9 @@
},
{
"inputs": [],
"name": "universalRouter",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"name": "updateBuybackSplits",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit 97f1fcd

Please sign in to comment.