Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Jan 2, 2024
1 parent bc1788d commit bce42f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ export const getAddressAfterRemappingSharedStorefrontAddressToLazyMintAdapterAdd
*/
export const feesToBasisPoints = (fees: Fee[]): number => {
const feeBasisPoints = fees.map((fee) =>
Number(FixedNumber.fromValue(fee.fee).mul(FIXED_NUMBER_100).toString()),
Number(
FixedNumber.fromString(fee.fee.toString())
.mul(FIXED_NUMBER_100)
.toString(),
),
);
const totalBasisPoints = feeBasisPoints.reduce(
(sum, basisPoints) => basisPoints + sum,
Expand Down

0 comments on commit bce42f5

Please sign in to comment.