Skip to content

Commit

Permalink
Deploy 32 (#850)
Browse files Browse the repository at this point in the history
* Remove mintMultiple test call (code already removed before)

* Show cvx token address in debug report

* mainnet deploy 32
  • Loading branch information
DanielVF committed Dec 10, 2021
1 parent 3fefd33 commit 0b9d5ea
Show file tree
Hide file tree
Showing 9 changed files with 515 additions and 53 deletions.
2 changes: 1 addition & 1 deletion contracts/contracts/strategies/ConvexStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ contract ConvexStrategy is BaseCurveStrategy {

address internal cvxDepositorAddress;
address internal cvxRewardStakerAddress;
address internal cvxRewardTokenAddress;
address public cvxRewardTokenAddress;
uint256 internal cvxDepositorPTokenId;

/**
Expand Down
3 changes: 2 additions & 1 deletion contracts/deployments/mainnet/.migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
"028_dai_default_aave": 1635960341,
"029_convex": 1637241490,
"030_staking_to_new_governor": 1637241517,
"031_staking_add_rescue": 1637241582
"031_staking_add_rescue": 1637241582,
"032_convex_rewards": 1638551616
}
133 changes: 92 additions & 41 deletions contracts/deployments/mainnet/ConvexStrategy.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion contracts/smoke/mintRedeemTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ async function afterDeploy(hre, beforeDeployData) {
const ousdAfterMint = await testMint(hre, beforeDeployData);
await testRedeem(ousdAfterMint);
await testTransfer();
await testMultipleMint();
}

module.exports = {
Expand Down
10 changes: 5 additions & 5 deletions contracts/storageLayout/mainnet/ConvexStrategy.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,25 +70,25 @@
"contract": "ConvexStrategy",
"label": "cvxDepositorAddress",
"type": "t_address",
"src": "contracts/strategies/ConvexStrategy.sol:27"
"src": "contracts/strategies/ConvexStrategy.sol:32"
},
{
"contract": "ConvexStrategy",
"label": "cvxRewardStakerAddress",
"type": "t_address",
"src": "contracts/strategies/ConvexStrategy.sol:28"
"src": "contracts/strategies/ConvexStrategy.sol:33"
},
{
"contract": "ConvexStrategy",
"label": "crvRewardTokenAddress",
"label": "cvxRewardTokenAddress",
"type": "t_address",
"src": "contracts/strategies/ConvexStrategy.sol:29"
"src": "contracts/strategies/ConvexStrategy.sol:34"
},
{
"contract": "ConvexStrategy",
"label": "cvxDepositorPTokenId",
"type": "t_uint256",
"src": "contracts/strategies/ConvexStrategy.sol:30"
"src": "contracts/strategies/ConvexStrategy.sol:35"
}
],
"types": {
Expand Down
4 changes: 4 additions & 0 deletions contracts/tasks/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ async function debug(taskArguments, hre) {
"rewardTokenAddress:\t\t",
await threePoolStrategy.rewardTokenAddress()
);
console.log(
"cvxRewardTokenAddress:\t\t",
await threePoolStrategy.cvxRewardTokenAddress()
);
console.log(
"rewardLiquidationThreshold:\t",
(await threePoolStrategy.rewardLiquidationThreshold()).toString()
Expand Down
49 changes: 47 additions & 2 deletions dapp/network.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2374,8 +2374,27 @@
]
},
"ConvexStrategy": {
"address": "0x08f3a0637851aA1B0E0750aA3d46E0E356f349aC",
"address": "0x16156a06bD1bd2d80134EA1Ee7e5FaEBDbFa20aa",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "_oldAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "_newAddress",
"type": "address"
}
],
"name": "CvxRewardTokenAddressUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -2636,6 +2655,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "cvxRewardTokenAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -2693,7 +2725,7 @@
},
{
"internalType": "address",
"name": "_crvRewardTokenAddress",
"name": "_cvxRewardTokenAddress",
"type": "address"
},
{
Expand Down Expand Up @@ -2832,6 +2864,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_cvxRewardTokenAddress",
"type": "address"
}
],
"name": "setCvxRewardTokenAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
49 changes: 47 additions & 2 deletions dapp/prod.network.json
Original file line number Diff line number Diff line change
Expand Up @@ -2374,8 +2374,27 @@
]
},
"ConvexStrategy": {
"address": "0x08f3a0637851aA1B0E0750aA3d46E0E356f349aC",
"address": "0x16156a06bD1bd2d80134EA1Ee7e5FaEBDbFa20aa",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "_oldAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "_newAddress",
"type": "address"
}
],
"name": "CvxRewardTokenAddressUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -2636,6 +2655,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "cvxRewardTokenAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -2693,7 +2725,7 @@
},
{
"internalType": "address",
"name": "_crvRewardTokenAddress",
"name": "_cvxRewardTokenAddress",
"type": "address"
},
{
Expand Down Expand Up @@ -2832,6 +2864,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_cvxRewardTokenAddress",
"type": "address"
}
],
"name": "setCvxRewardTokenAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down

0 comments on commit 0b9d5ea

Please sign in to comment.