DegenBox
The token Vault powering Abracadabra
Last updated
The token Vault powering Abracadabra
Last updated
Degenbox is an authorized fork of BentoBox (as Abracadabra purchased the licence for it). Cauldrons are built on top of both BentoBox and Degenbox, which allow users to reduce transaction fees as well as allow the creation of multiple strategies for the assets held inside.
Please do not send funds directly to either BentoBox or Degenbox as they will be lost! Use the "Deposit" function instead!
Constructor
nonpayable
Parameters
Name | Type | Description |
---|---|---|
DOMAIN_SEPARATOR | view
Parameters
No parameters for this function.
Return values
balanceOf | view
Parameters
Return values
batch | payable
Parameters
Return values
batchFlashLoan | nonpayable
Parameters
Return values
No return values for this function.
claimOwnership | nonpayable
Needs to be called by pendingOwner
to claim ownership.
deploy | payable
Deploys a given master Contract as a clone.
Parameters
Return values
deposit | payable
Parameters
Return values
flashLoan | nonpayable
Parameters
Return values
No return values for this function.
harvest | nonpayable
The actual process of yield farming. Executes the strategy of token
. Optionally does housekeeping if balance
is true.
Parameters
Return values
No return values for this function.
masterContractApproved | view
masterContract to user to approval state, returns True if the user has approved the masterContract.
Parameters
Return values
masterContractOf | view
Mapping from clone contracts to their masterContract.
Parameters
Return values
nonces | view
User nonces for masterContract approvals.
Parameters
Return values
owner | view
Owner of the DegenBox contract. Can perform actions that onlyOwner() can perform, such as strategy updates.
Parameters
No parameters for this function.
Return values
pendingOwner | view
When transferring ownership, the future owner is pending until they claims ownership.
Return values
pendingStrategy | view
Strategy change being submitted to a delay of 3 days, the setStrategy function is called twice, once to declare a strategy change, and another time after STRATEGY_DELAY (3 days). In between those calls, the new strategy is pendingStrategy.
Parameters
Return values
permitToken | nonpayable
Parameters
Return values
No return values for this function.
registerProtocol | nonpayable
Parameters
No parameters for this function.
Return values
No return values for this function.
setMasterContractApproval | nonpayable
Parameters
Return values
No return values for this function.
setStrategy | nonpayable
Sets the contract address of a new strategy that conforms to IStrategy
for token
. Must be called twice with the same arguments. A new strategy becomes pending first and can be activated once STRATEGY_DELAY
is over. In the case of the Degenbox, STRATEGY_DELAY
is 3 days.
Parameters
Return values
No return values for this function.
setStrategyTargetPercentage | nonpayable
Sets the target percentage of the strategy for token
. It corresponds to the percentage of tokens deployed to the Strategy, vs kept in DegenBox.
Parameters
Return values
No return values for this function.
strategy | view
Returns the address of the Strategy mapped to the given ERC20 token.
Parameters
Return values
strategyData | view
Parameters
Return values
toAmount | view
Converts amounts of shares of a token into it's native representation.
Parameters
Return values
toShare | view
Converts amounts of a token in it's native representation into shares.
Parameters
Return values
totals | view
Keeps track of how many tokens are stored by DegenBox as well as how many shares are held by users.
Parameters
Return values
transfer | nonpayable
Transfer shares from a user account to another one.
Parameters
Return values
No return values for this function.
transferMultiple | nonpayable
Transfer shares from a user account to multiple other ones.
Parameters
Return values
No return values for this function.
transferOwnership | nonpayable
Transfers ownership to newOwner
. Either directly or claimable by the new pending owner. Can only be invoked by the current owner
.
Parameters
Return values
No return values for this function.
whitelistMasterContract | nonpayable
Enables or disables a contract for approval without signed message.
Parameters
Return values
No return values for this function.
whitelistedMasterContracts | view
Returns True if a masterContract is whitelisted.
Parameters
Return values
withdraw | nonpayable
Withdraws an amount of token
from a user account.
Parameters
Return values
LogDeploy
Parameters
LogDeposit
Parameters
LogFlashLoan
Parameters
LogRegisterProtocol
Parameters
LogSetMasterContractApproval
Parameters
LogStrategyDivest
Parameters
LogStrategyInvest
Parameters
LogStrategyLoss
Parameters
LogStrategyProfit
Parameters
LogStrategyQueued
Parameters
LogStrategySet
Parameters
LogStrategyTargetPercentage
Parameters
LogTransfer
Parameters
LogWhiteListMasterContract
Parameters
LogWithdraw
Parameters
OwnershipTransferred
Parameters
Name | Type |
---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | |
---|---|---|
Name | Type | |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | |
---|---|---|
Name | Type |
---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | |
---|---|---|
Name | Type | |
---|---|---|
Name | Type | |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|
Name | Type | Indexed |
---|---|---|