0g-chain/x/cdp
Robert Pirtle 0dc30538b7
(v0.26 <- #1822) Optimize CDP Begin Blocker (#1897)
* 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

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
2024-05-29 15:59:35 -07:00
..
client/cli feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
keeper (v0.26 <- #1822) Optimize CDP Begin Blocker (#1897) 2024-05-29 15:59:35 -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 fix:paramaters->paramaters (#1796) (#1872) 2024-04-05 07:14:49 -07:00
abci_test.go (v0.26 <- #1822) Optimize CDP Begin Blocker (#1897) 2024-05-29 15:59:35 -07:00
abci.go (v0.26 <- #1822) Optimize CDP Begin Blocker (#1897) 2024-05-29 15:59:35 -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