0g-chain/x/precisebank
drklee3 9de9de671e
feat(x/precisebank): Display 0 reserve balance to module consumers (#1958)
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 for fractional amounts.
2024-07-10 11:14:17 -07:00
..
keeper feat(x/precisebank): Display 0 reserve balance to module consumers (#1958) 2024-07-10 11:14:17 -07:00
testutil feat(x/precisebank): Implement SendCoins (#1923) 2024-06-17 10:53:41 -07:00
types refactor(x/precisebank): Replace FractionalAmount wrapper with func (#1961) 2024-07-09 15:33:31 -07:00
genesis_test.go feat(x/precisebank): Implement ExportGenesis (#1915) 2024-05-20 09:50:31 -07:00
genesis.go feat(x/precisebank): Implement ExportGenesis (#1915) 2024-05-20 09:50:31 -07:00
module.go feat(x/precisebank): Add remainder amount to genesis (#1911) 2024-05-15 14:07:24 -07:00
README.md feat: Add x/precisebank module basic setup (#1906) 2024-05-10 09:30:28 -07:00

x/precisebank

Abstract

This document specifies the precisebank module of Kava.

The precisebank module is responsible for extending the precision of x/bank, intended to be used for the x/evm. It serves as a wrapper of x/bank to increase the precision of KAVA from 6 to 18 decimals, while preserving the behavior of existing x/bank balances.

This module is used only by x/evm where 18 decimal points are expected.