Skip to content

Commit

Permalink
Test helper tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
RickGriff committed Feb 14, 2024
1 parent 35397ec commit 7be23a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/utils/testHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,7 @@ class TestHelper {
* So, it adds the gas compensation and the borrowing fee
*/
static async getOpenTroveTotalDebt(contracts, boldAmount) {
const fee = this.toBN(0);
const compositeDebt = await this.getCompositeDebt(contracts, boldAmount);
return compositeDebt.add(fee);
return(await this.getCompositeDebt(contracts, boldAmount));
}

/*
Expand All @@ -354,11 +352,13 @@ class TestHelper {
}

// Subtracts the borrowing fee
// TODO: remove this, since we won't use the old borrow fee scheme
static async getNetBorrowingAmount(contracts, debtWithFee) {
return this.toBN(debtWithFee);
}

// Adds the borrowing fee
// TODO: remove this, since we won't use the old borrow fee scheme
static async getAmountWithBorrowingFee(contracts, boldAmount) {
return boldAmount;
}
Expand Down

0 comments on commit 7be23a8

Please sign in to comment.