diff --git a/package.json b/package.json index 225e76a..6606869 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tornado/tornado-oracles", - "version": "1.3.1", + "version": "1.3.2", "description": "Gas oracle for Tornado-specific transactions", "main": "./lib/index.js", "types": "./lib/index.d.ts", diff --git a/src/feeOracle.ts b/src/feeOracle.ts index 9032e67..e602fa3 100644 --- a/src/feeOracle.ts +++ b/src/feeOracle.ts @@ -184,7 +184,7 @@ export abstract class TornadoFeeOracle implements ITornadoFeeOracle { const gasCosts = BigNumber.from(await this.getGas(tx, type)); const relayerFee = parseUnits(amount.toString(), decimals) - .mul(`${relayerFeePercent * 1e10}`) + .mul(`${Math.floor(relayerFeePercent * 1e10)}`) .div(`${100 * 1e10}`); if ((this.chainId === ChainId.MAINNET || this.chainId === ChainId.GOERLI) && currency.toLowerCase() != 'eth') {