> For the complete documentation index, see [llms.txt](https://sftprotocol.gitbook.io/sft-chain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sftprotocol.gitbook.io/sft-chain/technical-documentation/technical-description/swap-contract.md).

# Swap Contract

Minting Pool and Redemption Pool for Ordinary Users.

## 1. swapFil

Users use SFT to exchange FIL, that is, a redemption operation. When the FIL balance in the contract is insufficient, the contract borrows FIL from the borrowing pool to meet the user's redemption needs (see the above [**7. borrowLiquidity**](https://sftprotocol.gitbook.io/sft-chain/technical-documentation/technical-description/pages/jcJ4RJ3rjLC0eYSoPaRq#7.-borrowliquidity) method for details).
