From f3f2ab8eaaba202c22a7546108323943e3a14d16 Mon Sep 17 00:00:00 2001 From: frontier159 <103474701+frontier159@users.noreply.github.com> Date: Wed, 25 Oct 2023 15:16:28 +1100 Subject: [PATCH] chore: deploy latest ramos strategy --- ...A5CeF575eaEF14032C5006eb5cbEbE7eE0E347b.js | 12 +++ .../deploys/mainnet/v2/contract-addresses.ts | 95 ++++++++++--------- 2 files changed, 62 insertions(+), 45 deletions(-) create mode 100644 protocol/scripts/deploys/mainnet/deploymentArgs/0xDA5CeF575eaEF14032C5006eb5cbEbE7eE0E347b.js diff --git a/protocol/scripts/deploys/mainnet/deploymentArgs/0xDA5CeF575eaEF14032C5006eb5cbEbE7eE0E347b.js b/protocol/scripts/deploys/mainnet/deploymentArgs/0xDA5CeF575eaEF14032C5006eb5cbEbE7eE0E347b.js new file mode 100644 index 0000000000..531f445632 --- /dev/null +++ b/protocol/scripts/deploys/mainnet/deploymentArgs/0xDA5CeF575eaEF14032C5006eb5cbEbE7eE0E347b.js @@ -0,0 +1,12 @@ +// mainnet: STRATEGIES.RAMOS_STRATEGY.ADDRESS=0xDA5CeF575eaEF14032C5006eb5cbEbE7eE0E347b +// yarn hardhat verify --network mainnet 0xDA5CeF575eaEF14032C5006eb5cbEbE7eE0E347b --constructor-args scripts/deploys/mainnet/deploymentArgs/0xDA5CeF575eaEF14032C5006eb5cbEbE7eE0E347b.js +module.exports = [ + "0x9f90430179D9b67341BFa50559bc7B8E35629f1b", + "0xb1E8AB0a81AaDf632a653E46Caeda1593d71d143", + "RamosStrategy", + "0xf359Bae7b6AD295724e798A3Ef6Fa5109919F399", + "0xDdF499e726Bfde29Ce035F6B355e55757F08B5EF", + "0x470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b7", + "0x6B175474E89094C44Da98b954EedeAC495271d0F", + "0x87B8D213177FB132e508b5d7018f7b590e00a480" +]; \ No newline at end of file diff --git a/protocol/scripts/deploys/mainnet/v2/contract-addresses.ts b/protocol/scripts/deploys/mainnet/v2/contract-addresses.ts index ffa27d80e1..5cfe2417e2 100644 --- a/protocol/scripts/deploys/mainnet/v2/contract-addresses.ts +++ b/protocol/scripts/deploys/mainnet/v2/contract-addresses.ts @@ -108,37 +108,36 @@ export interface ContractAddresses { } const V2_DEPLOYED_CONTRACTS: {[key: string]: ContractAddresses} = { - localhost: { + mainnet: { CORE: { TEMPLE_TOKEN: '0x470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b7', - CIRCUIT_BREAKER_PROXY: '0xE2b5bDE7e80f89975f7229d78aD9259b2723d11F', - GNOSIS_SAFE_GUARD: '0xC220Ed128102d888af857d137a54b9B7573A41b2', - EXECUTOR_MSIG: '0x4D6175d58C5AceEf30F546C0d5A557efFa53A950', - // Uses the treasury msig for local fork testing - RESCUER_MSIG: '0xb1BD5762fAf7D6F86f965a3fF324BD81bB746d00', + CIRCUIT_BREAKER_PROXY: '0x87B8D213177FB132e508b5d7018f7b590e00a480', + GNOSIS_SAFE_GUARD: '0x421D1571f47614670A4D182E22628DFe41c3d64B', + EXECUTOR_MSIG: '0x94b62A27a2f23CBdc0220826a8452fB5055cF273', + RESCUER_MSIG: '0x9f90430179D9b67341BFa50559bc7B8E35629f1b', }, TREASURY_RESERVES_VAULT: { - ADDRESS: '0x4ea0Be853219be8C9cE27200Bdeee36881612FF2', - D_USD_TOKEN: '0x46d4674578a2daBbD0CEAB0500c6c7867999db34', - D_TEMPLE_TOKEN: '0x9155497EAE31D432C0b13dBCc0615a37f55a2c87', - TPI_ORACLE: '0xC6c5Ab5039373b0CBa7d0116d9ba7fb9831C3f42', + ADDRESS: '0xf359Bae7b6AD295724e798A3Ef6Fa5109919F399', + D_USD_TOKEN: '0xd018d5ecCe2Cd1c230F1719367C22DfE92c696ac', + D_TEMPLE_TOKEN: '0x20aa0dCad8D08ccea01d94DaB76bde277d773Ca8', + TPI_ORACLE: '0x97e9103267D58448Bae0CF6E056F343bD7728D02', }, TEMPLE_LINE_OF_CREDIT: { - ADDRESS: '0xa85EffB2658CFd81e0B1AaD4f2364CdBCd89F3a1', + ADDRESS: '0xcbc0A8d5C7352Fe3625614ea343019e6d6b89031', CIRCUIT_BREAKERS: { - DAI: '0x8aAC5570d54306Bb395bf2385ad327b7b706016b', - TEMPLE: '0x64f5219563e28EeBAAd91Ca8D31fa3b36621FD4f', + DAI: '0x02607D6BC3146bb3D3022E991eF54F545988fB7B', + TEMPLE: '0x0745D453A19DfEAd0e5fd350a231D878F5c71b8D', }, INTEREST_RATE_MODELS: { - LINEAR_WITH_KINK: '0x05bB67cB592C1753425192bF8f34b95ca8649f09', + LINEAR_WITH_KINK: '0x9498ab765BeeD8292938937079Ac56080B8a179d', }, }, RAMOS: { AUTOMATION_EOA: '0x67ae2161449cf3c5528fea969beba3e4f3288c61', TEMPLE_DAI: { - ADDRESS: '0xbFD3c8A956AFB7a9754C951D03C9aDdA7EC5d638', - POOL_HELPER: '0x38F6F2caE52217101D7CA2a5eC040014b4164E6C', - AURA_STAKING: '0xde79380FBd39e08150adAA5C6c9dE3146f53029e', + ADDRESS: '0xDdF499e726Bfde29Ce035F6B355e55757F08B5EF', + POOL_HELPER: '0xe32089bf9724aF09C026BeC36a7d8a81500cd58A', + AURA_STAKING: '0x940B35488bb153b703b7c9aB3FE2C03CE48D6650', FEE_COLLECTOR: '0x4D6175d58C5AceEf30F546C0d5A557efFa53A950', EXTERNAL: { BALANCER_LP_TOKEN: '0x8bd4a1e74a27182d23b98c10fd21d4fbb0ed4ba0', @@ -151,10 +150,10 @@ const V2_DEPLOYED_CONTRACTS: {[key: string]: ContractAddresses} = { }, STRATEGIES: { DSR_BASE_STRATEGY: { - ADDRESS: '0xfB12F7170FF298CDed84C793dAb9aBBEcc01E798', + ADDRESS: '0x8b9e20D9970Af54fbaFe64049174e24d6DE0C412', }, TEMPLE_BASE_STRATEGY: { - ADDRESS: '0xc1EeD9232A0A44c2463ACB83698c162966FBc78d', + ADDRESS: '0xB8d09B0436adF927004Cea0B096E8c05f6dFdc3b', }, GNOSIS_SAFE_STRATEGY_TEMPLATE: { ADDRESS: '', @@ -165,14 +164,18 @@ const V2_DEPLOYED_CONTRACTS: {[key: string]: ContractAddresses} = { }, }, RAMOS_STRATEGY: { - ADDRESS: '0x04d7478fDF318C3C22cECE62Da9D78ff94807D77', + // v1.0.0 + // ADDRESS: '0xb867dF3efF1B234CA08B7D0d85Fb51Fd25C2c2d0', + + // v1.0.1: + ADDRESS: '0xDA5CeF575eaEF14032C5006eb5cbEbE7eE0E347b', CIRCUIT_BREAKERS: { - DAI: '0xc075BC0f734EFE6ceD866324fc2A9DBe1065CBB1', - TEMPLE: '0x837a41023CF81234f89F956C94D676918b4791c1', + DAI: '0x5D93363B3c24E6899559Ca890c754b13Ca4a7290', + TEMPLE: '0x37cE5F2e8956c98F706c55EEE01F0A732aF1a439', }, }, TLC_STRATEGY: { - ADDRESS: '0x1757a98c1333B9dc8D408b194B2279b5AFDF70Cc', + ADDRESS: '0xcABDE42dd767361739bD7c09C6E574057080ef01', }, }, EXTERNAL: { @@ -192,36 +195,38 @@ const V2_DEPLOYED_CONTRACTS: {[key: string]: ContractAddresses} = { }, }, }, - mainnet: { + + localhost: { CORE: { TEMPLE_TOKEN: '0x470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b7', - CIRCUIT_BREAKER_PROXY: '0x87B8D213177FB132e508b5d7018f7b590e00a480', - GNOSIS_SAFE_GUARD: '0x421D1571f47614670A4D182E22628DFe41c3d64B', - EXECUTOR_MSIG: '0x94b62A27a2f23CBdc0220826a8452fB5055cF273', - RESCUER_MSIG: '0x9f90430179D9b67341BFa50559bc7B8E35629f1b', + CIRCUIT_BREAKER_PROXY: '0xE2b5bDE7e80f89975f7229d78aD9259b2723d11F', + GNOSIS_SAFE_GUARD: '0xC220Ed128102d888af857d137a54b9B7573A41b2', + EXECUTOR_MSIG: '0x4D6175d58C5AceEf30F546C0d5A557efFa53A950', + // Uses the treasury msig for local fork testing + RESCUER_MSIG: '0xb1BD5762fAf7D6F86f965a3fF324BD81bB746d00', }, TREASURY_RESERVES_VAULT: { - ADDRESS: '0xf359Bae7b6AD295724e798A3Ef6Fa5109919F399', - D_USD_TOKEN: '0xd018d5ecCe2Cd1c230F1719367C22DfE92c696ac', - D_TEMPLE_TOKEN: '0x20aa0dCad8D08ccea01d94DaB76bde277d773Ca8', - TPI_ORACLE: '0x97e9103267D58448Bae0CF6E056F343bD7728D02', + ADDRESS: '0x4ea0Be853219be8C9cE27200Bdeee36881612FF2', + D_USD_TOKEN: '0x46d4674578a2daBbD0CEAB0500c6c7867999db34', + D_TEMPLE_TOKEN: '0x9155497EAE31D432C0b13dBCc0615a37f55a2c87', + TPI_ORACLE: '0xC6c5Ab5039373b0CBa7d0116d9ba7fb9831C3f42', }, TEMPLE_LINE_OF_CREDIT: { - ADDRESS: '0xcbc0A8d5C7352Fe3625614ea343019e6d6b89031', + ADDRESS: '0xa85EffB2658CFd81e0B1AaD4f2364CdBCd89F3a1', CIRCUIT_BREAKERS: { - DAI: '0x02607D6BC3146bb3D3022E991eF54F545988fB7B', - TEMPLE: '0x0745D453A19DfEAd0e5fd350a231D878F5c71b8D', + DAI: '0x8aAC5570d54306Bb395bf2385ad327b7b706016b', + TEMPLE: '0x64f5219563e28EeBAAd91Ca8D31fa3b36621FD4f', }, INTEREST_RATE_MODELS: { - LINEAR_WITH_KINK: '0x9498ab765BeeD8292938937079Ac56080B8a179d', + LINEAR_WITH_KINK: '0x05bB67cB592C1753425192bF8f34b95ca8649f09', }, }, RAMOS: { AUTOMATION_EOA: '0x67ae2161449cf3c5528fea969beba3e4f3288c61', TEMPLE_DAI: { - ADDRESS: '0xDdF499e726Bfde29Ce035F6B355e55757F08B5EF', - POOL_HELPER: '0xe32089bf9724aF09C026BeC36a7d8a81500cd58A', - AURA_STAKING: '0x940B35488bb153b703b7c9aB3FE2C03CE48D6650', + ADDRESS: '0xbFD3c8A956AFB7a9754C951D03C9aDdA7EC5d638', + POOL_HELPER: '0x38F6F2caE52217101D7CA2a5eC040014b4164E6C', + AURA_STAKING: '0xde79380FBd39e08150adAA5C6c9dE3146f53029e', FEE_COLLECTOR: '0x4D6175d58C5AceEf30F546C0d5A557efFa53A950', EXTERNAL: { BALANCER_LP_TOKEN: '0x8bd4a1e74a27182d23b98c10fd21d4fbb0ed4ba0', @@ -234,10 +239,10 @@ const V2_DEPLOYED_CONTRACTS: {[key: string]: ContractAddresses} = { }, STRATEGIES: { DSR_BASE_STRATEGY: { - ADDRESS: '0x8b9e20D9970Af54fbaFe64049174e24d6DE0C412', + ADDRESS: '0xfB12F7170FF298CDed84C793dAb9aBBEcc01E798', }, TEMPLE_BASE_STRATEGY: { - ADDRESS: '0xB8d09B0436adF927004Cea0B096E8c05f6dFdc3b', + ADDRESS: '0xc1EeD9232A0A44c2463ACB83698c162966FBc78d', }, GNOSIS_SAFE_STRATEGY_TEMPLATE: { ADDRESS: '', @@ -248,14 +253,14 @@ const V2_DEPLOYED_CONTRACTS: {[key: string]: ContractAddresses} = { }, }, RAMOS_STRATEGY: { - ADDRESS: '0xb867dF3efF1B234CA08B7D0d85Fb51Fd25C2c2d0', + ADDRESS: '0x04d7478fDF318C3C22cECE62Da9D78ff94807D77', CIRCUIT_BREAKERS: { - DAI: '0x5D93363B3c24E6899559Ca890c754b13Ca4a7290', - TEMPLE: '0x37cE5F2e8956c98F706c55EEE01F0A732aF1a439', + DAI: '0xc075BC0f734EFE6ceD866324fc2A9DBe1065CBB1', + TEMPLE: '0x837a41023CF81234f89F956C94D676918b4791c1', }, }, TLC_STRATEGY: { - ADDRESS: '0xcABDE42dd767361739bD7c09C6E574057080ef01', + ADDRESS: '0x1757a98c1333B9dc8D408b194B2279b5AFDF70Cc', }, }, EXTERNAL: {