[bug] Misc Lending Bugs
During testing on stagenet, a series of minor bugs were discovered around the lending protocol.
- Borrowers endpoints (
/thorchain/pool/<asset>/borrowers
and/thorchain/pool/<asset>/borrower/<addr>
) should display current total open collateral and open debt - for loan quotes endpoints (open and close), use
from_asset
andto_asset
as query args. They are more consistent and clear - rename
collateral_up -> collateral_deposited
collateral_down -> collateral_withdrawn
debt_up -> debt_issued
debt_down -> debt_repaid
(@ursa9r add - relay from @Orion9R):
- We should return a
current_loan_cr
on the pools response (needed for UIs)
Edited by Son of Odin