Compare commits
1 Commits
bef587cc1a
...
b65b0ee16b
| Author | SHA1 | Date | |
|---|---|---|---|
| b65b0ee16b |
@ -40,12 +40,12 @@ export class TornadoFeeOracleV6 extends TornadoFeeOracle implements ITornadoFeeO
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Apply static 30% gasPrice premium for EIP-1559 enabled networks
|
* Apply static 50% gasPrice premium for EIP-1559 enabled networks
|
||||||
*
|
*
|
||||||
* Because Tornado Transactions are censored from block builders
|
* Because Tornado Transactions are censored from block builders
|
||||||
* it would take some time to be confirmed after when the transaction is broadcasted.
|
* it would take some time to be confirmed after when the transaction is broadcasted.
|
||||||
*
|
*
|
||||||
* We apply 30% premium and 56% overall premium to combat basefee spike
|
* We apply 50% premium to combat basefee spike (ethers.js uses 100% premium by default)
|
||||||
* (Can spike 12.5% per block accoring to the EIP-1559 metrics https://metamask.io/1559/)
|
* (Can spike 12.5% per block accoring to the EIP-1559 metrics https://metamask.io/1559/)
|
||||||
*/
|
*/
|
||||||
async getGasPriceParams(speed?: LegacyGasPriceKey, bumpPercent?: number): Promise<GasPriceParams> {
|
async getGasPriceParams(speed?: LegacyGasPriceKey, bumpPercent?: number): Promise<GasPriceParams> {
|
||||||
@ -53,7 +53,7 @@ export class TornadoFeeOracleV6 extends TornadoFeeOracle implements ITornadoFeeO
|
|||||||
return this.overrideGasPrice;
|
return this.overrideGasPrice;
|
||||||
}
|
}
|
||||||
if (typeof bumpPercent === 'undefined') {
|
if (typeof bumpPercent === 'undefined') {
|
||||||
bumpPercent = this.chainId === ChainId.BSC ? undefined : 30;
|
bumpPercent = this.chainId === ChainId.BSC ? undefined : 50;
|
||||||
}
|
}
|
||||||
return super.getGasPriceParams(speed, bumpPercent);
|
return super.getGasPriceParams(speed, bumpPercent);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user