0g-chain/x/precisebank
drklee3 1743cf5275
fix(x/precisebank): Ensure exact reserve balance on integer carry when minting (#1932)
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.
2024-06-20 15:20:13 -07:00
..
keeper fix(x/precisebank): Ensure exact reserve balance on integer carry when minting (#1932) 2024-06-20 15:20:13 -07:00
testutil feat(x/precisebank): Implement SendCoins (#1923) 2024-06-17 10:53:41 -07:00
types feat(x/precisebank): Implement BurnCoins (#1934) 2024-06-20 15:02:23 -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.