minor change

This commit is contained in:
Richa-iitr 2022-09-01 22:05:47 +05:30
parent 34fd05864c
commit 278019753d

View File

@ -304,6 +304,9 @@ describe("Compound III", function () {
}); });
it("should payback base token from Compound", async function () { it("should payback base token from Compound", async function () {
//deposit 10 usdc(base token) to dsa
await baseContract.connect(signer).transfer(dsaWallet0.address, ethers.utils.parseUnits("5", 6));
const amount = ethers.utils.parseUnits("102", 6); const amount = ethers.utils.parseUnits("102", 6);
//approve market to access dsaWallet0 //approve market to access dsaWallet0
await baseContract.connect(dsa0Signer).approve(market, amount); await baseContract.connect(dsa0Signer).approve(market, amount);
@ -359,7 +362,7 @@ describe("Compound III", function () {
); );
//dsawallet0 --> collateral 6eth, balance 5eth //dsawallet0 --> collateral 6eth, balance 5eth
//dsaWallet1 --> balance 3eth coll: 0eth //dsaWallet1 --> balance 9eth coll: 0eth
}); });
it("should withdraw some ETH collateral", async function () { it("should withdraw some ETH collateral", async function () {
@ -419,7 +422,7 @@ describe("Compound III", function () {
{ {
connector: connectorName, connector: connectorName,
method: "withdrawOnBehalf", method: "withdrawOnBehalf",
args: [market, dsaWallet0.address, amount, 0, 0] args: [market, dsaWallet0.address, dsaWallet0.address, amount, 0, 0]
} }
]; ];
//dsawallet0 --> collateral 0eth, balance 9eth //dsawallet0 --> collateral 0eth, balance 9eth