White-Whale-Defi-Platform / white-whale-bots

A single-chain and multi-dex arbitrage bot the utilizing White Whale flash loans and Skip Protocol.
https://whitewhale.money
MIT License
83 stars 32 forks source link

bug: fix injective rounding issue when using String() #87

Closed SirTLB closed 1 year ago

SirTLB commented 1 year ago

The String() method caused non fixed numerical values to appear in trading messages (like 1224.2345e+20). this is incorrect behaviour and is solved by using the .toFixed() method from the BigNumber package.