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

Feat: Avalanche Support #3487

Merged
merged 21 commits into from
Jul 24, 2023
Merged

Feat: Avalanche Support #3487

merged 21 commits into from
Jul 24, 2023

Conversation

timjrobinson
Copy link
Contributor

@timjrobinson timjrobinson commented Jun 2, 2023

Description

Adds support for Avalanche

Related PR's: (Should all be merged first)

Type of change

  • New feature (non-breaking change which adds functionality)

How should this be tested?

  • Select Avalanche network or go to /avalanche.
  • Ensure swaps / depositing / withdrawing works as expected.

Checklist:

  • I have performed a self-review of my own code
  • I have requested at least 1 review (If the PR is significant enough, use best judgement here)
  • I have commented my code where relevant, particularly in hard-to-understand areas
  • If package-lock.json has changes, it was intentional.
  • The base of this PR is master if hotfix, develop if not

- Add Initial contract addresses and settings for Avalanche
@vercel
Copy link

vercel bot commented Jun 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
beta-app-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2023 2:45pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
app-v2 ⬜️ Ignored (Inspect) Jul 24, 2023 2:45pm

@timjrobinson
Copy link
Contributor Author

All other components are working and deployed so this is ready to go now.

@timjrobinson
Copy link
Contributor Author

timjrobinson commented Jul 12, 2023

After the Multichain bridge hack we've switched to a new BAL token on Avalanche using LayerZero instead. The new address is 0xE15bCB9E0EA69e6aB9FA080c4c4A5632896298C3, see: https://snowtrace.io/address/0xE15bCB9E0EA69e6aB9FA080c4c4A5632896298C3. I'm updating all repos with this new address now.

balancer/tokenlists#273
beethovenxfi/beethovenx-backend#402
balancer/balancer-sdk#484
balancer/balancer-api#227

