balancer / balancer-v2-monorepo

Balancer V2 Monorepo
https://balancer.fi/
GNU General Public License v3.0
315 stars 382 forks source link

Develop new Avalanche root gauge for new LZ bridge #2531

Closed jubeira closed 1 year ago

jubeira commented 1 year ago

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

Info:

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 commented 1 year ago

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: