Collect fees on a position that has debt against it
The fees are yours and the vault will not release them while the debt stands, because taking them out is a collateral withdrawal. Borrow the repayment for one transaction and they arrive.
What you type
Collect the fees on my levered WETH/USDC position.
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
- 01collectbaserevert.collect_feesclear the debt, take the fees, restore the borrow — all flash-funded2 calls
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.