Skip to content

Commit

Permalink
removed amountToUnits inside marketFee
Browse files Browse the repository at this point in the history
  • Loading branch information
KatunaNorbert committed Mar 8, 2022
1 parent 8dd8f34 commit a62666d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pools/fixedRate/FixedRateExchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1085,17 +1085,13 @@ export class FixedRateExchange {
exchangeId: string,
newMarketFee: string
): Promise<TransactionReceipt> {
const exchange = await this.getExchange(exchangeId)
const estGas = await this.estSetRate(
address,
exchangeId,
await this.amountToUnits(exchange.baseToken, newMarketFee)
this.web3.utils.toWei(newMarketFee)
)
const trxReceipt = await this.contract.methods
.updateMarketFee(
exchangeId,
await this.amountToUnits(exchange.baseToken, newMarketFee)
)
.updateMarketFee(exchangeId, this.web3.utils.toWei(newMarketFee))
.send({
from: address,
gas: estGas + 1,
Expand Down

0 comments on commit a62666d

Please sign in to comment.