FixedTermLoanInitializer
\
Functions
decodeArguments
decodeArguments
Decodes the initialization arguments for a MapleLoan.
Parameters:
0
encodedArguments_
bytes
bytes
Return Values:
0
borrower_
address
address
The address of the borrower.
1
lender_
address
address
The address of the lender.
2
feeManager_
address
address
The address of the entity responsible for calculating fees.
3
assets_
address[2]
address[2]
Array of asset addresses. [0]: collateralAsset, [1]: fundsAsset
4
termDetails_
uint256[3]
uint256[3]
Array of loan parameters: [0]: gracePeriod, [1]: paymentInterval, [2]: payments
5
amounts_
uint256[3]
uint256[3]
Requested amounts: [0]: collateralRequired, [1]: principalRequested, [2]: endingPrincipal
6
rates_
uint256[4]
uint256[4]
Rates parameters: [0]: interestRate, [1]: closingFeeRate, [2]: lateFeeRate, [3]: lateInterestPremiumRate,
7
fees_
uint256[2]
uint256[2]
Array of fees: [0]: delegateOriginationFee, [1]: delegateServiceFee
\
encodeArguments
encodeArguments
Encodes the initialization arguments for a MapleLoan.
Parameters:
0
borrower_
address
address
The address of the borrower.
1
lender_
address
address
The address of the lender.
2
feeManager_
address
address
The address of the entity responsible for calculating fees.
3
assets_
address[2]
address[2]
Array of asset addresses. [0]: collateralAsset, [1]: fundsAsset
4
termDetails_
uint256[3]
uint256[3]
Array of loan parameters: [0]: gracePeriod, [1]: paymentInterval, [2]: payments
5
amounts_
uint256[3]
uint256[3]
Requested amounts: [0]: collateralRequired, [1]: principalRequested, [2]: endingPrincipal
6
rates_
uint256[4]
uint256[4]
Rates parameters: [0]: interestRate, [1]: closingFeeRate, [2]: lateFeeRate, [3]: lateInterestPremiumRate,
7
fees_
uint256[2]
uint256[2]
Array of fees: [0]: delegateOriginationFee, [1]: delegateServiceFee
Return Values:
0
encodedArguments_
bytes
bytes
\
Events
BorrowerAccepted
BorrowerAccepted
Parameters:
0
borrower_
address
address
\
CollateralPosted
CollateralPosted
Parameters:
0
amount_
uint256
uint256
\
CollateralRemoved
CollateralRemoved
Parameters:
0
amount_
uint256
uint256
1
destination_
address
address
\
Funded
Funded
Parameters:
0
lender_
address
address
1
amount_
uint256
uint256
2
nextPaymentDueDate_
uint256
uint256
\
FundsClaimed
FundsClaimed
Parameters:
0
amount_
uint256
uint256
1
destination_
address
address
\
FundsDrawnDown
FundsDrawnDown
Parameters:
0
amount_
uint256
uint256
1
destination_
address
address
\
FundsReturned
FundsReturned
Parameters:
0
amount_
uint256
uint256
\
ImpairmentRemoved
ImpairmentRemoved
Parameters:
0
nextPaymentDueDate_
uint256
uint256
\
Initialized
Initialized
Parameters:
0
borrower_
address
address
1
lender_
address
address
2
feeManager_
address
address
3
assets_
address[2]
address[2]
4
termDetails_
uint256[3]
uint256[3]
5
amounts_
uint256[3]
uint256[3]
6
rates_
uint256[4]
uint256[4]
7
fees_
uint256[2]
uint256[2]
\
LenderAccepted
LenderAccepted
Parameters:
0
lender_
address
address
\
LoanClosed
LoanClosed
Parameters:
0
principalPaid_
uint256
uint256
1
interestPaid_
uint256
uint256
2
feesPaid_
uint256
uint256
\
LoanImpaired
LoanImpaired
Parameters:
0
nextPaymentDueDate_
uint256
uint256
\
NewTermsAccepted
NewTermsAccepted
Parameters:
0
refinanceCommitment_
bytes32
bytes32
1
refinancer_
address
address
2
deadline_
uint256
uint256
3
calls_
bytes[]
bytes[]
\
NewTermsProposed
NewTermsProposed
Parameters:
0
refinanceCommitment_
bytes32
bytes32
1
refinancer_
address
address
2
deadline_
uint256
uint256
3
calls_
bytes[]
bytes[]
\
NewTermsRejected
NewTermsRejected
Parameters:
0
refinanceCommitment_
bytes32
bytes32
1
refinancer_
address
address
2
deadline_
uint256
uint256
3
calls_
bytes[]
bytes[]
\
PaymentMade
PaymentMade
Parameters:
0
principalPaid_
uint256
uint256
1
interestPaid_
uint256
uint256
2
fees_
uint256
uint256
\
PendingBorrowerSet
PendingBorrowerSet
Parameters:
0
pendingBorrower_
address
address
\
PendingLenderSet
PendingLenderSet
Parameters:
0
pendingLender_
address
address
\
Repossessed
Repossessed
Parameters:
0
collateralRepossessed_
uint256
uint256
1
fundsRepossessed_
uint256
uint256
2
destination_
address
address
\
Skimmed
Skimmed
Parameters:
0
token_
address
address
1
amount_
uint256
uint256
2
destination_
address
address
\
Last updated