-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into clement/simple-harv…
…ester-v2
- Loading branch information
Showing
25 changed files
with
326 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const { deployOnBaseWithGuardian } = require("../../utils/deploy-l2"); | ||
const { utils } = require("ethers"); | ||
|
||
module.exports = deployOnBaseWithGuardian( | ||
{ | ||
deployName: "023_update_weth_share", | ||
}, | ||
async ({ ethers }) => { | ||
const cAMOStrategyProxy = await ethers.getContract( | ||
"AerodromeAMOStrategyProxy" | ||
); | ||
const cAMOStrategy = await ethers.getContractAt( | ||
"AerodromeAMOStrategy", | ||
cAMOStrategyProxy.address | ||
); | ||
|
||
return { | ||
actions: [ | ||
{ | ||
// 1. Set WETH share to be 1% to 15% | ||
contract: cAMOStrategy, | ||
signature: "setAllowedPoolWethShareInterval(uint256,uint256)", | ||
args: [utils.parseUnits("0.01", 18), utils.parseUnits("0.15", 18)], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const { deployOnBaseWithGuardian } = require("../../utils/deploy-l2"); | ||
const addresses = require("../../utils/addresses"); | ||
|
||
module.exports = deployOnBaseWithGuardian( | ||
{ | ||
deployName: "024_multisig_as_canceller", | ||
}, | ||
async ({ ethers }) => { | ||
const cTimelock = await ethers.getContractAt( | ||
"ITimelockController", | ||
addresses.base.timelock | ||
); | ||
|
||
const timelockCancellerRole = await cTimelock.CANCELLER_ROLE(); | ||
|
||
return { | ||
name: "Grant canceller role to 5/8 Multisig", | ||
actions: [ | ||
{ | ||
contract: cTimelock, | ||
signature: "grantRole(bytes32,address)", | ||
args: [timelockCancellerRole, addresses.base.governor], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const { deploymentWithGovernanceProposal } = require("../../utils/deploy"); | ||
const addresses = require("../../utils/addresses"); | ||
|
||
module.exports = deploymentWithGovernanceProposal( | ||
{ | ||
deployName: "119_multisig_as_canceller", | ||
forceDeploy: false, | ||
//forceSkip: true, | ||
reduceQueueTime: true, | ||
deployerIsProposer: false, | ||
proposalId: | ||
"68528526132026080998168122859635399048147530736160306492805070199180314362200", | ||
}, | ||
async () => { | ||
const { timelockAddr } = await getNamedAccounts(); | ||
|
||
const cTimelock = await ethers.getContractAt( | ||
"ITimelockController", | ||
timelockAddr | ||
); | ||
|
||
const timelockCancellerRole = await cTimelock.CANCELLER_ROLE(); | ||
|
||
// Governance Actions | ||
// ---------------- | ||
return { | ||
name: "Grant canceller role to 5/8 Multisig", | ||
actions: [ | ||
{ | ||
contract: cTimelock, | ||
signature: "grantRole(bytes32,address)", | ||
args: [timelockCancellerRole, addresses.mainnet.Guardian], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const { deploymentWithGovernanceProposal } = require("../../utils/deploy"); | ||
const addresses = require("../../utils/addresses"); | ||
|
||
module.exports = deploymentWithGovernanceProposal( | ||
{ | ||
deployName: "120_remove_ousd_amo", | ||
forceDeploy: false, | ||
//forceSkip: true, | ||
reduceQueueTime: true, | ||
deployerIsProposer: false, | ||
proposalId: | ||
"47377301530901645877668147419124102540503539821842750844128770769774878595548", | ||
}, | ||
async () => { | ||
const cOUSDVaultProxy = await ethers.getContract("VaultProxy"); | ||
const cOUSDVault = await ethers.getContractAt( | ||
"IVault", | ||
cOUSDVaultProxy.address | ||
); | ||
|
||
const cOUSDMetaStrategyProxy = await ethers.getContract( | ||
"ConvexOUSDMetaStrategyProxy" | ||
); | ||
|
||
// Governance Actions | ||
// ---------------- | ||
return { | ||
name: "Remove OUSD AMO Strategy", | ||
actions: [ | ||
{ | ||
contract: cOUSDVault, | ||
signature: "removeStrategy(address)", | ||
args: [cOUSDMetaStrategyProxy.address], | ||
}, | ||
{ | ||
contract: cOUSDVault, | ||
signature: "setOusdMetaStrategy(address)", | ||
args: [addresses.zero], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const { deployOnSonic } = require("../../utils/deploy-l2"); | ||
const addresses = require("../../utils/addresses"); | ||
|
||
module.exports = deployOnSonic( | ||
{ | ||
deployName: "004_timelock_1d_delay", | ||
}, | ||
async ({ ethers }) => { | ||
const cTimelock = await ethers.getContractAt( | ||
"ITimelockController", | ||
addresses.sonic.timelock | ||
); | ||
|
||
return { | ||
actions: [ | ||
{ | ||
// 1. Update delay to 1d | ||
contract: cTimelock, | ||
signature: "updateDelay(uint256)", | ||
args: [24 * 60 * 60], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const { deployOnSonic } = require("../../utils/deploy-l2"); | ||
const addresses = require("../../utils/addresses"); | ||
|
||
module.exports = deployOnSonic( | ||
{ | ||
deployName: "005_multisig_as_canceller", | ||
}, | ||
async ({ ethers }) => { | ||
const cTimelock = await ethers.getContractAt( | ||
"ITimelockController", | ||
addresses.sonic.timelock | ||
); | ||
|
||
const timelockCancellerRole = await cTimelock.CANCELLER_ROLE(); | ||
|
||
return { | ||
actions: [ | ||
{ | ||
// 1. Grant canceller role to 5/8 Multisig | ||
contract: cTimelock, | ||
signature: "grantRole(bytes32,address)", | ||
args: [timelockCancellerRole, addresses.sonic.admin], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const { deployOnSonic } = require("../../utils/deploy-l2"); | ||
const addresses = require("../../utils/addresses"); | ||
|
||
module.exports = deployOnSonic( | ||
{ | ||
deployName: "006_yf_swpx_os_pool", | ||
}, | ||
async ({ ethers }) => { | ||
const cOSonicProxy = await ethers.getContract("OSonicProxy"); | ||
const cOSonic = await ethers.getContractAt("OSonic", cOSonicProxy.address); | ||
|
||
return { | ||
actions: [ | ||
{ | ||
// 1. Delegate the yield from the SwapX SWPx/OS pool to SwapX Treasury | ||
contract: cOSonic, | ||
signature: "delegateYield(address,address)", | ||
args: [ | ||
addresses.sonic.SwapXSWPxOSPool, | ||
addresses.sonic.SwapXTreasury, | ||
], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"084_deploy_woeth_on_arb": 1707820141, | ||
"088_upgrade_woeth_on_arb": 1710959437 | ||
"001_deploy_woeth_on_arb": 1707820141, | ||
"002_upgrade_woeth_on_arb": 1710959437 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"001_vault_and_token": 1736867284, | ||
"002_oracle_router": 1737018791, | ||
"003_sonic_staking_strategy": 1737523080 | ||
} | ||
"003_sonic_staking_strategy": 1737523080, | ||
"004_timelock_1d_delay": 1737667104, | ||
"005_multisig_as_canceller": 1737993969, | ||
"006_yf_swpx_os_pool": 1738198367 | ||
} |
Oops, something went wrong.