|
| 1 | +# Torch |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +Torch is a protocol that amplifies sUSDe yields through intelligent leverage strategies (recursive borrowing strategy), turning the base 29% APY into up to 81% APY. Torch currently has 1 sUSDe vault deployed on eth forknet. Built specifically for the Ethena ecosystem and sUSDe holders, Torch represents the next evolution in yield optimization for Internet Money. |
| 6 | + |
| 7 | + |
| 8 | +## 🏆 Hackathon Tracks inegration |
| 9 | + |
| 10 | +1. **Most Innovative Use of sUSDe Rewards** |
| 11 | + - The project is eligible for this track as it increases the sUSDe holders apy from 29 % to 81 % using recursive borrowing strategy. |
| 12 | + |
| 13 | + |
| 14 | +2. **Best Overall Application** |
| 15 | + - Novel use of USDe in DeFi |
| 16 | + - Production-ready architecture |
| 17 | + - Clear value proposition |
| 18 | + |
| 19 | +Here is the sUSDe integration (below integration shows that a sUSDe vault is built that increases sUSDe position APY) |
| 20 | + |
| 21 | + |
| 22 | +## Dapp Deployment link |
| 23 | +https://torch-dapp.vercel.app/ |
| 24 | + |
| 25 | +## Vault Strategy |
| 26 | +This vault implements a recursive borrowing strategy to amplify your sUSDe yields through Aave. Here is how it works: |
| 27 | +1. Your sUSDe is supplied to Aave as collateral |
| 28 | +2. We borrow WETH against your sUSDe position (up to the optimal LTV) |
| 29 | +3. The borrowed WETH is swapped back to sUSDe |
| 30 | +4. The new sUSDe is re-supplied to Aave |
| 31 | +5. Steps 2-4 are repeated until reaching target leverage |
| 32 | + |
| 33 | +## Vault APY calculation |
| 34 | + |
| 35 | +## Understanding Leverage from LTV |
| 36 | +``` |
| 37 | +LTV (Loan-to-Value) = 72% |
| 38 | +``` |
| 39 | +This means: |
| 40 | +- For every 100 sUSDe deposited |
| 41 | +- You can borrow up to 72 USD worth of assets |
| 42 | +- In our case, we borrow WETH |
| 43 | + |
| 44 | +### 2. Maximum Leverage Calculation |
| 45 | + |
| 46 | +Where: |
| 47 | +- LTV (Loan-to-Value) = 72% for sUSDe on Aave V3 |
| 48 | + |
| 49 | +## APY Amplification |
| 50 | + |
| 51 | +### 1. Base Yield Components |
| 52 | +``` |
| 53 | +Base sUSDe APY = 29% |
| 54 | +WETH Borrow Cost on Aave = 2.69% |
| 55 | +``` |
| 56 | + |
| 57 | +### 2. Leveraged Yield Calculation |
| 58 | +``` |
| 59 | +For 3x Leverage: |
| 60 | +``` |
| 61 | + |
| 62 | + |
| 63 | +``` |
| 64 | +Components: |
| 65 | +- Base sUSDe APY: 29% |
| 66 | +- Target Leverage: 3x |
| 67 | +- WETH Borrow APY: 2.69% |
| 68 | +``` |
| 69 | +## Demo |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | +## Contract Functionality Explanation |
| 75 | + |
| 76 | + |
| 77 | +### `deposit` |
| 78 | + |
| 79 | +Allows users to deposit ETH into the vault. The ETH is wrapped as WETH, swapped to the vault's asset using Uniswap V3, and converted to vault shares. The shares are then minted and transferred to the receiver address. |
| 80 | + |
| 81 | +### `withdraw` |
| 82 | + |
| 83 | +Allows users to withdraw ETH by burning their vault shares. The function converts the shares back to the asset, swaps the asset to ETH using Uniswap V3, and transfers the ETH to the receiver address. |
| 84 | + |
| 85 | +### `rebalance` |
| 86 | + |
| 87 | +Rebalances the vault by supplying assets to Aave and borrowing additional assets. This function handles token swaps and ensures the vault's balance is adjusted according to the new strategy. |
| 88 | + |
| 89 | +### `executeOperation` |
| 90 | + |
| 91 | +Handles flash loan operations. It decodes the action type and parameters, performs the corresponding financial operation (rebalance, Withdraw from aave), and repays the flash loan with interest. |
| 92 | + |
| 93 | +### `callVaultAction` |
| 94 | + |
| 95 | +Triggers a flash loan from Aave and executes a specified vault action based on the provided parameters. This function is only callable by the governance address. |
0 commit comments