iearn-finance icon indicating copy to clipboard operation
iearn-finance copied to clipboard

Ledger wallet derivation paths missing from yield/earn

Open zenzen-sol opened this issue 4 years ago • 0 comments

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:

  1. Connect Ledger wallet from https://yearn.finance/vaults and choose a derivation path other than the "default" path.
  2. Deposit funds into a vault from the Ledger wallet.
  3. Switch to https://v1.yearn.finance/earn.
  4. Connect Ledger wallet.
  5. 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 Screen Shot 2021-02-06 at 9 43 05

Versions

  • Browser: Chrome 88.0.4324.96 (Official Build) (x86_64)

zenzen-sol avatar Feb 06 '21 00:02 zenzen-sol