0g-chain/x/cdp
Nick DeLuca 6ea518960a
Optimize CDP Begin Blocker (#1822)
* optimize cdp begin blocker by removing unnecessary checks, reusing data
and prefix stores in loops, and reducing number of repeated calculations

* fix panic for new cdp types if both previous accural time and global
interest factor are not set

* do not touch global interest factor if no CDP's exist; revert to panic
if global interest factor is not found since this is an unreachable
state by normal keeper operation -- it can only be reached if store
is modified outside of public interface and normal operation
2024-03-26 13:06:26 -07:00
..
client/cli feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
keeper Optimize CDP Begin Blocker (#1822) 2024-03-26 13:06:26 -07:00
migrations/v2 Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
spec Fix CDP keeper liquidation collateral ratio check (#1488) 2023-03-07 20:19:29 -07:00
types Remove used legacy querier types (#1835) 2024-02-27 14:25:56 -05:00
abci_test.go Optimize CDP Begin Blocker (#1822) 2024-03-26 13:06:26 -07:00
abci.go Optimize CDP Begin Blocker (#1822) 2024-03-26 13:06:26 -07:00
genesis_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
genesis.go gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
integration_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
module.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00