0g-chain/x/cdp/keeper
Ruaridh 20b3fa53e3
Prevent panic-causing param values (#875)
* prevent cdp liquidation ratio being 0.0

* fix linter warning

* prevent hard conversin factor being < 1

* add liquidation tests for different keeper rewards
2021-03-15 08:44:23 -06:00
..
auctions_test.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
auctions.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
cdp_test.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
cdp.go Prevent panic-causing param values (#875) 2021-03-15 08:44:23 -06:00
deposit_test.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
deposit.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
draw_test.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
draw.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
hooks.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
integration_test.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
interest_test.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
interest.go Hard Audit: don't convert directly from sdk.Int to uint64 (#842) 2021-02-20 09:42:57 -07:00
keeper_bench_test.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
keeper_test.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
keeper.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
params.go Querier improvements: CDP and Auction priority 1 queries (#644) 2020-09-16 20:45:10 -04:00
querier_test.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
querier.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
seize_test.go fix: enforce max number of liquidations in cdp begin blocker (#849) 2021-02-23 12:39:39 -07:00
seize.go fix: enforce max number of liquidations in cdp begin blocker (#849) 2021-02-23 12:39:39 -07:00