0g-chain/x/precisebank/keeper
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
..
burn_integration_test.go feat(x/precisebank): Implement BurnCoins (#1934) 2024-06-20 15:02:23 -07:00
burn_test.go feat(x/precisebank): Implement BurnCoins (#1934) 2024-06-20 15:02:23 -07:00
burn.go feat(x/precisebank): Implement BurnCoins (#1934) 2024-06-20 15:02:23 -07:00
fractional_balance_test.go feat(x/precisebank): Implement MintCoins (#1920) 2024-05-24 12:03:09 -07:00
fractional_balance.go feat(x/precisebank): Implement MintCoins (#1920) 2024-05-24 12:03:09 -07:00
invariants_integration_test.go fix(x/precisebank): Ensure exact reserve balance on integer carry when minting (#1932) 2024-06-20 15:20:13 -07:00
invariants_test.go feat(x/precisebank): Implement GetBalance (#1916) 2024-05-21 14:11:13 -07:00
invariants.go fix(x/precisebank): Ensure exact reserve balance on integer carry when minting (#1932) 2024-06-20 15:20:13 -07:00
keeper_test.go feat(x/precisebank): Implement MintCoins (#1920) 2024-05-24 12:03:09 -07:00
keeper.go feat(x/precisebank): Implement BurnCoins (#1934) 2024-06-20 15:02:23 -07:00
mint_integration_test.go fix(x/precisebank): Ensure exact reserve balance on integer carry when minting (#1932) 2024-06-20 15:20:13 -07:00
mint_test.go fix(x/precisebank): Ensure exact reserve balance on integer carry when minting (#1932) 2024-06-20 15:20:13 -07:00
mint.go fix(x/precisebank): Ensure exact reserve balance on integer carry when minting (#1932) 2024-06-20 15:20:13 -07:00
remainder_amount_test.go feat(x/precisebank): Implement GetBalance (#1916) 2024-05-21 14:11:13 -07:00
remainder_amount.go feat(x/precisebank): Add keeper methods for store (#1912) 2024-05-16 15:30:31 -07:00
send_integration_test.go feat(x/precisebank): Implement SendCoins (#1923) 2024-06-17 10:53:41 -07:00
send_test.go feat(x/precisebank): Implement SendCoins (#1923) 2024-06-17 10:53:41 -07:00
send.go feat(x/precisebank): Implement SendCoins (#1923) 2024-06-17 10:53:41 -07:00
view_test.go feat(x/precisebank): Implement GetBalance (#1916) 2024-05-21 14:11:13 -07:00
view.go feat(x/precisebank): Implement MintCoins (#1920) 2024-05-24 12:03:09 -07:00