mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 16:55:21 +00:00
7f339d20ca
* 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 |
||
---|---|---|
.. | ||
borrow_test.go | ||
borrow.go | ||
deposit_test.go | ||
deposit.go | ||
grpc_query_test.go | ||
grpc_query.go | ||
hooks.go | ||
integration_test.go | ||
interest_test.go | ||
interest.go | ||
keeper_test.go | ||
keeper.go | ||
liquidation_test.go | ||
liquidation.go | ||
msg_server.go | ||
params.go | ||
repay_test.go | ||
repay.go | ||
withdraw_test.go | ||
withdraw.go |