Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions contracts/deploy/sonic/003_sonic_staking_strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = deployOnSonic(
async ({ ethers }) => {
const { deployerAddr, strategistAddr } = await getNamedAccounts();
console.log(`Deployer: ${deployerAddr}`);
console.log(`Strategist: ${strategistAddr}`);
const sDeployer = await ethers.provider.getSigner(deployerAddr);

const cOSonicVaultProxy = await ethers.getContract("OSonicVaultProxy");
Expand Down Expand Up @@ -111,31 +112,37 @@ module.exports = deployOnSonic(
signature: "setRegistrator(address)",
args: [addresses.sonic.validatorRegistrator],
},
// 4. Set 10% performance fee
// 4. Set the Sonic Staking Strategy as the default strategy for wS
{
contract: cOSonicVault,
signature: "setAssetDefaultStrategy(address,address)",
args: [addresses.sonic.wS, cSonicStakingStrategy.address],
},
// 5. Set 10% performance fee
{
contract: cOSonicVault,
signature: "setTrusteeFeeBps(uint256)",
args: [1000],
},
// 5. set the trustee address
// 6. set the trustee address
{
contract: cOSonicVault,
signature: "setTrusteeAddress(address)",
args: [strategistAddr],
},
// 6. Set the Vault buffer to 1%
// 7. Set the Vault buffer to 1%
{
contract: cOSonicVault,
signature: "setVaultBuffer(uint256)",
args: [parseUnits("1", 16)],
},
// 7. Set the auto allocation to 1,000 wS
// 8. Set the auto allocation to 1,000 wS
{
contract: cOSonicVault,
signature: "setAutoAllocateThreshold(uint256)",
args: [parseUnits("1000", 18)],
},
// 8. Upgrade the Wrapped Origin Sonic contract with new name
// 9. Upgrade the Wrapped Origin Sonic contract with new name
{
contract: cWOSonicProxy,
signature: "upgradeTo(address)",
Expand Down
3 changes: 2 additions & 1 deletion contracts/deployments/sonic/.migrations.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"001_vault_and_token": 1736867284,
"002_oracle_router": 1737018791
"002_oracle_router": 1737018791,
"003_sonic_staking_strategy": 1737523080
}
Loading
Loading