From 5428a8a13238b589184daf06b9257a62c7098c9f Mon Sep 17 00:00:00 2001 From: "Miquel A. Cabot" Date: Tue, 19 Apr 2022 08:49:29 +0200 Subject: [PATCH] fix estimate gas in deactivateMint() and updateMarketFee() --- src/pools/fixedRate/FixedRateExchange.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pools/fixedRate/FixedRateExchange.ts b/src/pools/fixedRate/FixedRateExchange.ts index a7874ac2..78e848c3 100644 --- a/src/pools/fixedRate/FixedRateExchange.ts +++ b/src/pools/fixedRate/FixedRateExchange.ts @@ -788,7 +788,7 @@ export class FixedRateExchange { if (!exchange) return null if (exchange.withMint === false) return null - const estGas = await this.estDeactivate(address, exchangeId) + const estGas = await this.estDeactivateMint(address, exchangeId) const trxReceipt = await this.contract.methods .toggleMintState(exchangeId, false) @@ -1095,7 +1095,7 @@ export class FixedRateExchange { exchangeId: string, newMarketFee: string ): Promise { - const estGas = await this.estSetRate( + const estGas = await this.estUpdateMarketFee( address, exchangeId, this.web3.utils.toWei(newMarketFee)