Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 766238a

Browse files
author
Victor Wiebe
committed
fix: remove absoluteValue from dividend code
1 parent 14a028a commit 766238a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/contract_wrappers/modules/checkpoint/dividend_checkpoint_wrapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,11 +514,11 @@ export default abstract class DividendCheckpointWrapper extends ModuleWrapper {
514514
const erc20TokenBalance = await erc20Detailed.balanceOf.callAsync(callerAddress);
515515
const erc20TokenAllowance = await erc20Detailed.allowance.callAsync(callerAddress, await this.address());
516516
assert.assert(
517-
erc20TokenAllowance.isGreaterThanOrEqualTo(amount.absoluteValue()),
517+
erc20TokenAllowance.isGreaterThanOrEqualTo(amount),
518518
'Your allowance is less than dividend amount',
519519
);
520520
assert.assert(
521-
erc20TokenBalance.isGreaterThanOrEqualTo(amount.absoluteValue()),
521+
erc20TokenBalance.isGreaterThanOrEqualTo(amount),
522522
'Your balance is less than dividend amount',
523523
);
524524
} else {

0 commit comments

Comments
 (0)