Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anchorage Bridging : Gas Fee (Deposit & Withdrwal) #481

Open
sk-enya opened this issue Apr 16, 2024 · 2 comments
Open

Anchorage Bridging : Gas Fee (Deposit & Withdrwal) #481

sk-enya opened this issue Apr 16, 2024 · 2 comments
Assignees

Comments

@sk-enya
Copy link
Collaborator

sk-enya commented Apr 16, 2024

Issue Type

[ ] bug report
[x] feature request

Current Behavior

We have disable the gas fee calcualtion on bridging confirm model for anchorage
while deposit & withdrawal.

Expected Behavior

We should show the

  • Deposit
    • Gas fee
    • Bridge Fee
  • Withdrawal
    • Bridge Fee
    • Gas fee to initiate
    • Gas fee to complete (gas fee to complete includes submitting the proof and claiming the token)
@sk-enya
Copy link
Collaborator Author

sk-enya commented Apr 16, 2024

networkService.OptimismPortal?.connect('We need to hardcoded this address').estimateGas.depositTransaction(recipient, 1, 100000, false, [])

this.L1StandardBridgeContract!.connect('We need to hardcoded this address').estimateGas.depositETHTo(recipient, 100000, [], { value: 1 })

0xdb5a187FED81c735ddB1F6E47F28f2A5F74639b2

@sk-enya
Copy link
Collaborator Author

sk-enya commented May 2, 2024

For example, for proving the withdrawal, the gas usage is 285,428. You can hardcode this number and multiple it by the latest L1 gas price.
https://etherscan.io/tx/0x49ae37bf79fba7d82953eb3693c4c391ee3deb13a11271a7d1144bfd622dc150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant