mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-24 23:35:19 +00:00
1743cf5275
Fix reserve minting an extra coin when the recipient module both carries fractional over to integer balance AND remainder is insufficient. Adjusts fractional carry to simply send from reserve, instead of doing an additional mint. Add invariant to ensure reserve matches exactly with fractional balances + remainder, failing on both insufficient and excess funds. |
||
---|---|---|
.. | ||
keeper | ||
testutil | ||
types | ||
genesis_test.go | ||
genesis.go | ||
module.go | ||
README.md |
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.