iearn-finance
iearn-finance copied to clipboard
Ledger wallet derivation paths missing from yield/earn
Description
On the "vault" UI at https://yearn.finance/vaults
, the "Connect Wallet" button includes an option for Ledger. When Ledger is selected, the user is asked to choose between different derivation paths on their Ledger Wallet. The user is able to choose a derivation path and make a deposit. (Screenshot below.)
However, if the user switches to the "earn" UI at https://v1.yearn.finance/earn
, they are no longer connected to their wallet. If they click the "Connect your wallet" button, and choose Ledger, they are not asked to choose a derivation path. Instead, a default derivation path is chosen for them. If this is a different derivation path from the one chosen in the "vault" UI, then the user's deposit balance will not be available in the "earn" UI.
Steps to reproduce
Steps to reproduce the behavior:
- Connect Ledger wallet from
https://yearn.finance/vaults
and choose a derivation path other than the "default" path. - Deposit funds into a vault from the Ledger wallet.
- Switch to
https://v1.yearn.finance/earn
. - Connect Ledger wallet.
- Vault deposits are unavailable, since the second wallet connection is aimed at a different derivation path than the first.
Expected behavior
The "earn" UI at https://v1.yearn.finance/earn
would ideally retain the same wallet connection as the "vault" UI at https://yearn.finance/vaults
. At the very least, the two UIs should offer the same connection method, including the option to choose a derivation path on the Ledger wallet.
Screenshots
Versions
- Browser: Chrome 88.0.4324.96 (Official Build) (x86_64)