# Plume: Looped pUSD Yield via Nest + Morpho

This workflow builds a leveraged pUSD yield position on Plume by looping deposits between Nest and Morpho. Starting from your initial capital, the workflow runs a precheck, then iterates a deposit-borrow cycle: deposit pUSD into Nest, use the Nest position as collateral, borrow pUSD on Morpho, and feed the borrowed pUSD back into the next Nest deposit. It repeats up to your max loop count, formats a summary of every iteration, and sends a Telegram alert with the resulting position, leverage, and projected yield.

### Quick Setup:

1. Import your wallet or use your B3OS Treasury Wallet
2. Set your initial capital — the starting pUSD amount to deposit into Nest
3. Set the max loop count — how many deposit/borrow cycles to run (more \= more leverage, more liquidation risk)
4. Connect Telegram and provide the chat ID for the run summary alert

## Workflow Steps

- **code-transform** — Formats leverage loop results into an HTML Telegram message.
- **nest-leverage-iteration** — Deposits {payload.depositAmountWei} pUSD into Nest Vault, supplies nTBILL as Morpho collateral, and borrows pUSD at target leverage {payload.targetLtvWad}, proceeding only if amount meets {payload.minAmountWei} threshold.
- **for-each** — Iterates over each item in {payload.array} to execute the iteration step.
- **nest-leverage-precheck** — Validates balances, approvals, oracle prices, and Morpho liquidity, then simulates the leverage loop with {payload.initialCapital} initial capital, {payload.maxLoops} max loops, {payload.minAmount} min amount, and {payload.safetyBufferBps} safety buffer.
- **manual** — Manually triggers the leverage loop workflow on demand.
- **notification** — Sends the formatted message

**Tags:** DeFi, Lending, Nest, Plume
