Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Jan 3, 2024
1 parent e6d8f6b commit 9216a8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
};

Expand Down

0 comments on commit 9216a8b

Please sign in to comment.