Loop a position for leverage
Buy a Pendle PT, post it on Morpho Blue, borrow and buy again up to a target leverage, simulated as one transaction.
Live. Runs on Composer todayIn your appSample data
9:41
LeverageYour app
MarketMorpho Blue · Ethereum
CollateralPendle PT
BorrowUSDC
1x
2x
3x
Open 2x
What runs, in order
- 1User paysreUSDeEthereum
- 2Buy the PTRoyco deposit, wrap to SY, Pendle swapcore.call ×n · core.staticCall ×n · core.invoke ×n · core.asResource ×n · core.balanceOf ×nEthereum
- 3Supply as collateralMorpho BluemorphoBlue.supplyCollateral ×nEthereum
- 4Borrow USDCRepeated to the targetmorphoBlue.borrow ×nEthereum
- 5Swap USDC to reUSDeFeeds the next leglifi.swap ×nEthereum
Build this
Get an API key and the code for this exact flow.
Who it's for
Yield and trading apps that offer leverage
What you get
- A target leverage in one transaction
- The simulation measures the leverage you actually get
- No flash loan needed