Grimace-Labs / GrimaceSwap

https://grimace-labs.github.io/GrimaceSwap/
GNU General Public License v3.0
6 stars 8 forks source link

feat(swap): Display price impact #25

Closed Normalizex closed 1 year ago

Normalizex commented 1 year ago

The price impact calculator uses bignumber.js because ethers.BigNumber actually is bn.js which can't work with "fractional numbers" which makes calculating % more difficult.