Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mn13 committed Sep 20, 2023
1 parent 658cb46 commit c4156e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 65 deletions.
8 changes: 7 additions & 1 deletion integration-tests/tests/pool/6.tx.budget.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
deposit,
init,
mintUnderlyingTo,
withdraw,
} from "../pool.sut";
import {
borrower1Keys,
Expand Down Expand Up @@ -51,7 +52,7 @@ describe("LendingPool: methods must not exceed CPU/MEM limits", function () {

// Borrower1 deposits 10_000_000_000 XLM, XRP, borrows 6_000_000_000 USDC
await deposit(client, borrower1Keys, "XLM", 10_000_000_000n);
await deposit(client, borrower1Keys, "XRP", 10_000_000_000n);
await deposit(client, borrower1Keys, "XRP", 30_000_000_000n);
await borrow(client, borrower1Keys, "USDC", 6_000_000_000n);

// Borrower2 deposits 20_000_000_000 USDC, borrows 6_000_000_000 XLM, 5_999_000_000 XRP
Expand All @@ -64,4 +65,9 @@ describe("LendingPool: methods must not exceed CPU/MEM limits", function () {
// Borrower1 borrows 20_000_000 USDC
await expect(borrow(client, borrower1Keys, "USDC", 20_000_000n)).to.not.eventually.rejected;
});

it("Case 2: withdraw full", async function () {
// Borrower1 witdraws all XLM
await expect(withdraw(client, borrower1Keys, "XLM", 170_141_183_460_469_231_731_687_303_715_884_105_727n)).to.not.eventually.rejected; // i128::MAX
});
});
64 changes: 0 additions & 64 deletions integration-tests/tests/pool/6.withdrawFull.spec.ts

This file was deleted.

0 comments on commit c4156e2

Please sign in to comment.