• Justin Domingue's avatar
    fix: better support decimal overflow (#2075) · e07599ef
    Justin Domingue authored
    * better support decimal overflow
    
    * improve tests
    
    * explicitly define num digits in toSignificant
    
    * add tests for 0 decimals
    
    * undo change to tryParseAmount and instead compute price without relying on parse
    
    * remove console log and add test
    
    * removed comment
    
    * addressed pr feedback
    
    * improve parsing logic
    
    * addressed pr feedback
    e07599ef
utils.test.ts 1.94 KB