generated from refcell/femplate
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continuation of #1021 - clear TP naming and improved code descriptions (
#1027) * Continuation of #1021 - better naming and improved code descriptions - change Loan.thresholdPrice and Liquidation.thresholdPrice to unadjustedThresholdPrice naming in order to reflect Collateral factor not applied to these values - reflect in var names where max unadjusted threshold price is used (Move/Remove param struct) - natspec update - rename MAX_NP_TP_RATIO to MAX_BOND_FACTOR * clear Tp naming - t0DebtToCollateral : ( t0Debt / collateral ) - debtToCollateral : ( debt / collateral ) - t0ThresholdPrice : ( t0Debt / collateral ) * collateralization factor - thresholdPrice : ( debt / collateral ) * collateralization factor * Fix HeapTest * Update LoansInfo and LoanInfo methods to return maxT0DebtToCollateral and t0DebtToCollateral * Fix unit tests * Update assertLoans in tests and fix htp in BaseHandler * Update loansInfo and threshold Price in Loans library * Rename thresholdPrice to debtToCollateral in assertAuction in tests * updated zerothresholdprice error to zerodebttocollateral * removed unused _htp import in pool.sol * updated invariants to include ZeroDebtToCollateral * Use SafeCast in Loans library --------- Co-authored-by: prateek105 <[email protected]> Co-authored-by: Ian Harvey <[email protected]>
- Loading branch information
1 parent
19b0c3f
commit 1736ccf
Showing
40 changed files
with
600 additions
and
578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.