Skip to content

Commit

Permalink
update borrowerInfo threshold price references
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike committed Dec 16, 2023
1 parent b34a871 commit 0dcad0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/brownie/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def availableLiquidity(self):
return quoteBalance - reserves;

def borrowerInfo(self, borrower_address):
# returns (debt, collateral, t0NeutralPrice, t0ThresholdPrice)
# returns (debt, collateral, t0NeutralPrice, thresholdPrice)
return self.pool_info_utils.borrowerInfo(self.pool.address, borrower_address)

def bucketInfo(self, index):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,12 @@ abstract contract BaseHandler is Test {
for (uint256 i = 0; i < actors.length; i++) {
printLine("");
printLog("Actor ", i + 1);
(uint256 debt, uint256 pledgedCollateral, uint256 t0NeutralPrice, uint256 t0ThresholdPrice) = _poolInfo.borrowerInfo(address(_pool), actors[i]);
(uint256 debt, uint256 pledgedCollateral, uint256 t0NeutralPrice, uint256 thresholdPrice) = _poolInfo.borrowerInfo(address(_pool), actors[i]);
if (debt != 0 || pledgedCollateral != 0) {
printLog("Debt = ", debt);
printLog("Pledged collateral = ", pledgedCollateral);
printLog("t0 Neutral Price = ", t0NeutralPrice);
printLog("t0 Threshold Price = ", t0ThresholdPrice);
printLog("t0 Threshold Price = ", thresholdPrice);

}
}
Expand Down

0 comments on commit 0dcad0b

Please sign in to comment.