FixedInterestBuybackAmountFacetStorage
FixedInterestBuybackAmountFacetStorage
AlreadyInitialized
Thrown when attempting to re-initialize.
MinPercentageGreaterThanMax
Thrown when min percentage is greater than max.
InterestPercentageNotWithinLimits
Thrown when interest percentage is not within the supported limits.
WrongBuybackAmount
Thrown when buybackAmount is not equal to required one.
STORAGE_SLOT
================================================== STORAGE =================================================
Unique identifier for the storage slot where the Layout struct is stored. Derived from the ERC7201 formula. STORAGE_SLOT: 0xc7af75288b482e955cf63ed727aba6946f12b51f055b5042bf806d79b1d92c00
Layout
layout
Retrieves a reference to the Layout struct stored at a specified storage slot
initBuybackAmountFacet
setAndCheckBuybackAmounts
handleBuybackAmounts
getPacketsBuybackAmount
This function is only called by Lending Oracle when the setPriceLimitsOnPostReceive
hook is invoked.
Parameters
Name | Type | Description |
---|---|---|
l | struct FixedInterestBuybackAmountFacetStorage.Layout | A reference to the Layout struct in storage. |
campaignId | uint256 | The ID of the targeted campaign. |
setMinInterestPercentage
Function that sets the minimum interest percentage.
This function is only callable by the admin.
Parameters
Name | Type | Description |
---|---|---|
l | struct FixedInterestBuybackAmountFacetStorage.Layout | |
minInterestPercentage | uint256 | The minimum interest percentage. |
setMaxInterestPercentage
Function that sets the maximum interest percentage.
This function is only callable by the admin.
Parameters
Name | Type | Description |
---|---|---|
l | struct FixedInterestBuybackAmountFacetStorage.Layout | |
maxInterestPercentage | uint256 | The maximum interest percentage. |