Skip to content

Commit

Permalink
fix: Update operation-validator reserve getters
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Sep 28, 2021
1 parent 2595a82 commit bcdc91d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test-suites/operational-validator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ makeSuite('Operational Validator: ', (testEnv: TestEnv) => {
await dai.approve(pool.address, MAX_UINT_AMOUNT);

const daiReserveDataBefore = await getReserveData(helpersContract, dai.address);
const ethReserveDataBefore = await helpersContract.getReserveData(weth.address);
const ethReserveDataBefore = await getReserveData(helpersContract, weth.address);

const userReserveDataBefore = await getUserData(
pool,
Expand Down Expand Up @@ -221,8 +221,8 @@ makeSuite('Operational Validator: ', (testEnv: TestEnv) => {

const userGlobalDataAfter = await pool.getUserAccountData(borrower.address);

const daiReserveDataAfter = await helpersContract.getReserveData(dai.address);
const ethReserveDataAfter = await helpersContract.getReserveData(weth.address);
const daiReserveDataAfter = await getReserveData(helpersContract, dai.address);
const ethReserveDataAfter = await getReserveData(helpersContract, weth.address);

const collateralPrice = await oracle.getAssetPrice(weth.address);
const principalPrice = await oracle.getAssetPrice(dai.address);
Expand Down Expand Up @@ -428,7 +428,7 @@ makeSuite('Operational Validator: ', (testEnv: TestEnv) => {
await dai.approve(pool.address, MAX_UINT_AMOUNT);

const daiReserveDataBefore = await getReserveData(helpersContract, dai.address);
const ethReserveDataBefore = await helpersContract.getReserveData(weth.address);
const ethReserveDataBefore = await getReserveData(helpersContract, weth.address);

const userReserveDataBefore = await getUserData(
pool,
Expand Down Expand Up @@ -467,8 +467,8 @@ makeSuite('Operational Validator: ', (testEnv: TestEnv) => {

const userGlobalDataAfter = await pool.getUserAccountData(borrower.address);

const daiReserveDataAfter = await helpersContract.getReserveData(dai.address);
const ethReserveDataAfter = await helpersContract.getReserveData(weth.address);
const daiReserveDataAfter = await getReserveData(helpersContract, dai.address);
const ethReserveDataAfter = await getReserveData(helpersContract, weth.address);

const collateralPrice = await oracle.getAssetPrice(weth.address);
const principalPrice = await oracle.getAssetPrice(dai.address);
Expand Down

0 comments on commit bcdc91d

Please sign in to comment.