The Ajna protocol is a non-custodial, peer-to-peer, permissionless lending, borrowing and trading system that requires no governance or external price feeds to function.
Reuse _isCollateralized method in repayment. Reusing this code will allow us to more easily change the collateralization requirement / threshold price. Expanded unit tests for PoolHelper._isCollateralized and PoolInfoUtils._collateralization methods.
Description of change
High level
Reuse
_isCollateralized
method in repayment. Reusing this code will allow us to more easily change the collateralization requirement / threshold price. Expanded unit tests forPoolHelper._isCollateralized
andPoolInfoUtils._collateralization
methods.Description of bug or vulnerability and solution
No bug/vulnerability.
Contract size
Contract sizes practically unaffected.
Pre Change
Post Change
Gas usage
There was a slight increase in cost to
repayDebt
.Pre Change
Post Change