From 045ac4207eb912a0b97e427fe18b03ae7be40be1 Mon Sep 17 00:00:00 2001 From: GitGuru7 <128375421+GitGuru7@users.noreply.github.com> Date: Fri, 29 Sep 2023 15:31:10 +0530 Subject: [PATCH] fix: resolve comments --- simulations/vip-178/vip-178/simulations.ts | 2 +- vips/vip-178/vip-178-testnet.ts | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/simulations/vip-178/vip-178/simulations.ts b/simulations/vip-178/vip-178/simulations.ts index 7f54bc24f..28aae11cd 100644 --- a/simulations/vip-178/vip-178/simulations.ts +++ b/simulations/vip-178/vip-178/simulations.ts @@ -26,7 +26,7 @@ const ANGLE = "0x97B6897AAd7aBa3861c04C0e6388Fc02AF1F227f"; const PROTOCOL_SHARE_RESERVE = "0xfB5bE09a1FA6CFDA075aB1E69FE83ce8324682e4"; const SHORTFALL = "0xf37530A8a810Fcb501AA0Ecd0B0699388F0F2209"; -forking(32139104, () => { +forking(32162545, () => { let poolRegistry: Contract; let comptroller: Contract; let vagEUR: Contract; diff --git a/vips/vip-178/vip-178-testnet.ts b/vips/vip-178/vip-178-testnet.ts index a0226335b..87616dafb 100644 --- a/vips/vip-178/vip-178-testnet.ts +++ b/vips/vip-178/vip-178-testnet.ts @@ -30,6 +30,22 @@ export const vip178Testnet = () => { signature: "setDirectPrice(address,uint256)", params: [agEUR, parseUnits("1.06", 18)], }, + { + target: RESILIENT_ORACLE, + signature: "setTokenConfig((address,address[3],bool[3]))", + params: [ + [ + agEUR, + [ + CHAINLINK_ORACLE, + "0x0000000000000000000000000000000000000000", + "0x0000000000000000000000000000000000000000", + ], + [true, false, false], + ], + ], + }, + { target: CHAINLINK_ORACLE, signature: "setDirectPrice(address,uint256)", @@ -40,7 +56,7 @@ export const vip178Testnet = () => { signature: "setTokenConfig((address,address[3],bool[3]))", params: [ [ - agEUR, + ANGLE, [ CHAINLINK_ORACLE, "0x0000000000000000000000000000000000000000", @@ -50,7 +66,6 @@ export const vip178Testnet = () => { ], ], }, - { target: agEUR, signature: "faucet(uint256)",