Skip to content

Commit b619a9a

Browse files
committed
Bigint cast
1 parent 02081fb commit b619a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dex/teddyswap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export class TeddySwap extends BaseDex {
189189

190190
const batcherFeeForToken = Number(batcherFee.value) / Number(minReceive);
191191
const [numerator, denominator] = decimalToFractionalImproved(batcherFeeForToken);
192-
const lpfee: number = 1000 - liquidityPool.poolFeePercent * 10;
192+
const lpfee: bigint = BigInt(1000 - Math.floor(liquidityPool.poolFeePercent * 10));
193193

194194
swapParameters = {
195195
...swapParameters,

0 commit comments

Comments
 (0)