Fraction ProtocolinternalFacetsbuybackPhaseFacetsbuybackAmountFacetsfixedInterest
FixedInterestBuybackAmountFacet
FixedInterestBuybackAmountFacet
UnauthorizedInitialization
Thrown when trying to initialize from non admin account.
UnauthorizedUpdate
Thrown when trying to update buyback amount from non admin account.
BuybackAmountInitialized
BuybackAmountPercentageUpdated
initBuybackAmountFacet
setAndCheckBuybackAmounts
handleBuybackAmounts
getPacketsBuybackAmount
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
| Name | Type | Description |
|---|---|---|
| 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 |
|---|---|---|
| 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 |
|---|---|---|
| maxInterestPercentage | uint256 | The maximum interest percentage. |

