Skip to content

Commit

Permalink
updated 721 pool tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNoepel committed Dec 28, 2023
1 parent 697575f commit 5a9c1fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/erc721-pool-contracts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ describe('ERC721 Pool', () => {
tx = await bucket.addQuoteToken(signerLender, quoteAmount);
await submitAndVerifyTransaction(tx);
let lpBalance = await bucket.lpBalance(signerLender.address);
expect(lpBalance.gte(quoteAmount)).toBe(true);
expect(lpBalance).toEqual(toWad('99.9954337899543379'));

// remove liquidity
tx = await bucket.removeQuoteToken(signerLender, constants.MaxUint256);
Expand Down Expand Up @@ -240,7 +240,7 @@ describe('ERC721 Pool', () => {
it('debt may be drawn and repaid', async () => {
// confirm existing state
const initialStats = await poolDuckDai.getStats();
expect(initialStats.poolSize).toEqual(toWad(10_000));
expect(initialStats.poolSize).toEqual(toWad('9999.543378995433790000'));
expect(initialStats.debt).toBeBetween(toWad(400), toWad(500));
let loan = await poolDuckDai.getLoan(signerBorrower.address);
expect(loan.debt).toEqual(toWad(0));
Expand Down

0 comments on commit 5a9c1fe

Please sign in to comment.