BentoBox
Sushi's instance of the bentoBox, owned by the Sushi Multisig.
BentoBox
The BentoBox is a vault for tokens. The stored tokens can be flashloaned or used in strategies - the yield from this will go to the token depositors.
You can find the full contract here.
Warning: Rebasing tokens are NOT supported and WILL cause a loss of funds!
Please do not send funds directly to either BentoBox or Degenbox as they will be lost! Use the "Deposit" function instead!
Functions
_tokenBalanceOf
Internal function that returns the balance of token
this contract holds, plus the total amount this contract thinks the strategy holds.
Parameters
toShare
Helper function to represent an amount of token in shares.
Parameters
toAmount
Helper function to represent shares back into token amount.
Parameters
deposit
Deposit an amount of token represented in either amount or share.
Parameters
Returns
withdraw
Withdraws an amount of token from a user account.
Parameters
Returns
transfer
Transfer shares from a user account to another one.
Parameters
transferMultiple
Transfer shares from a user account to multiple other ones.
Parameters
flashLoan
Provides flash loan capabilities.
Parameters
batchFlashLoan
Support for batched flashloans; useful to request multiple different tokens in a single transaction.
Parameters
setStrategyTargetPercentage
Sets the target percentage of the strategy for token
. Can only be called by the owner of the contract.
Parameters
setStrategy
Sets the contract address of a new strategy that conforms to IStrategy
for token
(must be called twice with the same arguments). Can only be called by the owner of the contract.
Parameters
harvest
Executes the strategy of token
- ie, the actual process of yield farming. Optionally does housekeeping if balance
is true.
Parameters
Last updated