Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed Apr 22, 2024
1 parent 53061f9 commit 9fdae37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/arbitrum/flashMintLeveragedExtended.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ if (process.env.INTEGRATIONTEST) {
.connect(await impersonateAccount(addresses.whales.USDC))
.transfer(owner.address, utils.parseUnits("10000", 6));
}
// This is done to avoid flaky "Invalid transfer in, results in undercollateralization" error
// See: https://github.com/IndexCoop/index-protocol/blob/1a587d93d273d9004d03f1235c395f6f7cd147dc/test/protocol/modules/v1/debtIssuanceModuleV2.spec.ts#L730
// TODO: Review if we have to do this in production.
await aweth.transfer(setToken.address, ether(0.000001));
});

describe(
Expand Down

0 comments on commit 9fdae37

Please sign in to comment.