Skip to content

Commit

Permalink
Update deploy script, and change minimumUpdateDelayInSeconds type in …
Browse files Browse the repository at this point in the history
…constructor from uint8 to uint32 in Accountant
  • Loading branch information
crispymangoes committed Apr 16, 2024
1 parent b4826c3 commit bfb89b7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 189 deletions.
12 changes: 7 additions & 5 deletions script/DeployBoringVaultArctic.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ contract DeployBoringVaultArcticScript is Script, ContractNames, MainnetAddresse
string public boringVaultName = "EtherFi Liquid USD";
string public boringVaultSymbol = "liquidUSD";
uint8 public boringVaultDecimals = 6;
address public owner = 0x59bAE9c3d121152B27A2B5a46bD917574Ca18142;
address public balancerVault = 0xBA12222222228d8Ba445958a75a0704d566BF2C8;
address public oneInchAggregatorV5 = 0x1111111254EEB25477B68fb85Ed929f73A960582;
address public uniswapV3Router = 0xE592427A0AEce92De3Edee1F18E0157C05861564;
address public owner = dev0Address;

// Roles
uint8 public constant MANAGER_ROLE = 1;
Expand Down Expand Up @@ -212,7 +209,7 @@ contract DeployBoringVaultArcticScript is Script, ContractNames, MainnetAddresse
AccountantWithRateProviders.updateExchangeRate.selector,
true
);
// Publically callable functions
// Publicly callable functions
rolesAuthority.setPublicCapability(address(teller), TellerWithMultiAssetSupport.deposit.selector, true);
rolesAuthority.setPublicCapability(
address(teller), TellerWithMultiAssetSupport.depositWithPermit.selector, true
Expand All @@ -226,10 +223,15 @@ contract DeployBoringVaultArcticScript is Script, ContractNames, MainnetAddresse
// Setup rate providers.
accountant.setRateProviderData(USDC, true, address(0));
accountant.setRateProviderData(USDT, true, address(0));
accountant.setRateProviderData(DAI, true, address(0));

// Setup Teller deposit assets.
teller.addAsset(USDC);
teller.addAsset(USDT);
teller.addAsset(DAI);

// Setup share lock period.
teller.setShareLockPeriod(300);

vm.stopBroadcast();
}
Expand Down
2 changes: 1 addition & 1 deletion src/base/Roles/AccountantWithRateProviders.sol
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ contract AccountantWithRateProviders is Auth, IRateProvider {
address _base,
uint16 allowedExchangeRateChangeUpper,
uint16 allowedExchangeRateChangeLower,
uint8 minimumUpdateDelayInSeconds,
uint32 minimumUpdateDelayInSeconds,
uint16 managementFee
) Auth(_owner, Authority(address(0))) {
base = ERC20(_base);
Expand Down
182 changes: 0 additions & 182 deletions test/AccountantWithRateProvidersUsingDifferentDecimal.t.sol

This file was deleted.

3 changes: 2 additions & 1 deletion test/resources/MainnetAddresses.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {ERC20} from "@solmate/tokens/ERC20.sol";

contract MainnetAddresses {
// Liquid Ecosystem
address public deployerAddress;
address public deployerAddress = 0x5F2F11ad8656439d5C14d9B351f8b09cDaC2A02d;
address public dev0Address = 0x0463E60C7cE10e57911AB7bD1667eaa21de3e79b;
address public dev1Address = 0x2322ba43eFF1542b6A7bAeD35e66099Ea0d12Bd1;

Expand Down Expand Up @@ -169,6 +169,7 @@ contract MainnetAddresses {

// Mainnet Balancer Specific Addresses
address public vault = 0xBA12222222228d8Ba445958a75a0704d566BF2C8;
address public balancerVault = 0xBA12222222228d8Ba445958a75a0704d566BF2C8;
address public relayer = 0xfeA793Aa415061C483D2390414275AD314B3F621;
address public minter = 0x239e55F427D44C3cc793f49bFB507ebe76638a2b;
ERC20 public USDC_DAI_USDT_BPT = ERC20(0x79c58f70905F734641735BC61e45c19dD9Ad60bC);
Expand Down

0 comments on commit bfb89b7

Please sign in to comment.