From 9ff20bd3ed16fbce022edd79ec421fb6016b89ef Mon Sep 17 00:00:00 2001 From: Shivva Date: Tue, 1 Dec 2020 16:23:00 +0100 Subject: [PATCH] Update gelato connector, provider module and test (due to gas price evolution) --- _hardhat/config/mainnet-deployments.js | 2 ++ hardhat.config.js | 2 +- .../conditions/2_ConditionIsDestVaultWillBeSafe.test.js | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/_hardhat/config/mainnet-deployments.js b/_hardhat/config/mainnet-deployments.js index 55ff809..0636fb1 100644 --- a/_hardhat/config/mainnet-deployments.js +++ b/_hardhat/config/mainnet-deployments.js @@ -11,6 +11,7 @@ module.exports = { InstaMapping: "0xe81F70Cc7C0D46e12d70efc60607F16bbD617E88", ConnectAuth: "0xd1aFf9f2aCf800C876c409100D6F39AEa93Fc3D9", ConnectBasic: "0x6a31c5982C5Bc5533432913cf06a66b6D3333a95", + ConnectGelato: "0x25aD59adbe00C2d80c86d01e2E05e1294DA84823", ConnectMaker: "0xac02030d8a8F49eD04b2f52C394D3F901A10F8A9", ConnectCompound: "0x15FdD1e902cAC70786fe7D31013B1a806764B5a2", ConnectInstaPool: "0xeB4bf86589f808f90EEC8e964dBF16Bd4D284905", @@ -23,4 +24,5 @@ module.exports = { CETH: "0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5", DssCdpManager: "0x5ef30b9986345249bc32d8928B7ee64DE9435E39", GetCdps: "0x36a724Bd100c39f0Ea4D3A20F7097eE01A8Ff573", + ProviderModuleDsa: "0x732d0856dfD0D7c7F4b517Ac25Fe30A7A8b1956A", }; diff --git a/hardhat.config.js b/hardhat.config.js index 611aa3c..41a440a 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -51,7 +51,7 @@ module.exports = { // timeout: 150000, forking: { url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`, - blockNumber: 11366500, + blockNumber: 11367046, }, // Accounts accounts: { diff --git a/test/unit/conditions/2_ConditionIsDestVaultWillBeSafe.test.js b/test/unit/conditions/2_ConditionIsDestVaultWillBeSafe.test.js index ab67c0d..696b988 100644 --- a/test/unit/conditions/2_ConditionIsDestVaultWillBeSafe.test.js +++ b/test/unit/conditions/2_ConditionIsDestVaultWillBeSafe.test.js @@ -142,7 +142,7 @@ describe("ConditionDestVaultWillBeSafe Unit Test", function () { const amountToDeposit = amountToBorrow .mul(ethers.utils.parseUnits("1", 27)) .div(ilkA[2]) // ilk[2] represent the liquidation ratio of ilk - .add(ethers.utils.parseUnits("4", 17)); // to be just above the liquidation ratio. + .add(ethers.utils.parseUnits("8", 17)); // to be just above the liquidation ratio. //#region Deposit @@ -316,7 +316,7 @@ describe("ConditionDestVaultWillBeSafe Unit Test", function () { const amountToDeposit = amountToBorrow .mul(ethers.utils.parseUnits("1", 27)) .div(ilkA[2]) // ilk[2] represent the liquidation ratio of ilk - .add(ethers.utils.parseUnits("4", 17)); // to be just above the liquidation ratio. + .add(ethers.utils.parseUnits("5", 17)); // to be just above the liquidation ratio. //#region Deposit @@ -373,7 +373,7 @@ describe("ConditionDestVaultWillBeSafe Unit Test", function () { const amountToDeposit = amountToBorrow .mul(ethers.utils.parseUnits("1", 27)) .div(ilkA[2]) // ilk[2] represent the liquidation ratio of ilk - .add(ethers.utils.parseUnits("1", 17)); // to be just above the liquidation ratio. + .add(ethers.utils.parseUnits("5", 17)); // to be just above the liquidation ratio. //#region Deposit on Vault ETH-A @@ -527,7 +527,7 @@ describe("ConditionDestVaultWillBeSafe Unit Test", function () { const amountToDeposit = amountToBorrow .mul(ethers.utils.parseUnits("1", 27)) .div(ilkA[2]) // ilk[2] represent the liquidation ratio of ilk - .add(ethers.utils.parseUnits("4", 17)); // to be just above the liquidation ratio. + .add(ethers.utils.parseUnits("48", 17)); // to be just above the liquidation ratio. //#region Deposit on Vault ETH-B