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

add decimals to asset type #102

Closed SirTLB closed 1 year ago

SirTLB commented 1 year ago

For further expanding across the cosmos we need to store the decimals somewhere in the bot. The asset seems the most logic place since its only relevant to that specific asset. Add the decimals field but make sure the query initPools and getPoolStates still work by reading an assetinfo from chain.