0g-chain/x/precisebank
drklee3 025b7b2cdb
feat(x/precisebank): Add remainder amount to genesis (#1911)
- Validate total fractional amounts in genesis type
- Validate against fractional balances such that `(sum(balances) + remainder) % conversionFactor == 0`
- Add new utility type `SplitBalance` for splitting up full balances into each
2024-05-15 14:07:24 -07:00
..
keeper feat: Add x/precisebank module basic setup (#1906) 2024-05-10 09:30:28 -07:00
testutil feat(x/precisebank): Add remainder amount to genesis (#1911) 2024-05-15 14:07:24 -07:00
types feat(x/precisebank): Add remainder amount to genesis (#1911) 2024-05-15 14:07:24 -07:00
genesis_test.go feat(x/precisebank): Add remainder amount to genesis (#1911) 2024-05-15 14:07:24 -07:00
genesis.go feat(x/precisebank): Add remainder amount to genesis (#1911) 2024-05-15 14:07:24 -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.