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

Develop new Avalanche root gauge for new LZ bridge #2531

Closed
jubeira opened this issue Jul 12, 2023 · 1 comment · Fixed by #2540
Closed

Develop new Avalanche root gauge for new LZ bridge #2531

jubeira opened this issue Jul 12, 2023 · 1 comment · Fixed by #2540
Assignees

Comments

@jubeira
Copy link
Contributor

jubeira commented Jul 12, 2023

BAL has a new address in Avalanche, and will now be bridged using LZ infrastructure.

Info:

  • BALProxy (ethereum): 0xE15bCB9E0EA69e6aB9FA080c4c4A5632896298C3
  • BAL (avalanche): 0xE15bCB9E0EA69e6aB9FA080c4c4A5632896298C3

The steps to bridge from mainnet are the following:

  1. approve 0xE15bCB9E0EA69e6aB9FA080c4c4A5632896298C3 to spend the quantity to be bridged
  2. Call sendFrom on 0xE15bCB9E0EA69e6aB9FA080c4c4A5632896298C3

This should be done by Avalanche's root gauge; we won't be using the current bridge anymore.

@jubeira jubeira self-assigned this Aug 2, 2023
@jubeira
Copy link
Contributor Author

jubeira commented Aug 2, 2023

Update: here's a transfer of test BAL from Sepolia to Goerli-Optimism: https://testnet.layerzeroscan.com/10161/address/0x1702067424096f07a60e62ccee3de9420068492d/message/10132/address/0xe39b5e3b6d74016b2f6a9673d7d7493b6df549d5/nonce/2.

The sender / receiver contracts in Sepolia and Goerli OPT are the same ones used in ETH / AVAX respectively.
Then, the gauge should do the same as the TX.

Some notes:

  • The address is sent as bytes32.
  • The transfer requires some eth to work, which has to be queried beforehand.

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

Successfully merging a pull request may close this issue.

1 participant