Getting started with BentoBox
TL:DR
- Sushi base layer.
- All future Sushi apps will be build on top of it.
- App built on top benefits from gas cost reduction, extra yield for unused assets, simplified token approval and moreβ¦
Table of content
- What is BentoBox ?
- What are the benefits of BentoBox ?
- How deposit and withdraw from BentoBox ?
What is BentoBox ?
BentoBox (sometimes referred to as Bento) is a smart contract acting as the central vault of the whole sushi ecosystem.
Much like the banking system is the base-layer for financial operations in traditional finance, the BentoBox is the base-layer for all the future financial instruments Sushi intends to offer.
To make it more visual, You can see the BentoBox like an OS powering your phone and sushi products like trident, Limit Order or kashi as applications.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
What are the benefits of BentoBox ?
You may wonder why do we need BentoBox as base layer for sushi apps, below is a list of the principal components and advantages that BentoBox offers to app built on top :
For users :
- Funds in the BentoBox can be flash loaned against a small fee, generating extra yield for assets sitting inside. (learn more about flash loans)
- A part of the funds in the BentoBox are used by contracts called "strategies", this contracts generate extra yield by sending assets to low risk protocol like Compound or the Sushibar.
- Reduces the gas fees when moving funds between sushi apps: You can swap on trident or lend on Kashi at a much cheaper gas cost than concurrent protocols.
For developpers :
- Track the userβs deposits via artificial balance.
- Optimized deposit, withdraw and skim functions that auto-convert ETH to WETH.
- Low gas (and fixed gas) transfers of tokens within the BentoBox
- Simplified approval of tokens (no need to reapprove for each protocol).
- Minimal proxy contract factory build in. No need to roll your own.
More infos for developpers here
How to deposit and withdraw from BentoBox ?
If you are using a protocol built on BentoBox like Kashi or Trident, no need to deposit your assets inside, they will do it for you.
If you have some assets in your wallet and want to generate a small yield or to use Limit Order, depositing them in the BentoBox can be a good solution.
But take into account that BentoBox APR will always be less than a dedicated yield aggregator, its purpose is to generate extra yield for apps built on top.
To deposit inside BentoBox :
If you are new to BentoBox, it is recommended to try it firston a cheap chain. In this article, we will use BentoBox on Polygon.
Step 1 Go to the BentoBox user interface.
Step 2 Find the asset you want to deposit in the list of available assets and click on it.
In this example we will deposit some SUSHI.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Step 3 Enter the amount, click "Approve" if its your first time your asset interact with the BentoBox (Learn more about approve), validate the transaction in your wallet and wait for it to be mined.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Step 4 Then click on "Deposit", validate the transaction in your wallet and wait for it to be mined.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Congrats ! your assets are now in the BentoBox !
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
To withdraw from BentoBox :
Step 1 Go to the BentoBox user interface.
Step 2 Find the asset you want to remove in the list of available assets and click on it.
In this example we will wihtdraw some SUSHI.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Step 3 Then click on "Withdraw", validate the transaction in your wallet and wait for it to be mined.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Congrats ! your assets are now in your wallet !
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More β