pie-dao / pools.piedao.org

pools-piedao-org-flax.vercel.app
Other
25 stars 27 forks source link

fix to prevent issues with casting BN string to scientific notation #329

Closed jordaniza closed 2 years ago

jordaniza commented 2 years ago

Multiple BigNumber libraries are in place on the website.

BigNumber.js will convert numbers of a certain length to strings with scientific notation:

'1030356934929320413041020120' => '1.03e21'

This creates an error when ethers attempts to parse the string.