Pricing
Inherits: Validation
State Variables
SP
Starport public immutable SP;
Functions
constructor
constructor(Starport SP_);
getPaymentConsideration
computes the payment details for a loan
function getPaymentConsideration(Starport.Loan calldata loan)
public
view
virtual
returns (SpentItem[] memory, SpentItem[] memory);
Parameters
Name | Type | Description |
---|---|---|
loan | Starport.Loan | The loan to compute the payment details for |
getRefinanceConsideration
computes the refinance details for a loan
function getRefinanceConsideration(Starport.Loan calldata loan, bytes calldata newPricingData, address fulfiller)
external
view
virtual
returns (SpentItem[] memory, SpentItem[] memory, AdditionalTransfer[] memory);
Parameters
Name | Type | Description |
---|---|---|
loan | Starport.Loan | The loan to compute the payment details for |
newPricingData | bytes | The new pricing data being offered |
fulfiller | address | The address of the fulfiller |
Errors
InvalidRefinance
error InvalidRefinance();