# Yearn Finance

Firmware versions V1.4.0 (Multi-Coin) or newer allows you to use Yearn Finance with Keystone Essential or Pro.‌ Detailed instructions provided below will explain how to use your Keystone to directly interact with Yearn Finance.

If you would like to use your Keystone to interact with Yearn Finance through your MetaMask (fork) client, please refer to the tutorial link provided directly below:

{% content-ref url="../eth-and-web3-wallets-keystone/bind-metamask-with-keystone/how-to-use-metamask-keystone-with-defi" %}
[how-to-use-metamask-keystone-with-defi](https://support.keyst.one/3rd-party-wallets/eth-and-web3-wallets-keystone/bind-metamask-with-keystone/how-to-use-metamask-keystone-with-defi)
{% endcontent-ref %}

## I. Preparation&#x20;

1\. Setup your Keystone. ([Getting started in 5 steps](#i.-preparation))&#x20;

2\. [Firmware ](https://keyst.one/firmware?locale=en)version V1.4.0 (Multi-Cion) or newer running on Keystone Essential or Pro.&#x20;

&#x20;   (Please read [How to upgrade firmware](https://support.keyst.one/getting-started/firmware-upgrading) for more details)

3\. Yearn: <https://yearn.finance/vaults/>

## **II. Connect Keystone to Yearn**

1\. Keystone: Turn on the Keystone device, then select the \[Menu] icon > \[Watch-only Wallet]&#x20;

{% hint style="info" %}
Please note that if your firmware version is **M-10.0** or newer, the **connection process on the Keystone** hardware wallet has been improved.&#x20;

To connect your software wallet, simply tap on \[Connect Software Wallet] and then select \[Yearn Finance]. The QR code will be displayed automatically.&#x20;

For more information about the updated UI design, please visit [Keystone's Revamped UI](https://support.keyst.one/getting-started/getting-started-with-m-10.0-or-newer-for-beginners).
{% endhint %}

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrQXQQRT6etffwhkFpfZG%2Fuploads%2FIma6l3B3qbybg2n4roaz%2F1.jpg?alt=media&#x26;token=d6b43143-ef2f-46cd-a769-5401cddb376b" alt="Keystone-YearnFinance-1"><figcaption></figcaption></figure>

2\. Select \[MetaMask / DeFi / Web3] > \[Confirm] > then select \[Display QR Code] to show the QR code for syncing.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrQXQQRT6etffwhkFpfZG%2Fuploads%2FgQQHrzuQS6kVQXPJRYb2%2F2.jpg?alt=media&#x26;token=d8355abe-4e8d-45be-bb6c-f3c172a9e415" alt="Keystone-YearnFinance-2"><figcaption></figcaption></figure>

3\. Visit the Yearn Finance’s vaults web page at <https://yearn.finance/vaults/>, and click \[Connect wallet].

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrBbpfX-kmM4xXLCHo%2F3.jpg?alt=media&#x26;token=e384e10a-fdaa-4389-b1ab-c3c8171f0a34" alt="Keystone-YearnFinance-3"><figcaption></figcaption></figure>

4\. Select \[Keystone] option, then click on \[Sync Keystone] and scan the QR code shown on Keystone.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrBeUR-cqJyeKjcOtB%2F4.jpg?alt=media&#x26;token=7e1960e9-6441-49bb-a5e7-7d1b62cbd09f" alt="Keystone-YearnFinance-4"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-MidmMIG1Y14mVxq3pV6%2F-MieLvtJZztvFD4_8xXh%2F4-1.jpg?alt=media&#x26;token=8425e72d-747b-4ea0-8504-11a8c881e45c" alt="Keystone-YearnFinance-5"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrBgyEj9FZcbcI2eaA%2F5.jpg?alt=media&#x26;token=4cba6c24-a691-4ac2-a43d-82ce27593bd2" alt="Keystone-YearnFinance-6"><figcaption></figcaption></figure>

5\. Click on drop-down icon to show all accounts and select whichever account you want to use, then click on \[Done].

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-MidjEHYG_OrFglZaGIg%2F-MidligUFm6e6xpW93nj%2F6.jpg?alt=media&#x26;token=0fb0b110-2762-4079-8490-34ccc1ddefb0" alt="Keystone-YearnFinance-7"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrCgb3V28Bl20w-d69%2F7.jpg?alt=media&#x26;token=255f70d7-ed97-4134-a274-8439666c816e" alt="Keystone-YearnFinance-8"><figcaption></figcaption></figure>

6\. Yearn Finance should now be successfully connected to your Keystone.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrBuYjz3Z3OVyb7KKq%2F6.jpg?alt=media&#x26;token=b74d8dba-a577-4317-ba6b-0d05729dbf0b" alt="Keystone-YearnFinance-9"><figcaption></figcaption></figure>

## III. Deposit Digital Assets (e.g. ETH)

{% hint style="info" %}
**Caution:** If this is the first time you are depositing a Token, you will be required to  authorize \[Approve] the third party (e.g. the smart contract of Token A) to spend this Token in your wallet before you can execute the \[Deposit].
{% endhint %}

1\. Yearn Finance: Select the coin type (e.g. ETH) and set the amount you want to deposit into the vault. Click \[Deposit] to get the unsigned transaction data in QR code format.&#x20;

(Tip: If you are depositing ETH, make sure you have enough ETH left over to pay for future transactions that you might need to make.)

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrCquvP6yjnqXm1NA6%2F1.jpg?alt=media&#x26;token=16195286-b823-4cb5-9e3a-137632c322a3" alt="Keystone-YearnFinance-10"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrCtTI4OMjDUVqc0hT%2F2.jpg?alt=media&#x26;token=d4f6a6b3-597c-46e3-b21c-489ddda4b226" alt="Keystone-YearnFinance-11"><figcaption></figcaption></figure>

2\. Keystone: Touch the “scan” icon and scan the QR code that is shown on Yearn Finance. Confirm the transaction details on Keystone. Touch \[Sign] and enter your password to verify. It will then show the signed transaction data in QR code format.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrCwil1Sap8hTMu0ta%2F3.jpg?alt=media&#x26;token=80439b82-efbc-4410-85e8-819ecde90de6" alt="Keystone-YearnFinance-12"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrGzHL0DwkUL4IYVC3%2F2-5.jpg?alt=media&#x26;token=099cba0c-8cff-4b6c-8e50-61a192e3563b" alt="Keystone-YearnFinance-13"><figcaption></figcaption></figure>

3\. Click \[Scan Keystone] and scan the QR code displayed on your Keystone.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrD2Q5EpDEbdEUo7jx%2F5.jpg?alt=media&#x26;token=407398a6-251d-4c80-99b8-576220609df8" alt="Keystone-YearnFinance-14"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrD5MNadrTXuS7Momj%2F6.jpg?alt=media&#x26;token=70bfd0fc-7a31-4c30-95cc-4cb7f31932d2" alt="Keystone-YearnFinance-15"><figcaption></figcaption></figure>

4\. Signing your transactions should successfully deposit the concerning assets in the transaction. You should see the balance of the vault's interface reflect your deposit at the top of the vault list.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrD8PIJiUNYasQcX2e%2F7.jpg?alt=media&#x26;token=54424b6a-a2e3-4b2f-9730-9cf0132d620c" alt="Keystone-YearnFinance-16"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDB0w8VTg9of3WUQM%2F8.jpg?alt=media&#x26;token=fc07936b-f69a-48b7-961e-2319b1949c1b" alt="Keystone-YearnFinance-17"><figcaption></figcaption></figure>

## **IV. Withdraw ETH**

### **1. Approve**

{% hint style="info" %}
**Caution:** If it is the first time you are withdrawing from Token A to ETH (or to another Token), you will be required to authorize \[Approve] the third party (e.g. the smart contract of Token A) to spend Token A in your wallet before you can \[Withdraw].
{% endhint %}

1\) Yearn Finance: Select the coin type (e.g. ETH) and set the amount you want to withdraw. Click \[Withdraw] to get the unsigned transaction data in QR code format.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDIqG121RqM-81TiS%2F0-1.jpg?alt=media&#x26;token=bfe6fb8a-e203-4fdc-8440-efdd42e61df9" alt="Keystone-YearnFinance-18"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDMAhYR12yb1fmYsj%2F0-2.jpg?alt=media&#x26;token=9f5819a6-4dee-4775-806f-d1cde861178a" alt="Keystone-YearnFinance-19"><figcaption></figcaption></figure>

2\) Keystone: Touch the “scan” icon and scan the QR code that is shown on Yearn Finance. Confirm approval on the Keystone device and touch \[Sign], then enter your password to verify. It will then show the signed transaction data in QR code format.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDOi7vEeTBMXsW9sl%2F0-3.jpg?alt=media&#x26;token=98ee35c0-b885-4e77-ab16-93722b22cb3d" alt="Keystone-YearnFinance-20"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDQtzOLtUgXTNUMLY%2F0-4.jpg?alt=media&#x26;token=36162dcb-452f-41bc-93ed-bfc7b812af23" alt="Keystone-YearnFinance-21"><figcaption></figcaption></figure>

3\) Click \[Scan Keystone] and scan the QR code displayed on your Keystone device to broadcast the transaction.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDZ-ErT8YZ-wFivsd%2F0-5.jpg?alt=media&#x26;token=029d480e-1915-4062-b524-6d9397a50ce7" alt="Keystone-YearnFinance-22"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDaZ1pSWjTAk6OwkX%2F0-6.jpg?alt=media&#x26;token=463d71ee-4de3-4fbe-8393-3e85f316c4d6" alt="Keystone-YearnFinance-23"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDdF0vimx4TpqZTny%2F0-7.jpg?alt=media&#x26;token=2076620d-61df-47b2-bf3f-db2521c9dd76" alt="Keystone-YearnFinance-24"><figcaption></figcaption></figure>

### **2. Withdraw**

1\) Yearn: When the approval succeeds, click \[Withdraw] to get the unsigned transaction data in QR code format.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDgWKsaF1F8kLLE7c%2F1.jpg?alt=media&#x26;token=d4e72892-af58-45fe-b508-4af68c7b3fb2" alt="Keystone-YearnFinance-25"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDi_tyQzmjL_t-AVx%2F2.jpg?alt=media&#x26;token=7ab9ddb2-aef2-4365-94d4-db5aa461583b" alt="Keystone-YearnFinance-26"><figcaption></figcaption></figure>

2\) Keystone: Touch the “scan” icon and scan the QR code that is shown on Yearn Finance. Confirm the transaction details on Keystone. Touch \[Sign] and enter your password to verify. It will then show the signed transaction data in QR code format.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDkpIyh3rbWaJciLM%2F3.jpg?alt=media&#x26;token=65f0ca8e-7eb4-40da-b72f-f42b0d1ea0e2" alt="Keystone-YearnFinance-27"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDn9dLVAYgQ95g3tF%2F4.jpg?alt=media&#x26;token=1cdc4606-5ca5-4a85-8b04-78d092aa3286" alt="Keystone-YearnFinance-28"><figcaption></figcaption></figure>

3\) Click \[Scan Keystone] and scan the QR code displayed on your Keystone to broadcast the transaction.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDrh3LvYbsyjl5irj%2F5.jpg?alt=media&#x26;token=224762eb-4cb9-4365-9ec3-f6810de495cf" alt="Keystone-YearnFinance-29"><figcaption></figcaption></figure>

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDu-TzM8CMTH0jAeu%2F6.jpg?alt=media&#x26;token=9a45f422-b3e0-4968-8b75-976e2b7158a6" alt="Keystone-YearnFinance-30"><figcaption></figcaption></figure>

4\) Your withdrawal should be executed successfully at this point.

<figure><img src="https://2420738387-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVozfoQsxc6YFPQfVTB%2F-Mhr98ZU7HdWUVUJHK4W%2F-MhrDxVu1bYQo9w2EmsM%2F7.jpg?alt=media&#x26;token=8592fcd1-8415-4be2-a67b-ff8604094f33" alt="Keystone-YearnFinance-31"><figcaption></figcaption></figure>
