Update gelato connector, provider module and test (due to gas price evolution)

This commit is contained in:
Shivva 2020-12-01 16:23:00 +01:00 committed by Luis Schliesske
parent 48fd0cc102
commit 9ff20bd3ed
3 changed files with 7 additions and 5 deletions

View File

@ -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",
};

View File

@ -51,7 +51,7 @@ module.exports = {
// timeout: 150000,
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
blockNumber: 11366500,
blockNumber: 11367046,
},
// Accounts
accounts: {

View File

@ -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