Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nicole-obrien committed Aug 29, 2023
1 parent 05fa188 commit 154bbfb
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { SendFlowType } from '@core/wallet'

/**
* We need a fallback estimated gas, since we cannot estimate calls to the magic contract.
* We need a fallback estimated gas, since we cannot estimate calls to the magic contract if there is no balance on the sender address.
* For L1 -> L2 transfers we observed the following gas costs:
* Base Token Transfer: 22 000 glow
* Native Token Transfer: 63 000 glow
* NFT Transfer: 75 600 glow
* Therefor we set the fallback estimated gas to 100 000 glow
*/
* Base Token Transfer: < 24200 glow
* Native Token Transfer: < 24350 glow
* NFT Transfer: < 24700 glow */
export const FALLBACK_ESTIMATED_GAS: { [key in SendFlowType]: number } = {
[SendFlowType.BaseCoinTransfer]: 24200,
[SendFlowType.TokenTransfer]: 24350,
Expand Down

0 comments on commit 154bbfb

Please sign in to comment.