mirror of
https://github.com/tornadocash/tornado-relayer
synced 2024-02-02 15:04:06 +01:00
tornado classic fee estimate compatibility
This commit is contained in:
parent
be969ca8c0
commit
185b18b33a
@ -152,7 +152,11 @@ export class TxService {
|
||||
const [fee, refund] = [args[4], args[5]].map(BigNumber.from);
|
||||
const gasPrice = await this.getGasPrice();
|
||||
// TODO check refund value
|
||||
let operationCost = gasPrice.mul(this.gasLimit);
|
||||
let gasLimit = this.gasLimit;
|
||||
if (!this.config.isLightMode) {
|
||||
gasLimit = gasLimits[RelayerJobType.TORNADO_WITHDRAW];
|
||||
}
|
||||
let operationCost = gasPrice.mul(gasLimit);
|
||||
|
||||
if (netId === ChainIds.optimism) {
|
||||
const l1Fee = await this.getL1Fee(data, gasPrice);
|
||||
|
Loading…
Reference in New Issue
Block a user