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
81 stars 32 forks source link

Use designed functions to adjust price and quantity decimals in Orderbook Query #105

Closed SirTLB closed 8 months ago

SirTLB commented 1 year ago
            //TODO: use designed functions to adjust price and quantity decimals
            The orderbook query still uses non-defaulted price and quantity transformation, We preferably use the ones we designed for it and wrote tests for

https://github.com/White-Whale-Defi-Platform/white-whale-bots/blob/52d8988cf4e43df0164f8bf4a9c233a49a3c47fa/src/chains/inj/queries/getOrderbookState.ts#L27