Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless0x committed Oct 8, 2024
1 parent b008d6c commit 520ad0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/bigInt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export const maxBigInt = (a: bigint, b: bigint) => {
return a > b ? a : b
}

/// Increases a BigInt by a certain percentage.
/// Scale a BigInt by a certain percentage.
export const scaleBigIntByPercent = (
value: bigint,
percent: number
): bigint => {
return value + (value * BigInt(percent)) / BigInt(100)
return (value * BigInt(percent)) / 100n
}

0 comments on commit 520ad0f

Please sign in to comment.