0g-chain/x/cdp/keeper
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
..
auctions_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
auctions.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
cdp_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
cdp.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
deposit_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
deposit.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
draw_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
draw.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
grpc_query_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
grpc_query.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
hooks.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
integration_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
interest_test.go (v0.26 <- #1822) Optimize CDP Begin Blocker (#1897) 2024-05-29 15:59:35 -07:00
interest.go (v0.26 <- #1822) Optimize CDP Begin Blocker (#1897) 2024-05-29 15:59:35 -07:00
keeper_bench_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
keeper_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
keeper.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
migrations.go feat(x/cdp): update begin bloocker to run liquidations every X blocks based off params (#1818) 2024-02-02 13:21:11 -05:00
msg_server.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
params.go feat(x/cdp): update begin bloocker to run liquidations every X blocks based off params (#1818) 2024-02-02 13:21:11 -05:00
querier.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
seize_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
seize.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00