Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Ensure that Aurora transactions don't have a gas price (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
bleaker0x committed Jan 3, 2022
1 parent 0ea3a6e commit cafe4a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bridge/gasutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ export namespace GasUtils {
approveGasLimit: BigNumber.from(75000),
}

const AURORA_GAS_PARAMS: GasParams = {
gasPrice: parseUnits('0', 'gwei'),
}

export function makeGasParams(chainId: number): GasParams {
switch (chainId) {
case ChainId.ETH:
Expand All @@ -41,6 +45,8 @@ export namespace GasUtils {
return ARBITRUM_GAS_PARAMS
case ChainId.AVALANCHE:
return AVALANCHE_GAS_PARAMS
case ChainId.AURORA:
return AURORA_GAS_PARAMS
}

return {}
Expand Down

0 comments on commit cafe4a7

Please sign in to comment.