← All workflows
LendingTrading

Buy an asset, supply it, and borrow against it

A standard leveraged entry, with the health factor worked out before you approve so you see it before the position exists. Half the deposit becomes collateral, and the borrow is half of that again, well below the maximum the ratio allows.

Starts when
You press Run
Repeats
Runs once
Networks
base
Assets
USDCcbBTC
Through
aggregation routerAave v3

What you type

Take $1,000 USDC, swap half to cbBTC, supply it, and borrow $250 against it.

Change the numbers, the assets or the network — it is a sentence, not a template. If what you want is not possible on the network you named, ask before planning: "can I do this" is usually really "can I do this there".

What it compiles to

The plan you approve
  1. 01pull-1000base
    deposit.pull$1,000 USDC from wallet1 call
  2. 02swap-cbbtcbase
    swap.router500 USDC → cbBTC2 calls
  3. 03supply-cbbtcbase
    lend.supply← linked step’s output2 calls
  4. 04borrow-250base
    lend.borrow250 USDC · HF 1.56 · half the $500 supplied2 calls
4 steps

You read this before anything happens. Saving it runs nothing; running it is a separate, deliberate press.

What to know before you run it

Related workflows

Every operation named above is in thecatalogue, which is generated from the running build. If this page and the catalogue disagree, the catalogue is right.

Bring one strategy you are tired of running by hand.

DeFiLoops is live. Open the app, say the strategy in chat, and read the plan before anything runs.