Building on BentoBox
With Core Dev: Sarang Parikh
Agenda
Sablier Finance has $1B+ locked
$100B+ stored in Gnosis Safe
Approval Hell
Permit Function with signature approvals
What is BentoBox?
BentoBox is a token vault that can support any dapp. Users can interact with these many Dapps in a gas-efficient manner, in addition to leveraging the benefits of using a mutual token vault to improve capital efficiency.
All the value locked in the Bentobox will be used via strategies in different protocols, to generate yield for bentobox users
Developing Dapps without BentoBox
Developing Dapps with BentoBox
Developing Dapps with BentoBox
Bentobox
Your Dapp
Some other Dapp
Features of Bentobox
Strategies
Tokens deposited on bentobox automatically earns yield through strategies, such as Aave, Compound, Yearn, xSushi e.t.c
Gas Optimization
Users only require single usage of approval across all the bento apps, transfers inside bentobox is also highly gas optimized.
Flash Loans
Bentobox supports Flash loan out of the box, users can take flash loan from the wide range of deposited tokens, the fees from the flash loan would be distributed among bentobox users
Batching Support
Interact with multiple features and protocols on bentobox in a single transaction for peak efficiency
Features of Bentobox
Strategies
Tokens deposited on bentobox automatically earns yield through strategies, such as Aave, Compound, Yearn, xSushi e.t.c
Gas Optimization
Users only require single usage of approval across all the bento apps, transfers inside bentobox is also highly gas optimized.
Flash Loans
Bentobox supports Flash loan out of the box, users can take flash loan from the wide range of deposited tokens, the fees from the flash loan would be distributed among bentobox users
Batching Support
Interact with multiple features and protocols on bentobox in a single transaction for peak efficiency
BentoBox
==
Dapp App Store
+
Saving Accounts
+
Smart Contract Infra Layer
Key Points
Dapps not on BentoBox
Users and Developers
Dapps built upon BentoBox ~ earning extra yield
Projects on Bentobox
Sushi Limit Orders
Abracadabra Finance
Isolated Lending and Borrowing (Kashi)
Bentobox TVL: $2B+
Trident
Furo Stream and Vesting
Projects on Bentobox

Amounts v/s Shares
Convert Amount to Shares:
Shares = (supplied amount * total shares) / total amount
Convert Shares to Amount:
Amount = (supplied shares * total amount) / total shares
Let’s take an example:
A -> 1000 USDC
Share of A: 1000
Bentobox Balance: 1000 USDC
Amount of A: 1000 USDC
From a strategy bentobox gains 200 USDC
Share of A: 1000
Bentobox Balance: 1000 + 200 = 1200 USDC
Amount of A: (1000 * 1200) / 1000 = 1200 USDC
B -> 1000 USDC
Share of A: 1000
Share of B: (1000 * 1000) / 1200 = 833.333…
Bentobox Balance: 1200 + 1000 = 2200 USDC
Amount of B: (833.333... * 2200) / 1833.333… = 1000 USDC
From a strategy bentobox gains 200 USDC
Share of A: 1000
Share of B: 833.333…
Bentobox Balance: 2200 + 200 = 2400 USDC
Amount of A: (1000 * 2400) / 1833.333… = 1309 USDC
Amount of B: (833.333… * 2400) / 1833.333… = 1091 USDC
Amount of A + Amount of B (1309 + 1091) = Bentobox Balance (2400)
Let’s take an example:
A -> 1000 USDC
Share of A: 1000
Bentobox Balance: 1000 USDC
Amount of A: 1000 USDC
From a strategy bentobox gains 200 USDC
Share of A: 1000
Bentobox Balance: 1000 + 200 = 1200 USDC
Amount of A: (1000 * 1200) / 1000 = 1200 USDC
B -> 1000 USDC
Share of A: 1000
Share of B: (1000 * 1000) / 1200 = 833.333…
Bentobox Balance: 1200 + 1000 = 2200 USDC
Amount of B: (833.333... * 2200) / 1833.333… = 1000 USDC
From a strategy bentobox gains 200 USDC
Share of A: 1000
Share of B: 833.333…
Bentobox Balance: 2200 + 200 = 2400 USDC
Amount of A: (1000 * 2400) / 1833.333… = 1309 USDC
Amount of B: (833.333… * 2400) / 1833.333… = 1091 USDC
Amount of A + Amount of B (1309 + 1091) = Bentobox Balance (2400)
Steps to integrate your app into Bentobox
Steps to integrate your app into Bentobox
2. Approve your BentoApp to access user’s funds using their signature. This can also be used by users to revoke access to your BentoApp.
Steps to integrate your app into Bentobox
3. Deposit users funds to BentoBox. Make sure that the user has already approved BentoBox for the particular token and the amount. Once, tokens are deposited it’ll start earning yield from BentoBox strategies.
Steps to integrate your app into Bentobox
4. Transfer allow the transfer of balance between users <> dapp or dapp <> dapp inside bentobox.
Steps to integrate your app into Bentobox
5. Use withdraw, to take token out of BentoBox and use it somewhere else. Once, tokens are withdrawn it’ll not earn yield from strategies.
Risks
Currently, there have been strategies for Aave and xSushi.
Strategies
Steps for Strategies
Permissionless Bentobox
Yield Box
These are just sample ideas, but you can build whatever dapp you want on top of Bentobox
Free Ideas for everyone
Thank You!
You can reach me via the
Twitter - @sarangparikh22
Any dapp build on bentobox is eligible for the prizes. Make sure you participate in our bounty.
Any dapp built on bentobox at this hackathon, would be considered for a grant or incubation from Sushi.
You would also get featured on sushiswap website, if you are going to launch your protocol on bentobox (Additional marketing boost)
Prizes
Thank You!
You can reach me via the sushi-support channel in the hackathon discord
Twitter - @sarangparikh22