# Swap

### Crosschain subnet token swaps

Using TaoFi, users can buy Bittensor subnet tokens from Base in one transaction. Here's how it works:

1. Tokens on Base are swapped to USDC
2. The USDC is bridged to Bittensor EVM via TaoFi’s bridge
3. The USDC is swapped to $TAO on Bittensor EVM via TaoFi’s liquidity pool
4. The $TAO is swapped to a subnet token via Bittensor’s canonical EVM precompiles

To sell subnet tokens, users can execute a single transaction from Base to receive Base USDC.

Subnet tokens are held in Hyperlane [interchain accounts](https://docs.hyperlane.xyz/docs/applications/interchain-account). Interchain accounts provide the infrastructure for users to be able to execute transactions on Bittensor EVM from Base. All swaps performed through TaoFi's canonical user interface incur a 0.1% fee. Users earn 100% of fees from swaps that use their [referral link](https://www.taofi.com/referrals).&#x20;

Subnet tokens bought through TaoFi earn the same staking yield that they would if they were bought directly on Bittensor. Yield is accrued via rebasing (i.e., the number of tokens will increase over time). Subnet tokens bought using TaoFi's canonical user interface are staked to the Sturdy Validator.&#x20;

Third-party interfaces that integrate [TaoFi's API](https://taofi-doc.web.app/) and/or smart contracts can set their own fee amount and choice of validator. TaoFi's smart contracts can be found [here](https://github.com/TaoFi-0x/taofi-swap).&#x20;

### Uniswap V3 deployment

TaoFi has deployed Uniswap V3 on Bittensor EVM, enabling users to swap between assets on the network. TaoFi has deployed a TAO-USDC trading pair, making it possible for users to permissionlessly buy and sell TAO. Swaps through this pool have a 0.3% fee, which goes entirely to liquidity providers.

Users can provide liquidity to the TAO-USDC pair to earn fees. Liquidity is allocated to a custom range. For example, a liquidity provider could provide USDC liquidity in the $400-450 price range, effectively serving as a permissionless limit order [limit order](https://docs.uniswap.org/concepts/protocol/range-orders).

TaoFi will be releasing additional pairs and tools for liquidity providers.


---

# 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://docs.taofi.com/swap.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.
