Create Claim

The claim flow enables the protocol to bring a user's loan back to health.

Transactional Function Sequence

Module
Function

Loan Management Module

startClaim

Loan Management Module

processClaimFee

Loan Management Module

initiateForeclosure

Step 1: Create Claim

function startClaim(address user, uint256 uniqueId, string pointer)

Parameters
Descriptions

user

The users eth address

uniqueId

The unique Id for the users loan

pointer

The lender market pointer

Step 2: processClaimFee

function processClaimFee(address user, uint256 loanId)

Parameters
Descriptions

user

The users eth address

loanId

The users loanId

When creating a claim this above two function will be called one after the other. First you call create claim then process claim fee. These two functions will be called 3 times on the 4th time you will only call create claim and then initiate foreclosure from there please move onto the foreclosure document to continue the foreclosure process.

For forecloseable but not protected users when you start the foreclosure process you will only call the below function from there please move onto the foreclosure document to continue the foreclosure process.

Step 3: initiateForeclosure

function initiateForeclosure(uint256 loanId, uint256 uniqueId, address user, uint256 portfolioId)

Parameters
Descriptions

uniqueId

The unique Id for the users loan

loanId

The users loanId

user

The users eth address

portfolioId

The users portfolioId

End of claim

Last updated