OperableDeposit
Inherits: Farm
Author: Sperax Foundation.
This contract helps in creating farms with increase/decrease deposit functionality.
Functions
_updateSubscriptionForIncrease
Update subscription data of a deposit for increase in liquidity.
Parameters
Name
Type
Description
_depositId
uint256
Unique deposit id for the deposit.
_amount
uint256
_amount to be increased.
_updateSubscriptionForDecrease
Update subscription data of a deposit after decrease in liquidity.
Parameters
Name
Type
Description
_depositId
uint256
Unique deposit id for the deposit
_amount
uint256
_amount to be decreased.
_increaseDeposit
Common logic for increasing a deposit.
Parameters
Name
Type
Description
_depositId
uint256
Unique deposit id for the deposit
_amount
uint256
_amount to be decreased.
_decreaseDeposit
Common logic for decreasing a deposit.
Parameters
Name
Type
Description
_depositId
uint256
Unique deposit id for the deposit
_amount
uint256
_amount to be decreased.