From 0c4074500d89f1c8060f0fd4aecd603f01ca0ccd Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Wed, 5 Jul 2023 15:48:35 +0300 Subject: [PATCH] cleanups --- src/@utils/order.ts | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/src/@utils/order.ts b/src/@utils/order.ts index 63b29462c..b9966af1a 100644 --- a/src/@utils/order.ts +++ b/src/@utils/order.ts @@ -111,9 +111,7 @@ export async function order( orderPriceAndFees.price, false ) - console.log('typeof(tx) ', typeof tx) const txApprove = typeof tx !== 'number' ? await tx.wait() : tx - console.log('txApprove', txApprove) if (!txApprove) { return } @@ -121,25 +119,6 @@ export async function order( config.fixedRateExchangeAddress, signer ) - console.log( - ' await fixedRate.getDatatokenSupply(exchangeId)', - await fre.getDatatokenSupply(asset.accessDetails?.addressOrId) - ) - - console.log( - ' await fixedRate.getBasetokenSupply(exchangeId)', - await fre.getBasetokenSupply(asset.accessDetails?.addressOrId) - ) - console.log( - 'await signer.getAddress(), ==', - await signer.getAddress() - ) - console.log('account id ==', accountId) - console.log('orderPriceAndFees.price, ==', orderPriceAndFees.price) - console.log( - ' asset.accessDetails?.addressOrId ==', - asset.accessDetails?.addressOrId - ) const freTx = await fre.buyDatatokens( asset.accessDetails?.addressOrId, '1', @@ -147,9 +126,7 @@ export async function order( marketFeeAddress, consumeMarketFixedSwapFee ) - console.log('freTx ==', freTx) const buyDtTx = await freTx.wait() - console.log('buyDtTx ==', buyDtTx) } return await datatoken.startOrder( asset.accessDetails.datatoken.address, @@ -167,17 +144,10 @@ export async function order( asset.accessDetails.baseToken.address, asset.accessDetails.datatoken.address, orderPriceAndFees.price, - // await amountToUnits( - // signer, - // asset?.accessDetails?.baseToken?.address, - - // ), false ) - console.log('tx 2', tx) - // const txApprove = await tx.wait() + const txApprove = typeof tx !== 'number' ? await tx.wait() : tx - console.log('txApprove 2', txApprove) if (!txApprove) { return }