Route between different zaps and functionality.
- One-click Leverage: use flash loans via leverage macro to lever loop in one action
- Flippening: a wrapper on leverage where you sell the final eBTC for more stETH (lever long ETH)
- Native ETH: Deposit from native ETH and auto-wrap into stETH
- ETH Variants deposits: come from WETH and wstETH as well for convenience
- User starts from ETH, stETH, wstETH, WETH
- Use applies leverage or not
- User swaps their final eBTC debt for stETH or not
Install Foundry and complete yarn install in dependency eBTC repo.
$ forge install
$ cd lib/ebtc
$ yarn
$ cd ../../$ forge build$ forge test$ forge fmt$ forge snapshot### Invariants
medusa fuzz --config medusa-no-leverage.json
medusa fuzz --config medusa-leverage.json