Fraction ProtocolinterfacesskeletonInterfacesbuybackPhaseInterfaces

IBuybackAmountFacet

Defines the amount of the Buyback Phase.

The buyback phase is the phase (a time-window) that the issuer is expected to buyback (pay a loan)

BuybackAmountConfigured

event BuybackAmountConfigured(uint256 campaignId, uint256 interestPercentage)

BuybackAmountHandled

event BuybackAmountHandled(uint256 campaignId, uint256 packetsBuybackAmount)

initBuybackAmountFacet

function initBuybackAmountFacet(bytes iniBuybackAmounttData) external

setAndCheckBuybackAmounts

function setAndCheckBuybackAmounts(bytes postFractionsBuybackAmountsData) external

handleBuybackAmounts

function handleBuybackAmounts(uint256 campaignId, uint256 packetsBuybackAmount) external

getPacketsBuybackAmount

function getPacketsBuybackAmount(uint256 campaignId) external view returns (uint256)

Function that returns the packets that should be paid to buyback.

This function is only called by Lending Oracle when the setPriceLimitsOnPostReceive hook is invoked.

Parameters

NameTypeDescription
campaignIduint256The ID of the targeted campaign.

On this page