Pricing

Git Source

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

NameTypeDescription
loanStarport.LoanThe 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

NameTypeDescription
loanStarport.LoanThe loan to compute the payment details for
newPricingDatabytesThe new pricing data being offered
fulfilleraddressThe address of the fulfiller

Errors

InvalidRefinance

error InvalidRefinance();