alchemix-finance / alchemix-v2-frontend

Repository for v2 UI
https://alchemix.fi
ISC License
12 stars 22 forks source link

Fix balance comparison in Repay.svelte and add staking pool address for alETH arbitrum #565

Closed hone1er closed 4 months ago

hone1er commented 4 months ago

This pull request addresses an issue with the DebtCard selectors

Problems:

In the Repay component, when switching between alUSD & alETH debt, the default available currency for repayment does not change. This issue is on all networks

In the Liquidation component, while connected to arbitrum, if the user tries to select the alETH DebtCard an error is thrown and the UI becomes unresponsive to inputs. This issue only exist on arbitrum network

Solutions

The first commit fixes a balance comparison issue in the Repay.svelte file. This allows the default currency to change even when user has a 0 balance in their wallet of the repayment currencies

The second commit adds a staking pool address for alETH arbitrum. This solves the error by adding the alETH token to the balancesStore on arbitrum

vercel[bot] commented 4 months ago

@hone1er is attempting to deploy a commit to the Alchemix Finance Team on Vercel.

A member of the Team first needs to authorize it.