0g-chain/x/cdp/keeper
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
..
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 Optimize CDP Begin Blocker (#1822) 2024-03-26 13:06:26 -07:00
interest.go Optimize CDP Begin Blocker (#1822) 2024-03-26 13:06:26 -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