Assumption: There is a stETH<->eBTC pair in Balancer V2 as on-chain liquidity and FlippenZap user will grant it approval as PositionManager
support enterLongEth by creating leveraged CDP (leverage in a safe range of [2X, 5X]) or plain (no leverage) CDP Zap-in with given initial principal of stETH
support enterLongBtc by simply swap initial principal of stETH to eBTC using above liquidity
for https://github.com/Badger-Finance/ebtc/issues/709
Assumption: There is a
stETH<->eBTC
pair in Balancer V2 as on-chain liquidity andFlippenZap
user will grant it approval asPositionManager
enterLongEth
by creating leveraged CDP (leverage in a safe range of[2X, 5X]
) or plain (no leverage) CDP Zap-in with given initial principal ofstETH
enterLongBtc
by simply swap initial principal ofstETH
to eBTC using above liquidityMockBalancer
for test purposeenterLongEth
Zap happy pathenterLongEth
ZapsenterLongEth
Zaps