Skip to content

Commit

Permalink
fix: script rate change checks for deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonCase committed Sep 30, 2024
1 parent f3cb9b8 commit 69a0ef4
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
62 changes: 62 additions & 0 deletions deployment-config/unifiETH-l1-08-30-24.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"base": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"protocolAdmin": "0x0000000000417626Ef34D62C4DC189b021603f2F",
"boringVaultAndBaseDecimals": "18",
"boringVault": {
"boringVaultSalt": "0x1ddd634c506ad203da17ff000000000000000000000000000000000000000011",
"boringVaultName": "UniFi ETH",
"boringVaultSymbol": "unifiETH",
"address": "0x0000000000000000000000000000000000000000"
},
"manager": {
"managerSalt": "0x30432d4b4ec00003b4a250000000000000000000000000000000000000000011",
"address": "0x0000000000000000000000000000000000000000"
},
"accountant": {
"accountantSalt": "0x6a184dbea6f3cc0318679f000000000000000000000000000000000000000011",
"payoutAddress": "0x0000000000417626Ef34D62C4DC189b021603f2F",
"allowedExchangeRateChangeUpper": "10004",
"allowedExchangeRateChangeLower": "10000",
"minimumUpdateDelayInSeconds": "3600",
"managementFee": "0",
"address": "0x0000000000000000000000000000000000000000"
},
"teller": {
"tellerSalt": "0x51f8968749a56d01202c91000000000000000000000000000000000000000011",
"maxGasForPeer": 0,
"minGasForPeer": 0,
"peerEid": 0,
"tellerContractName": "TellerWithMultiAssetSupport",
"opMessenger": "0x0000000000000000000000000000000000000000",
"assets": [
"0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
"0xbf5495efe5db9ce00f80364c8b423567e58d2110",
"0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7",
"0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0",
"0xD9A442856C234a39a81a089C06451EBAa4306a72",
"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"0x9Ba021B0a9b958B5E75cE9f6dff97C7eE52cb3E6",
"0xac3E018457B222d93114458476f3E3416Abbe38F"
],
"dvnIfNoDefault": {
"required": [
],
"optional": [
],
"blockConfirmationsRequiredIfNoDefault": 0,
"optionalThreshold": 0
},
"address": "0x0000000000000000000000000000000000000000"
},
"rolesAuthority": {
"rolesAuthoritySalt": "0x66bbc3b3b3000b01466a3a000000000000000000000000000000000000000011",
"strategist": "0x0000000000417626Ef34D62C4DC189b021603f2F",
"exchangeRateBot": "0x1755397BEc366a1e1160d8aE0106C60E7e344B56",
"pauser": "0xe5CcB29Cb9C886da329098A184302E2D5Ff0cD9E",
"address": "0x0000000000000000000000000000000000000000"
},
"decoder": {
"decoderSalt": "0x48b53893da2e0b0248268c000000000000000000000000000000000000000011",
"address": "0x0000000000000000000000000000000000000000"
}
}
2 changes: 1 addition & 1 deletion nucleus-deployments
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ contract DeployAccountantWithRateProviders is BaseScript {
require(config.base != address(0), "base address must not be zero");
require(config.allowedExchangeRateChangeUpper > 1e4, "allowedExchangeRateChangeUpper");
require(config.allowedExchangeRateChangeUpper <= 1.003e4, "allowedExchangeRateChangeUpper upper bound");
require(config.allowedExchangeRateChangeLower < 1e4, "allowedExchangeRateChangeLower");
require(config.allowedExchangeRateChangeLower <= 1e4, "allowedExchangeRateChangeLower");
require(config.allowedExchangeRateChangeLower >= 0.997e4, "allowedExchangeRateChangeLower lower bound");
require(config.minimumUpdateDelayInSeconds >= 3600, "minimumUpdateDelayInSeconds");
require(config.managementFee < 1e4, "managementFee");
Expand Down

0 comments on commit 69a0ef4

Please sign in to comment.