User can manage debt size using 2 methods in ICreditFacade:
function increaseDebt(uint256 amount) external;
Increases debt by tranferring funds from the pool. To account increased debt, it updates cumulativeIndexAtOpen parameter.
|amount||Amount to increase borrowed amount|
Decreases debt by paying funds back to pool. The payment also include interest rate accrued at the moment and fees for whole debt. So, you would be charged for:
amount + interestAccrued + fees.
function decreaseDebt(uint256 amount) external;
|amount||Amount to descrease borrowed amount|
/// NEED TO ADD COMPUTATION CODE HERE