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

Injective decimals not handled properly in applying mempool trades #76

Closed SirTLB closed 1 year ago

SirTLB commented 1 year ago

At the moment the 'inj' token on Injective holds 18 decimals. Although we handle this well on querying and broadcasting messages, we do not yet handle it properly when we apply mempool trades on our pools to project future chain states. This causes incorrect arbitrage opportunities that the bot will try to trade. Note: only relevant when using mempool-loop or skip-loop.