LTV Protect
LTV Protect Blueprint
LTVProtectBlueprint.sol
groups all actions related to creating claims and repaying them.
Functions
CreateClaim
This function creates a claim to add more collateral to a protected loan
function createClaim(
address user_,
uint256 loanId_,
string memory lenderName_,
string memory pointer_,
uint256 trancheAmount_
)
Process:
Validates user address and loan ID.
Forwards the call to
CreateClaim
actionReturns execution result
RepayClaim(TBM)
This function repays a created claim
function repayClaim(address user_, uint256 loanId_, address paymentToken_, string memory pointer_)
Process:
Forwards the call to RepayClaim action
Returns execution result
Last updated