# Partial Collateral Swap (Flexible Position Management)

Helios introduces a **Partial Collateral Swap** that lets borrowers exchange a portion of their locked collateral for another supported asset *without* closing or refinancing the loan. This capability is rare in today’s lending markets and is made possible by Helios’s programmable custody on Bitcoin.

***

**1. Workflow Without Helios**

To rebalance collateral in most platforms, a borrower must:

1. Repay the full loan.
2. Withdraw the entire collateral.
3. Swap off-platform into a new asset.
4. Re-deposit and borrow again.

This four-step process incurs multiple network fees, market-spread slippage, and often constitutes a taxable disposal of the original asset.

***

**2. Helios One-Step Swap**

With Helios, the borrower submits a single on-chain instruction. For example, when function call corresponding to below instruction is executed:

```
Swap 0.50 BTC collateral → Taproot-USDT
```

* The protocol atomically converts the specified slice of collateral to the target asset.
* The LTV is re-evaluated in the same transaction; the loan remains open and uninterrupted.

Result: the wallet now shows **0.50 BTC + X USDT** as collateral, all executed inside the vault.

***

**3. Key Benefits**

| Objective                     | How the swap helps                                                                                                                                                                                                       |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Volatility control**        | Shift part of the collateral into a stablecoin ahead of a projected BTC draw-down, lowering liquidation risk without exiting the position.                                                                               |
| **Tax optimization**          | By rebalancing *inside* the loan, a borrower could defer recognizing capital gains that would normally arise from an outright sale of appreciated BTC. (Always consult a tax advisor; treatment varies by jurisdiction.) |
| **Treasury agility**          | Corporate desks can fine-tune collateral composition intraday—e.g., dial down BTC exposure before quarterly close—while preserving the original borrowing terms.                                                         |
| **Cross-asset opportunities** | Move collateral into whichever asset currently carries the lower risk weight or higher borrow demand, maximizing capital efficiency.                                                                                     |

***

**4. Safety Checks**

* **Real-time LTV validation** – The swap executes only if the post-trade collateral value satisfies all risk parameters.
* **Oracle-verified pricing** – Both sides of the swap use on-chain oracles with [median filters](https://onlinelibrary.wiley.com/doi/full/10.1155/2016/3750264) to prevent manipulation.
* **Single-transaction atomicity** – Either the swap completes with the position healthy, or it reverts with no state change.

***

Helios’s Partial Collateral Swap delivers portfolio-level control, potential tax advantages, and operational simplicity—features that traditional DeFi money markets and even many CeFi desks do not yet offer.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helios-finance.gitbook.io/helios-finance/core-concepts/publish-your-docs-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