@agualis agualis changed the base branch from develop to master July 24, 2023 14:57
@agualis agualis merged commit 720b673 into master Jul 24, 2023
4 checks passed
agualis added a commit that referenced this pull request Jul 24, 2023
* fix: Exact out handler (#3793)

* fix: Don't use swap exit if 1st level pool token

* fix: buildExitExactTokensOut needs to have the bpt removed from tokenslist

* 1.115.1

* Feat: Avalanche Support (#3487)

* Feat: Avalanche Support

* Add Initial contract addresses and settings for Avalanche

* Add subgraphs and token addresses

* Use a different public RPC. Add multicall address

* Fix websocket URL, wallet enum and allowlist pools I created

* Add trust wallet network for gauges and icons

* Add avalanche network icon

* Use new BAL token

* Hide Avalanche in UI

* whitelist initial boosted pools

* Add pool factories. Remove pool with old BAL token from allowlist

* Load ComposableStable and FX pool types

* Add gyro to included pool types

* Fix pools protocol features after refactor

---------

Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Alberto Gualis <[email protected]>

* 1.115.2

* fix: Catch metadata error setting (#3794)

* 1.115.3

---------

Co-authored-by: Gareth Fuller <[email protected]>
Co-authored-by: Automated Version Bump <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: ZeKraken <[email protected]>
agualis added a commit that referenced this pull request Jul 25, 2023
* fix: Exact out handler (#3793)

* fix: Don't use swap exit if 1st level pool token

* fix: buildExitExactTokensOut needs to have the bpt removed from tokenslist

* 1.115.1

* Feat: Avalanche Support (#3487)

* Feat: Avalanche Support

* Add Initial contract addresses and settings for Avalanche

* Add subgraphs and token addresses

* Use a different public RPC. Add multicall address

* Fix websocket URL, wallet enum and allowlist pools I created

* Add trust wallet network for gauges and icons

* Add avalanche network icon

* Use new BAL token

* Hide Avalanche in UI

* whitelist initial boosted pools

* Add pool factories. Remove pool with old BAL token from allowlist

* Load ComposableStable and FX pool types

* Add gyro to included pool types

* Fix pools protocol features after refactor

---------

Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Alberto Gualis <[email protected]>

* 1.115.2

* fix: Catch metadata error setting (#3794)

* 1.115.3

* update weekly gauges and whitelist for migration

---------

Co-authored-by: Gareth Fuller <[email protected]>
Co-authored-by: Automated Version Bump <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: ZeKraken <[email protected]>
garethfuller added a commit that referenced this pull request Jul 26, 2023
…(dm) (#3805)

* fix: Exact out handler (#3793)

* fix: Don't use swap exit if 1st level pool token

* fix: buildExitExactTokensOut needs to have the bpt removed from tokenslist

* 1.115.1

* Feat: Avalanche Support (#3487)

* Feat: Avalanche Support

* Add Initial contract addresses and settings for Avalanche

* Add subgraphs and token addresses

* Use a different public RPC. Add multicall address

* Fix websocket URL, wallet enum and allowlist pools I created

* Add trust wallet network for gauges and icons

* Add avalanche network icon

* Use new BAL token

* Hide Avalanche in UI

* whitelist initial boosted pools

* Add pool factories. Remove pool with old BAL token from allowlist

* Load ComposableStable and FX pool types

* Add gyro to included pool types

* Fix pools protocol features after refactor

---------

Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Alberto Gualis <[email protected]>

* 1.115.2

* fix: Catch metadata error setting (#3794)

* 1.115.3

* Update SDK

* 1.115.4

* fix: Selected token in add liquidity form (#3788)

* 1.115.5

* update weekly gauges and whitelist for migration (#3796)

* 1.115.6

* Update `pools.ts` (#3786)

Co-authored-by: Gareth Fuller <[email protected]>

* 1.115.7

* fix: Wait for approvals in lock actions (#3802)

* 1.115.8

* fix: Only set single asset exit default to wrapped if swaps possible

---------

Co-authored-by: Alberto Gualis <[email protected]>
Co-authored-by: Automated Version Bump <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: Max Korolev <[email protected]>
garethfuller added a commit that referenced this pull request Jul 26, 2023
* fix: Exact out handler (#3793)

* fix: Don't use swap exit if 1st level pool token

* fix: buildExitExactTokensOut needs to have the bpt removed from tokenslist

* 1.115.1

* Feat: Avalanche Support (#3487)

* Feat: Avalanche Support

* Add Initial contract addresses and settings for Avalanche

* Add subgraphs and token addresses

* Use a different public RPC. Add multicall address

* Fix websocket URL, wallet enum and allowlist pools I created

* Add trust wallet network for gauges and icons

* Add avalanche network icon

* Use new BAL token

* Hide Avalanche in UI

* whitelist initial boosted pools

* Add pool factories. Remove pool with old BAL token from allowlist

* Load ComposableStable and FX pool types

* Add gyro to included pool types

* Fix pools protocol features after refactor

---------

Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Alberto Gualis <[email protected]>

* 1.115.2

* fix: Catch metadata error setting (#3794)

* 1.115.3

* Update SDK

* 1.115.4

* fix: Selected token in add liquidity form (#3788)

* 1.115.5

* update weekly gauges and whitelist for migration (#3796)

* 1.115.6

* Update `pools.ts` (#3786)

Co-authored-by: Gareth Fuller <[email protected]>

* 1.115.7

* fix: Wait for approvals in lock actions (#3802)

* 1.115.8

* fix: Prevent any kind of negative input in TokenInput

* chore: Minor style fix in TokenSelectInput

* fix: Prevent pool creation before approval actions have loaded

* fix: Prevent pool creation if wallet on wrong network

---------

Co-authored-by: Alberto Gualis <[email protected]>
Co-authored-by: Automated Version Bump <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: Max Korolev <[email protected]>
garethfuller added a commit that referenced this pull request Jul 26, 2023
* fix: Exact out handler (#3793)

* fix: Don't use swap exit if 1st level pool token

* fix: buildExitExactTokensOut needs to have the bpt removed from tokenslist

* 1.115.1

* Feat: Avalanche Support (#3487)

* Feat: Avalanche Support

* Add Initial contract addresses and settings for Avalanche

* Add subgraphs and token addresses

* Use a different public RPC. Add multicall address

* Fix websocket URL, wallet enum and allowlist pools I created

* Add trust wallet network for gauges and icons

* Add avalanche network icon

* Use new BAL token

* Hide Avalanche in UI

* whitelist initial boosted pools

* Add pool factories. Remove pool with old BAL token from allowlist

* Load ComposableStable and FX pool types

* Add gyro to included pool types

* Fix pools protocol features after refactor

---------

Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Alberto Gualis <[email protected]>

* 1.115.2

* fix: Catch metadata error setting (#3794)

* 1.115.3

* Update SDK

* 1.115.4

* fix: Selected token in add liquidity form (#3788)

* 1.115.5

* update weekly gauges and whitelist for migration (#3796)

* 1.115.6

* Update `pools.ts` (#3786)

Co-authored-by: Gareth Fuller <[email protected]>

* 1.115.7

* fix: Wait for approvals in lock actions (#3802)

* 1.115.8

* fix: Only set single asset exit default to wrapped if swaps possible (#3803)

* 1.115.9

* fix: Multiple minor fixes (#3804)

* fix: Prevent any kind of negative input in TokenInput

* chore: Minor style fix in TokenSelectInput

* fix: Prevent pool creation before approval actions have loaded

* fix: Prevent pool creation if wallet on wrong network

* 1.115.10

* chore: Add deprecated pools data for Arbitrum pools

* fix: Revert previous fix

---------

Co-authored-by: Alberto Gualis <[email protected]>
Co-authored-by: Automated Version Bump <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: Max Korolev <[email protected]>
joehquak referenced this pull request in Sobal/frontend-v2 Jul 30, 2023
…(dm) (#3805)

* fix: Exact out handler (#3793)

* fix: Don't use swap exit if 1st level pool token

* fix: buildExitExactTokensOut needs to have the bpt removed from tokenslist

* 1.115.1

* Feat: Avalanche Support (#3487)

* Feat: Avalanche Support

* Add Initial contract addresses and settings for Avalanche

* Add subgraphs and token addresses

* Use a different public RPC. Add multicall address

* Fix websocket URL, wallet enum and allowlist pools I created

* Add trust wallet network for gauges and icons

* Add avalanche network icon

* Use new BAL token

* Hide Avalanche in UI

* whitelist initial boosted pools

* Add pool factories. Remove pool with old BAL token from allowlist

* Load ComposableStable and FX pool types

* Add gyro to included pool types

* Fix pools protocol features after refactor

---------

Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Alberto Gualis <[email protected]>

* 1.115.2

* fix: Catch metadata error setting (#3794)

* 1.115.3

* Update SDK

* 1.115.4

* fix: Selected token in add liquidity form (#3788)

* 1.115.5

* update weekly gauges and whitelist for migration (#3796)

* 1.115.6

* Update `pools.ts` (#3786)

Co-authored-by: Gareth Fuller <[email protected]>

* 1.115.7

* fix: Wait for approvals in lock actions (#3802)

* 1.115.8

* fix: Only set single asset exit default to wrapped if swaps possible

---------

Co-authored-by: Alberto Gualis <[email protected]>
Co-authored-by: Automated Version Bump <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: Max Korolev <[email protected]>
joehquak referenced this pull request in Sobal/frontend-v2 Jul 30, 2023
* fix: Exact out handler (#3793)

* fix: Don't use swap exit if 1st level pool token

* fix: buildExitExactTokensOut needs to have the bpt removed from tokenslist

* 1.115.1

* Feat: Avalanche Support (#3487)

* Feat: Avalanche Support

* Add Initial contract addresses and settings for Avalanche

* Add subgraphs and token addresses

* Use a different public RPC. Add multicall address

* Fix websocket URL, wallet enum and allowlist pools I created

* Add trust wallet network for gauges and icons

* Add avalanche network icon

* Use new BAL token

* Hide Avalanche in UI

* whitelist initial boosted pools

* Add pool factories. Remove pool with old BAL token from allowlist

* Load ComposableStable and FX pool types

* Add gyro to included pool types

* Fix pools protocol features after refactor

---------

Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Alberto Gualis <[email protected]>

* 1.115.2

* fix: Catch metadata error setting (#3794)

* 1.115.3

* Update SDK

* 1.115.4

* fix: Selected token in add liquidity form (#3788)

* 1.115.5

* update weekly gauges and whitelist for migration (#3796)

* 1.115.6

* Update `pools.ts` (#3786)

Co-authored-by: Gareth Fuller <[email protected]>

* 1.115.7

* fix: Wait for approvals in lock actions (#3802)

* 1.115.8

* fix: Prevent any kind of negative input in TokenInput

* chore: Minor style fix in TokenSelectInput

* fix: Prevent pool creation before approval actions have loaded

* fix: Prevent pool creation if wallet on wrong network

---------

Co-authored-by: Alberto Gualis <[email protected]>
Co-authored-by: Automated Version Bump <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: Max Korolev <[email protected]>
@zekraken-bot zekraken-bot deleted the feat/avalanche branch May 8, 2024 17:38
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 this pull request may close these issues.

4 participants