TrenBox
The smart contract vault responsible for maximizing your exposure
The genesis of TrenBox, a central vault smart contract, arises from a sophisticated modification of the discontinued BentoBox from SushiSwap.
TrenBox's flexibility is its hallmark, surpassing the conventional vault architecture. It stands ready to support the integration of new tokens, seamlessly accommodating the likes of Uniswap v4, Pendle, Gamma, and Ribbon. Additionally, TrenBox introduces a sophisticated layer of gas efficiency practices, harnessing technology absent during the nascent stages of BentoBox development.
Flash Loans
In a flash loan, a smart contract transaction involves a lender smart contract lending assets to a borrower smart contract, with the stipulation that the assets must be returned, along with an optional fee, before the transaction concludes.
TrenBox allows flash loans for tokens, with the fees contributing to TREN value accrual. Multiple assets can undergo flash loans simultaneously. While ERC3156 wasn't finalized upon the BentoBox release, TrenBox is fully ERC3156 compliant. Flash loans primarily serve as a means for users to repay loans using collateral.
Batching
The batch function facilitates the grouping of multiple TrenBox function calls into a single transaction.
Shares
When you deposit tokens into the TrenBox, you are issued a certain number of shares, representing your ownership stake in the overall token pool within the TrenBox. As the token amount grows, facilitated by yield farming or strategy-based staking profits, you will receive your proportional share of these increases. Due to limited precision in accounting, there may be minor rounding discrepancies, albeit typically insignificant for most tokens, carrying negligible practical value. TrenBox is intentionally designed to avoid rounding in favor of users, as this could be exploited by savvy hackers. Consequently, if you deposit and immediately withdraw 100 tokens, you may, for example, receive only 99.9999.
Last updated