From 88fbab560289009c4eaffb3f222366e59cfcfda3 Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Wed, 15 Jun 2022 07:11:19 +0300 Subject: [PATCH] removed some logs and added few comments --- src/@utils/order.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/@utils/order.ts b/src/@utils/order.ts index 6aa4cbedd..b41c195a2 100644 --- a/src/@utils/order.ts +++ b/src/@utils/order.ts @@ -64,7 +64,7 @@ export async function order( } } as OrderParams - // TODO: we need to approve provider fee + // TODO: we need to approve provider fee separately using aproveWei switch (asset.accessDetails?.type) { case 'fixed': { // this assumes all fees are in ocean @@ -87,8 +87,6 @@ export async function order( swapMarketFee: consumeMarketFixedSwapFee, marketFeeAddress } as FreOrderParams - console.log('freParams', freParams) - console.log('orderParams', orderParams) const tx = await datatoken.buyFromFreAndOrder( asset.accessDetails.datatoken.address, accountId, @@ -152,6 +150,7 @@ export async function reuseOrder( providerFees?.providerFeeAmount || initializeData?.providerFee?.providerFeeAmount ) { + // need to use approveWei here const txApprove = await approve( web3, accountId,