Strategies
Strategies take an investment from the DegenBox and manage a yield generating operation. The DegenBox owner sets a strategy per token, the owner also determines how much of the token balance is going to be in the strategy (the strategy "target percentage") and how much remains in the DegenBox to enable withdrawals.
Because the funds should be able to be sent back to the DegenBox instantly, the harvest function, which can also rebalance to bring the invested amount to the defined target percentage, can be called by anyone.
Constructor
Constructor
nonpayable
nonpayable
Parameters
Name | Type |
---|---|
_strategyToken |
|
_bentoBox |
|
Functions
afterExitnonpayable
afterExitnonpayable
Parameters
Name | Type |
---|---|
to |
|
value |
|
data |
|
Return values
Name | Type |
---|---|
success |
|
bentoBoxview
bentoBoxview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
claimOwnershipnonpayable
claimOwnershipnonpayable
Parameters
No parameters for this function.
Return values
No return values for this function.
exitnonpayable
exitnonpayable
Parameters
Name | Type |
---|---|
balance |
|
Return values
Name | Type |
---|---|
amountAdded |
|
exitedview
exitedview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
feeCollectorview
feeCollectorview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
feePercentview
feePercentview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
harvestnonpayable
harvestnonpayable
Parameters
Name | Type |
---|---|
balance |
|
sender |
|
Return values
Name | Type |
---|---|
/ |
|
maxBentoBoxBalanceview
maxBentoBoxBalanceview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
ownerview
ownerview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
pendingOwnerview
pendingOwnerview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
poolview
poolview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
resetAllowancenonpayable
resetAllowancenonpayable
Parameters
No parameters for this function.
Return values
No return values for this function.
rewardTokenEnabledview
rewardTokenEnabledview
Parameters
Name | Type |
---|---|
/ |
|
Return values
Name | Type |
---|---|
/ |
|
safeHarvestnonpayable
safeHarvestnonpayable
Parameters
Name | Type |
---|---|
maxBalance |
|
rebalance |
|
maxChangeAmount |
|
harvestRewards |
|
Return values
No return values for this function.
setFeeParametersnonpayable
setFeeParametersnonpayable
Parameters
Name | Type |
---|---|
_feeCollector |
|
_feePercent |
|
Return values
No return values for this function.
setRewardTokenEnablednonpayable
setRewardTokenEnablednonpayable
Parameters
Name | Type |
---|---|
token |
|
enabled |
|
Return values
No return values for this function.
setStrategyExecutornonpayable
setStrategyExecutornonpayable
Parameters
Name | Type |
---|---|
executor |
|
value |
|
Return values
No return values for this function.
setSwappernonpayable
setSwappernonpayable
Parameters
Name | Type |
---|---|
_swapper |
|
Return values
No return values for this function.
skimnonpayable
skimnonpayable
Parameters
Name | Type |
---|---|
amount |
|
Return values
No return values for this function.
strategyExecutorsview
strategyExecutorsview
Parameters
Name | Type |
---|---|
/ |
|
Return values
Name | Type |
---|---|
/ |
|
strategyTokenview
strategyTokenview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
swapRewardsnonpayable
swapRewardsnonpayable
Parameters
Name | Type |
---|---|
amountOutMin |
|
rewardToken |
|
data |
|
Return values
Name | Type |
---|---|
amountOut |
|
swapperview
swapperview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
tagview
tagview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
transferOwnershipnonpayable
transferOwnershipnonpayable
Parameters
Name | Type |
---|---|
newOwner |
|
direct |
|
renounce |
|
Return values
No return values for this function.
withdrawnonpayable
withdrawnonpayable
Parameters
Name | Type |
---|---|
amount |
|
Return values
Name | Type |
---|---|
actualAmount |
|
Events (for EVM logging)
FeeChanged
FeeChanged
Parameters
Name | Type | Indexed |
---|---|---|
previousFee |
|
|
newFee |
|
|
previousFeeCollector |
|
|
newFeeCollector |
|
|
LogSetStrategyExecutor
LogSetStrategyExecutor
Parameters
Name | Type | Indexed |
---|---|---|
executor |
|
|
allowed |
|
|
OwnershipTransferred
OwnershipTransferred
Parameters
Name | Type | Indexed |
---|---|---|
previousOwner |
|
|
newOwner |
|
|
RewardSwapped
RewardSwapped
Parameters
Name | Type | Indexed |
---|---|---|
token |
|
|
total |
|
|
amountOut |
|
|
feeAmount |
|
|
RewardTokenUpdated
RewardTokenUpdated
Parameters
Name | Type | Indexed |
---|---|---|
token |
|
|
enabled |
|
|
SwapperChanged
SwapperChanged
Parameters
Name | Type | Indexed |
---|---|---|
oldSwapper |
|
|
newSwapper |
|
|
Last updated