SimpleInterestPricing

Git Source

Inherits: BasePricing

Functions

constructor

constructor(Starport SP_) Pricing(SP_);

calculateInterest

function calculateInterest(uint256 delta_t, uint256 amount, uint256 rate, uint256 decimals)
    public
    pure
    override
    returns (uint256);

validate

function validate(Starport.Loan calldata loan) external pure override returns (bytes4);

getRefinanceConsideration

function getRefinanceConsideration(Starport.Loan calldata loan, bytes memory newPricingData, address)
    external
    view
    virtual
    override
    returns (
        SpentItem[] memory repayConsideration,
        SpentItem[] memory carryConsideration,
        AdditionalTransfer[] memory additionalConsideration
    );