From 76d6ee0923e8f4a51daec1eaf4063ac92aac8299 Mon Sep 17 00:00:00 2001 From: tate Date: Tue, 2 Mar 2021 22:01:40 -0500 Subject: [PATCH] fix: floor fees to allow individual nft transactions --- src/lib/fees.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/fees.ts b/src/lib/fees.ts index 7d7174b..d0a8b28 100644 --- a/src/lib/fees.ts +++ b/src/lib/fees.ts @@ -42,8 +42,8 @@ export const createTradingPostFeeTx = async ( post: string, exchangeWallet: string ): Promise => { - const tradingPostFee = Math.ceil( - Math.ceil(amnt) * (await getTradingPostFee(client, post, exchangeWallet)) + const tradingPostFee = Math.floor( + Math.floor(amnt) * (await getTradingPostFee(client, post, exchangeWallet)) ); const tags = { @@ -82,7 +82,7 @@ export const createVRTHolderFeeTx = async ( ): Promise => { const tipReceiver = await selectWeightedHolder(client, exchangeContract); - const fee = Math.ceil(Math.ceil(amnt) * exchangeFee); + const fee = Math.floor(Math.floor(amnt) * exchangeFee); const tags = { Exchange: "Verto",