Skip to content

Commit 87d7c6f

Browse files
committed
fix: bigint notation
1 parent 61d0000 commit 87d7c6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/hooks/useClassicAppealContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ const getWinningChoice = (dispute?: ClassicAppealQuery["dispute"]) => {
112112
const getLoserRequiredFunding = (appealCost: bigint, loser_stake_multiplier: bigint): bigint =>
113113
notUndefined([appealCost, loser_stake_multiplier])
114114
? appealCost + (loser_stake_multiplier * appealCost) / ONE_BASIS_POINT
115-
: BigInt(0);
115+
: 0n;
116116

117117
const getWinnerRequiredFunding = (appealCost: bigint, winner_stake_multiplier: bigint): bigint =>
118118
notUndefined([appealCost, winner_stake_multiplier])
119119
? appealCost + (winner_stake_multiplier * appealCost) / ONE_BASIS_POINT
120-
: BigInt(0);
120+
: 0n;
121121

122122
const getDeadline = (lastPeriodChange: string, appealPeriodDuration: string, loserTimeMultiplier: string): number => {
123123
const parsedLastPeriodChange = BigInt(lastPeriodChange);

0 commit comments

Comments
 (0)