FixedTermLoanFeeManager
\
Constructor
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
Functions
delegateOriginationFee
delegateOriginationFee
Gets the delegate origination fee for the given loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
delegateRefinanceServiceFee
delegateRefinanceServiceFee
Gets the delegate service fee rate for the given loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
delegateServiceFee
delegateServiceFee
Gets the delegate service fee rate for the given loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
getDelegateServiceFeesForPeriod
getDelegateServiceFeesForPeriod
Gets the delegate service fee for the given loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The time, in seconds, to get the proportional fee for |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of delegate service fee to be paid. |
\
getOriginationFees
getOriginationFees
Gets the sum of all origination fees for the given loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The amount of principal requested in the loan. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of origination fees to be paid. |
\
getPlatformOriginationFee
getPlatformOriginationFee
Gets the platform origination fee value for the given loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The amount of principal requested in the loan. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of platform origination fee to be paid. |
\
getPlatformServiceFeeForPeriod
getPlatformServiceFeeForPeriod
Gets the delegate service fee for the given loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The amount of principal requested in the loan. |
2 |
|
|
| The time, in seconds, to get the proportional fee for |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of platform service fee to be paid. |
\
getServiceFeeBreakdown
getServiceFeeBreakdown
Gets the service fees for the given interval.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The number of payments being paid. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of delegate service fee to be paid. |
1 |
|
|
| The amount of delegate refinance fee to be paid. |
2 |
|
|
| The amount of platform service fee to be paid. |
3 |
|
|
| The amount of platform refinance fee to be paid. |
\
getServiceFees
getServiceFees
Gets the service fees for the given interval.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The number of payments being paid. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of platform service fee to be paid. |
\
getServiceFeesForPeriod
getServiceFeesForPeriod
Gets the service fees for the given interval.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The time, in seconds, to get the proportional fee for |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of platform service fee to be paid. |
\
globals
globals
Gets the global contract address.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
payOriginationFees
payOriginationFees
Called during `fundLoan`, performs fee payments to poolDelegate and treasury.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address asset in which fees were paid. |
1 |
|
|
| The total amount of principal requested, which will be used to calculate fees. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The total amount of fees paid. |
\
payServiceFees
payServiceFees
Called during `makePayment`, performs fee payments to the pool delegate and treasury.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address asset in which fees were paid. |
1 |
|
|
| The number of payments for which service fees will be paid. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
platformRefinanceServiceFee
platformRefinanceServiceFee
Gets the platform fee rate for the given loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
platformServiceFee
platformServiceFee
Gets the platform fee rate for the given loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
updateDelegateFeeTerms
updateDelegateFeeTerms
Called during loan creation or refinance, sets the fee terms.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of delegate origination fee to be paid. |
1 |
|
|
| The amount of delegate service fee to be paid. |
\
updatePlatformServiceFee
updatePlatformServiceFee
Function called by loans to update the saved platform service fee rate.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
|
\
updateRefinanceServiceFees
updateRefinanceServiceFees
Called during loan refinance to save the partial service fees accrued.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of principal pre-refinance requested. |
1 |
|
|
| The amount of time since last payment due date. |
\
Events
FeeTermsUpdated
FeeTermsUpdated
New fee terms have been set.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The new value for delegate origination fee. |
2 |
|
|
| The new value for delegate service fee. |
\
OriginationFeesPaid
OriginationFeesPaid
A fee payment was made.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The amount of delegate origination fee paid. |
2 |
|
|
| The amount of platform origination fee paid. |
\
PartialRefinanceServiceFeesUpdated
PartialRefinanceServiceFeesUpdated
New fee terms have been set.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The value for the platform service fee. |
2 |
|
|
| The value for the delegate service fee. |
\
PlatformServiceFeeUpdated
PlatformServiceFeeUpdated
New fee terms have been set.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The new value for the platform service fee. |
\
ServiceFeesPaid
ServiceFeesPaid
A fee payment was made.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan contract. |
1 |
|
|
| The amount of delegate service fee paid. |
2 |
|
|
| The amount of partial delegate service fee from refinance paid. |
3 |
|
|
| The amount of platform service fee paid. |
4 |
|
|
| The amount of partial platform service fee from refinance paid. |
\
Last updated