0g-chain/x/hard/keeper
sesheffield 7f339d20ca
fix(insolvency) kava lend insolvency check bug implementation (#1982)
* add additional tests that attempt to borrow funds from the insolvent market(should fail), and attempt to borrow funds from the not insolvent market (it will fail, but shouldn't). The not insolvent market should continue to processs borrows

* remove unused code

* make tests less specific for string contains

* add new get total reserves for denoms functionality

* start utilizing GetTotalReservesForDenoms in ValidateBorrow

* update tests for Borrow to not fail when borrowing from an insolvent market

* use get total reseves in GetTotalReservesForDenoms for reusability

* refactor GetTotalReservesForDenoms to GetTotalReservesByCoinDenoms for more clarity

* change the structure for new and old tests and add more verbosity for other tests

* remove print

* remove unneeded code

* add paren

* adjust structure again after initial PR

* remove duplicate test case with invalid test name, and update to use error contains in places where it was validating if true for strings contains

* no need for keeper method
2024-07-30 13:08:48 -04:00
..
borrow_test.go fix(insolvency) kava lend insolvency check bug implementation (#1982) 2024-07-30 13:08:48 -04:00
borrow.go fix(insolvency) kava lend insolvency check bug implementation (#1982) 2024-07-30 13:08:48 -04: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
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 Incentive/Hard rebase to master (#773) 2021-01-21 14:52:09 +01:00
integration_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
interest_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
interest.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
keeper_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
keeper.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
liquidation_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
liquidation.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
msg_server.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
params.go validate against money markets in store (#839) 2021-02-19 13:23:19 -07:00
repay_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
repay.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
withdraw_test.go Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
withdraw.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00