Kava-Labs / kava

DeFi for Crypto.
Apache License 2.0
439 stars 364 forks source link

feat(x/precisebank): Display 0 reserve balance to module consumers #1958

Closed drklee3 closed 1 month ago

drklee3 commented 1 month ago

Module reserve represents fractional balances, so it should be hidden to consumers to not have a misleading total balance that doubles the fractional balances.

This modifies GetBalance() and SpendableCoin() to always return zero coins when fetching the reserve address balance.