Skip to content

Commit

Permalink
Added Sonic Vault config to deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Jan 10, 2025
1 parent 5e541b2 commit fb3e84b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions contracts/deploy/sonic/001_origin_sonic.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const { parseEther } = require("ethers/lib/utils");
const { deployOnSonic } = require("../../utils/deploy-l2");
const {
deployWithConfirmation,
Expand Down Expand Up @@ -202,6 +203,23 @@ module.exports = deployOnSonic(
cOSonicVault.connect(sGovernor).setDripper(cOSonicDripperProxy.address)
);

// Configure the Vault
await withConfirmation(
cOSonicVault.connect(sGovernor).setRebaseThreshold(parseEther("10")) // 10 OS
);
// setAutoAllocateThreshold is not set
await withConfirmation(
cOSonicVault.connect(sGovernor).setMaxSupplyDiff(parseEther("1")) // 1 OS
);
await withConfirmation(
cOSonicVault
.connect(sGovernor)
.setTrusteeAddress(addresses.sonic.guardian)
);
await withConfirmation(
cOSonicVault.connect(sGovernor).setTrusteeFeeBps(2000) // 20%
);

// Deploy the Zapper
await deployWithConfirmation("OSonicZapper", [
cOSonic.address,
Expand Down
5 changes: 5 additions & 0 deletions contracts/utils/addresses.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,11 @@ addresses.sonic.nodeDriver = "0xd100a01e00000000000000000000000000000001";
addresses.sonic.nodeDriveAuth = "0xd100ae0000000000000000000000000000000000";
addresses.sonic.validatorRegistrator =
"0x531B8D5eD6db72A56cF1238D4cE478E7cB7f2825";
// 5/8 Multisig - formally known as the Governor but not to be confused with the Governor contract
addresses.sonic.admin = "0x4FF1b9D9ba8558F5EAfCec096318eA0d8b541971";
// 2/8 Multisig - formally known as the Strategist
addresses.sonic.guardian = "0x28bce2eE5775B652D92bB7c2891A89F036619703";
// addresses.sonic.timelock = "";

// Holesky
addresses.holesky.WETH = "0x94373a4919B3240D86eA41593D5eBa789FEF3848";
Expand Down

0 comments on commit fb3e84b

Please sign in to comment.