# Yield-Trading (on Pendle)

Hinkal enables users to execute their yield trading strategies in a confidential environment on Pendle. Like all transactions within the protocol, relayers execute them on behalf of the users.

## <mark style="color:purple;">**Markets**</mark>

First, select the market you wish to trade your yield at. Let's take Ether.fi eETH on Ethereum as an example.

<figure><img src="https://400260740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUoGzqKrjqkoPsx76Zeb7%2Fuploads%2FYLcIs1JnuLSJD1b8Xaoo%2FPendle1.png?alt=media&#x26;token=775f4d79-be0f-4648-b341-bb943c7c92fd" alt=""><figcaption></figcaption></figure>

<mark style="color:purple;">**Market Details**</mark>

You have access to all the information about the Market (eg APYs), including Transaction activity. Hinkal fetches this data directly from Pendle.

<mark style="color:purple;">**Swap**</mark>

The user selects the ‘Swap From’ token, similar to regular swapping. The ‘Swap to’ token is locked to the respective YT or PT token of the market. In this case, YT-weETH. Swapping weETH into its YT or PT counterparts requires several steps that Pendle handles in the background.&#x20;

Let's take swapping weETH to YT-weETH as an example:

First, weETH is wrapped into SY-weETH. Subsequently, SY-weETH is broken down into an equal amount of PT (the principal) and YT (yield-bearing) tokens. Finally, the YT token amount stays as is, while the PT token amount is swapped for an equal value of YT tokens.

<figure><img src="https://400260740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUoGzqKrjqkoPsx76Zeb7%2Fuploads%2FHJSUOmjhuoGR1j8ebLcG%2FPendle2.png?alt=media&#x26;token=2c552da1-bbe8-44bb-999c-5a0348a2e652" alt=""><figcaption></figcaption></figure>

For the reverse swap, simply click on the arrow between the token pair. Similar logic but in reverse order applies for the steps taking place in the background.

The same can transactions take place when swapping to and from PT tokens. Simply click on the PT button to change to PT swapping.&#x20;

<figure><img src="https://400260740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUoGzqKrjqkoPsx76Zeb7%2Fuploads%2FWiardfR6f5Is6tCWF9oD%2FPendle4.png?alt=media&#x26;token=44aaaa24-8e38-4afb-ae11-33a06f6c6eaf" alt=""><figcaption></figcaption></figure>

<mark style="color:purple;">**Mint**</mark>

In this tab, users can mint or redeem their YT and PT tokens. When minting YT and PT tokens, in this case YT-weETH and PT-weETH, is similar to swapping. However, in this case, after breaking down the SY token, we keep both PT and YT counterparts.

<figure><img src="https://400260740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUoGzqKrjqkoPsx76Zeb7%2Fuploads%2FDwP98WqgMJ0YQEu1W3zV%2FPendle5.png?alt=media&#x26;token=6db0168d-7b77-4992-8fb2-6f415e0f131d" alt=""><figcaption></figcaption></figure>

Redeem is the reverse process of Mint. First, equal amounts of PT and YT tokens are burned for the creation of SY tokens. Then, the SY tokens are unwrapped.

<figure><img src="https://400260740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUoGzqKrjqkoPsx76Zeb7%2Fuploads%2F5iN1N6s04ceJY8buSHHt%2FPendle6.png?alt=media&#x26;token=5ad7dea8-ee7e-4c5e-a8b3-11c47ae703d3" alt=""><figcaption></figcaption></figure>

## <mark style="color:purple;">**Dashboard**</mark>

Here you can earn your rewards accrued by your YT tokens. Rewards accrued from YT tokens are distributed in the respective SY token.

First, choose the YT token you would like to claim the rewards from. Let's take YT eETH(27 Jun 2024) as an example. Simply click on the checkbox and then press the Claim button. That's it! Your SY eETH will be added to your shielded balance.

<figure><img src="https://400260740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUoGzqKrjqkoPsx76Zeb7%2Fuploads%2FhBMYN9xTVxMkk7yQsi5N%2FPendle7.png?alt=media&#x26;token=103098b5-128e-492e-ad4b-939ca64b84c9" alt=""><figcaption></figcaption></figure>

<mark style="color:purple;">**Costs Breakdown**</mark>

For all Yield Trading functions described above, you get a preview of the costs involved in compensating the Relayer.

* Hinkal uses gas stations to accurately predict the gas needed before the transaction is submitted. Press '**ESTIMATE'** to get an accurate estimate of the gas costs at the exact point in time.
* You can also change slippage tolerance manually (by pressing the gear icon - only available on **Deposit** and **Withdraw**).
* Last is the Hinkal commission, currently set to 3bps, making Hinkal the lowest-cost zk solution enabling discreet transactions in the market.

<figure><img src="https://400260740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUoGzqKrjqkoPsx76Zeb7%2Fuploads%2FMzVsf9HFg0isJKwHHY3c%2FPendle8.png?alt=media&#x26;token=9f24b6f9-3b30-4b65-af4a-acbe32cd2dad" alt="" width="341"><figcaption></figcaption></figure>

For Mint transactions, you can choose which of the received tokens will be used to cover the transaction costs. Simply click on the dropdown menu and switch to your preferred token.

<figure><img src="https://400260740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUoGzqKrjqkoPsx76Zeb7%2Fuploads%2FrtN5p6YAp4t2HjCCOsXs%2FPendle9.png?alt=media&#x26;token=78c4703a-0318-4ff3-a017-657d602e2208" alt="" width="350"><figcaption></figcaption></figure>

*For a detailed overview of Hinkal's fee structure, check out* [costs-breakdown](https://hinkal-team.gitbook.io/hinkal/hinkal-wallet/costs-breakdown "mention")*.*
