-
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.
Sonic deploy 005 - Delegate OS yield from the SwapX SWPx/OS pool to S…
…wapX Treasury (#2372) * Added governance to delegate yield of SwapX SWPx/OS pool to SwapX Treasury * Mine block before deployment * Fix Sonic fork tests for withdrawals * More Sonic fork test fixes * Prettier * Rename Sonic deploy file to 006_yf_swpx_os_pool Add migration timestamp
- Loading branch information
1 parent
975e3c0
commit 477e67e
Showing
6 changed files
with
41 additions
and
7 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
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
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