Skip to content

yearn vaults page shows NaN #212

@jrhite

Description

@jrhite

The vaults page shows NaN for Total Earnings, Deposits, Withdrawals, Transferred In, Transferred Out for some accounts. NaN is showed for all vaults whether money has been deposited into the vault or not. This happens when some wallets are connected (I've observed with this with a pure Metamask account and also a Ledger account connected to yearn via Metamask). Other accounts look fine and show 0's as is expected.

The screenshot below shows this bug. I have deposited money in this particular vault and the values for Yearly Growth 14.25% on <balance> and the Your wallet: xxx 3crv (deposits) and xxx 3crv (xxx y3Crv) values are correct and update correctly as the balance changes, but as mentioned the Total Earnings, Deposits, Withdrawals, Transferred In, Transferred Out fields display incorrectly as NaN.

I don't remember exactly how I found myself in this scenario, but vaguely I remember, I transferred my y3Crv out of my pure Metamask account into my Ledger account attached via Metamask and since then both accounts show NaN. Other Metamask accounts of mine show 0's correctly.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions