From 9216a8ba4459d76a662ce6c08fbeef1f929c140d Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Tue, 2 Jan 2024 17:27:05 -0800 Subject: [PATCH] fix --- src/utils/utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 0046184ad..ac09bc88e 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -241,7 +241,10 @@ export const feesToBasisPoints = (fees: Fee[]): bigint => { */ export const feeToBasisPoints = (fee: Fee): bigint => { return BigInt( - FixedNumber.fromString(fee.fee.toString()).mul(FIXED_NUMBER_100).toString(), + FixedNumber.fromString(fee.fee.toString()) + .mul(FIXED_NUMBER_100) + .toFormat(0) // format to 0 decimal places to convert to bigint + .toString(), ); };