From 69a0ef47ac5c2b11cb123c5766c3f53bf96d8161 Mon Sep 17 00:00:00 2001 From: Carson Date: Mon, 30 Sep 2024 17:22:23 -0400 Subject: [PATCH] fix: script rate change checks for deployments --- deployment-config/unifiETH-l1-08-30-24.json | 62 +++++++++++++++++++ nucleus-deployments | 2 +- ...04_DeployAccountantWithRateProviders.s.sol | 2 +- 3 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 deployment-config/unifiETH-l1-08-30-24.json diff --git a/deployment-config/unifiETH-l1-08-30-24.json b/deployment-config/unifiETH-l1-08-30-24.json new file mode 100644 index 0000000..d9a348e --- /dev/null +++ b/deployment-config/unifiETH-l1-08-30-24.json @@ -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" + } +} \ No newline at end of file diff --git a/nucleus-deployments b/nucleus-deployments index 3aaf20c..9d3906d 160000 --- a/nucleus-deployments +++ b/nucleus-deployments @@ -1 +1 @@ -Subproject commit 3aaf20cb21a5074b0749c3041fff9bfeb40b036c +Subproject commit 9d3906d3037303595cce11b2ccb8fe27f1ca4dc3 diff --git a/script/deploy/single/04_DeployAccountantWithRateProviders.s.sol b/script/deploy/single/04_DeployAccountantWithRateProviders.s.sol index 90ae876..ffcafc0 100644 --- a/script/deploy/single/04_DeployAccountantWithRateProviders.s.sol +++ b/script/deploy/single/04_DeployAccountantWithRateProviders.s.sol @@ -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");