added DSA compound check

This commit is contained in:
pradyuman-verma 2022-03-24 01:46:39 +05:30
parent c704a26ef2
commit fe81e26428
No known key found for this signature in database
GPG Key ID: E36FD6BC8923221F

View File

@ -243,5 +243,12 @@ describe("Import Compound", function () {
const tx = await dsaWallet0.connect(wallet0).cast(...encodeSpells(spells), wallet0.address);
const receipt = await tx.wait();
});
it("Should check DSA COMPOUND position", async () => {
const ethExchangeRate = (await cEth.connect(wallet0).callStatic.exchangeRateCurrent()) / 1e28;
expect(new BigNumber(await cEth.connect(wallet0).balanceOf(dsaWallet0.address)).dividedBy(1e8).toFixed(0)).to.eq(
new BigNumber(9).dividedBy(ethExchangeRate).toFixed(0)
);
});
});
});