yearn / yearn-finance

🏦 yearn v2 web interface
https://yearn.finance
MIT License
167 stars 111 forks source link

Error on loading v1 Lending UI; unusable #59

Closed dudesahn closed 3 years ago

dudesahn commented 3 years ago

Description

When users navigate to v1.yearn.finance/lending, receive the following error: Error: [BigNumber Error] Argument not a primitive number: 18

Graham have looked into this and the cause is we are passing decimals variable to toFixed but decimals is sometimes a string whereas toFixed wants a number. The following change fixes this (see line 4441 of stores/store.jsx), but then there are further errors that he didn't have time to investigate currently.

Further errors to investigate after fixing decimals issue:

ghost commented 3 years ago

resolved