# Overview

BiFi is a cross-chain lending platform operating on Bifrost Network. As DeFi platform, the deposit APY and borrowing interest rate are adjusted in real-time according to market supply and demand.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FrSlQT4Uux0lLYHjuo5Tc%2Fimage%20(34).png?alt=media&amp;token=f69d33fa-60d9-44a0-8df9-03710becf7e8" alt=""><figcaption></figcaption></figure>

**1. The Relationship between Supply APY & Borrow APY**

As a DeFi lending platform, supply APY and borrow APY are determined by the users. When there are more deposited assets and low borrowing demand, they supply APY decreases. On the other hand, when borrowing demand increases, which lead decrease in liquidity, will cause the supply APY to increase. Basically the supply APY and borrow APY are determined by the supply and demand of the liquidity in BiFi.

**2. When Supply APY is shown as 0%**

In BiFi, the supply APY for some tokens may appear as 0% due to the following reasons:

* Lack of Demand: If there are few or no users borrowing a specific token, no interest rate is generated for the deposited assets.
* Low Liquidity: When the amount of a token borrowed in minimal, or users repay loans and immediately redeposit, liquidity remains stagnant.
* Market Volatility: The DeFi market is highly volatile so even if the supply APY is 0% at certain moments, it adjusts dynamically when demand arises.

**3. Principles of Loan Liquidity and Market APY Fluctuations**

The supply APY and borrowing interest rates fluctuate based on the following market conditions:

| Condition                                 | Expected Change                         |
| ----------------------------------------- | --------------------------------------- |
| Increased borrowing demand                | Supply APY rises & Borrowing rate rises |
| Decreased borrowing demand                | Supply APY falls & Borrowing rate falls |
| Surge in loan repayments                  | Supply APY falls                        |
| Surge in deposited assets                 | Supply APY falls                        |
| Reduced liquidity (increased withdrawals) | Borrowing rate rises                    |

Thus, the BiFi market is automatically adjusted in real time based on user behavior and liquidity changes.


# Connect Wallet to BiFi

{% content-ref url="/pages/DyEJIBTusMcamFxwqTcs" %}
[Pockie Guide](/bifi-cross-chain-guide-en/how-to-use-bifi/connect-wallet-to-bifi/pockie-guide)
{% endcontent-ref %}

{% content-ref url="/pages/lAx6uLowLAKzhWFNal9k" %}
[Metamask Guide](/bifi-cross-chain-guide-en/how-to-use-bifi/connect-wallet-to-bifi/metamask-guide)
{% endcontent-ref %}


# Pockie Guide

Pockie is a Web3 wallet optimized for using BiFi and supports various networks, including the Bifrost Network.

Easily access services with Pockie.

📲 **Download Mobile App**

👉 [AppStore](https://apps.apple.com/us/app/pockie-wallet-crypto-wallet/id6448715234)&#x20;

👉[ Google PlayStore](https://play.google.com/store/apps/details?id=com.pilab.pockie)

**🖥 Download Browser Extension**

👉 [Chrome](https://chromewebstore.google.com/detail/pockie-wallet/dmjmllblpcbmniokccdoaiahcdajdjof)

**Go to Pockie Website:** <https://www.pockie.io/>

**Go to Pockie Guide:** <https://docs.bifrostnetwork.com/pockie-eng>


# Metamask Guide

{% content-ref url="/pages/CzcVvTslRdRP8O7in2rR" %}
[Install MetaMask](/bifi-cross-chain-guide-en/how-to-use-bifi/connect-wallet-to-bifi/metamask-guide/install-metamask)
{% endcontent-ref %}

{% content-ref url="/pages/nwoXkCFXAStuSfFIfCkY" %}
[How to Add Custom network](/bifi-cross-chain-guide-en/how-to-use-bifi/connect-wallet-to-bifi/metamask-guide/how-to-add-custom-network)
{% endcontent-ref %}

{% content-ref url="/pages/ZhqEmwElpmC1Km3KAVTc" %}
[How to Add custom token](/bifi-cross-chain-guide-en/how-to-use-bifi/connect-wallet-to-bifi/metamask-guide/how-to-add-custom-token)
{% endcontent-ref %}


# Install MetaMask

To lend, stake, or pool on BiFi, you first need to install MetaMask wallet on your desktop or phone. Follow the steps below to install MetaMask.&#x20;

{% stepper %}
{% step %}
**Visit** [**MetaMask.io**](https://metamask.io/) **and click `Download`.**

<figure><img src="https://files.gitbook.com/v0/b/gitbook-legacy-files/o/assets%2F-MYDrxlLtSunwzR1HUeg%2F-MYDuLyhUo3Z1A1NkCFw%2F-MYDunTJudbTVwN9e4cy%2F_2020-11-24__5.23.25.png?alt=media&#x26;token=b4a60f77-6759-4f51-a54c-f3c28c49f169" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Choose your device and click `Install MetaMask`.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-legacy-files/o/assets%2F-MYDrxlLtSunwzR1HUeg%2F-MYDuLyhUo3Z1A1NkCFw%2F-MYDv2Bs0WNWmzIGKJEa%2F_2020-11-24__9.58.40.png?alt=media&#x26;token=0f6c1f9c-9e33-4392-84a1-8876f839f233" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Click `Add to Chrome` .

<figure><img src="https://files.gitbook.com/v0/b/gitbook-legacy-files/o/assets%2F-MYDrxlLtSunwzR1HUeg%2F-MYDuLyhUo3Z1A1NkCFw%2F-MYDvBoAniK-Y4Y73VXq%2F_2020-11-24__5.25.05.png?alt=media&#x26;token=686e403a-7304-4a9a-b59c-15ed9c606fa6" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Click `Add extension`.**

<figure><img src="https://files.gitbook.com/v0/b/gitbook-legacy-files/o/assets%2F-MYDrxlLtSunwzR1HUeg%2F-MYDuLyhUo3Z1A1NkCFw%2F-MYDvK3JNAVRZAfr8rvL%2F_2020-11-24__5.26.03.png?alt=media&#x26;token=f7c6cae4-77ea-467f-a18c-0e2bfc6e1c44" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Installation is complete. To create an account, click `Get Started` .

<figure><img src="https://files.gitbook.com/v0/b/gitbook-legacy-files/o/assets%2F-MYDrxlLtSunwzR1HUeg%2F-MYDuLyhUo3Z1A1NkCFw%2F-MYDvRHayz2oAC2LSVFh%2F_2020-11-24__5.27.31.png?alt=media&#x26;token=985bbaa7-a751-4771-91f0-f29d3c4afae4" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### If you already have an account, you can import your existing wallet by clicking `Import wallet`. Otherwise, click `Create a Wallet`.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-legacy-files/o/assets%2F-MYDrxlLtSunwzR1HUeg%2F-MYDuLyhUo3Z1A1NkCFw%2F-MYDvlM6IxYV5FR3-3Z-%2FUntitled.png?alt=media&#x26;token=0f11f2f3-e521-4307-8004-2a71f47a57a2" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Click `I Agree`.**

<figure><img src="https://files.gitbook.com/v0/b/gitbook-legacy-files/o/assets%2F-MYDrxlLtSunwzR1HUeg%2F-MYDuLyhUo3Z1A1NkCFw%2F-MYDvt7rZH4aYHIsi2og%2F_3.png?alt=media&#x26;token=8ecfc0b7-8a74-459f-8657-d1ecf5c9dbee" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### &#x20;Enter your password and remember or keep this in a safe place.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-legacy-files/o/assets%2F-MYDrxlLtSunwzR1HUeg%2F-MYDuLyhUo3Z1A1NkCFw%2F-MYDw0j6gMXIpL2VU6kt%2FUntitled11.png?alt=media&#x26;token=1bbda4b1-ade3-4e36-ac72-02e7446477ef" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### In the next step, your 'Secret Backup Phrase' will be shown.

{% hint style="danger" %}
Click to reveal your secret phrase and store it in a secure place.&#x20;

**NEVER share this phrase with anyone else.**
{% endhint %}

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FttiStbjzKIxdoO03c79l%2Fimage.png?alt=media&amp;token=ae5ef9aa-d3e3-464b-99cb-c8b8316705b3" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### You have completed setting up MetaMask!

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FdBKG5U7enLsxS1PygqZS%2Fimage.png?alt=media&amp;token=21aa9e96-6158-45c2-b2c5-d6920eee0a89" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To add your existing tokens to MetaMask, click "Add Token".
{% endhint %}
{% endstep %}
{% endstepper %}


# How to Add Custom network

**For a quick and easy way to add networks to Metamask, visit** [**Chainlist**](https://chainlist.org/)**.**

**You can connect your MetaMask wallet and add networks with just a few clicks. For detailed steps, refer to this** [**guide**](https://support.metamask.io/configure/networks/add-a-network-using-chainlist/.)**.**


# How to Add custom token

**To add a custom token to MetaMask, follow the steps outlined in this** [**guide**](https://support.metamask.io/manage-crypto/tokens/how-to-display-tokens-in-metamask/)**.**


# Lend & Borrow

This guide explains the process of depositing USDC on the BNB Chain as collateral and borrowing BtcUSD on the Bifrost Network.

{% stepper %}
{% step %}
Connect your wallet.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FOKHTby91BU5I7f5zc9qT%2Fimage.png?alt=media&amp;token=d365b463-cc86-4038-987e-0c98ecde8aab" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Select the USDC to deposit as collateral.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2F9Phi9PHOfbtBCNvq2Xti%2Fimage.png?alt=media&amp;token=85259ca6-d382-4199-9f52-556cd4eaeac4" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Choose the network to deposit.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2F70SqRfiK0LRNUmr2cHOv%2Fimage.png?alt=media&amp;token=c9d9e8a0-6e5d-4fe2-93b5-6b2906a3be11" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Enter the amount of tokens to deposit and click Supply.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FFtEhjCfQ6VtaLFtKK6SF%2Fimage.png?alt=media&amp;token=ba410f5c-ec86-4b9f-98e4-5a8953bce47f" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Confirm the transaction in your wallet. When the “Supply completed” message appears, click Close.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FLBkW4UypVXzuvLUu4o11%2Fimage.png?alt=media&amp;token=6b9c842c-e4b9-4904-be8f-ed35a8055d7b" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Select the token you wish to borrow.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FFZh3MUflDQcB0pVLOrGD%2Fimage.png?alt=media&amp;token=8b18655e-3065-4be2-8313-f13a8f77082e" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Choose the network from which to borrow the token.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2Fg11yAke0z1IGEPPSqMlg%2Fimage.png?alt=media&amp;token=6f107531-349a-482f-b97b-b27f5d27bf81" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Enter the amount of tokens to borrow and click Borrow.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FoA7pgg0TB3XhvCd4DO83%2Fimage.png?alt=media&amp;token=ec40a28e-bc1f-4bbe-8635-869d821ccb76" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
After confirming the transaction, the “Borrow completed” message indicates the process is complete.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FXGWbn8frMn9WPUesKmB8%2Fimage.png?alt=media&amp;token=5de1a175-5d8a-4e75-b7c9-3c7d56e3632b" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Your deposited USDC and borrowed BtcUSD will be displayed as follows.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FDOj3DclUz9EhyyLAdDND%2Fimage%20(44).png?alt=media&amp;token=4a2fe6f7-fe49-457f-bb9a-a111f07e0f67" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


# Repayment and Withdrawal

This guide explains the process of repaying borrowed assets on BiFi and withdrawing collateral once the loan is partially or fully repaid.

{% stepper %}
{% step %}
Check your loan details and select the asset to repay.

(If there is no outstanding loan or the loan amount is small relative to the limit, you may skip repayment and proceed with a partial withdrawal.)

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FfkuyGmULfM720GJHctQH%2Fimage%20(45).png?alt=media&amp;token=690f013a-53d0-4ab1-8fb5-6843b5a89ff8" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click on Repay.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2F1jm1QH9XIMO952rGD5xG%2Fimage%20(46).png?alt=media&amp;token=d1c773cf-340a-4be5-9dbc-3c7346fef285" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Select the network and enter the amount to repay.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2F0z51DVUhUQRhyegqEv13%2Fimage%20(47).png?alt=media&amp;token=b48f8c3e-716c-4469-8f83-22896356c852" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Confirm the transaction in your wallet to complete the repayment.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FCyKnwVSd5m1LaS1gOXpv%2Fimage%20(48).png?alt=media&amp;token=5ae42466-f92d-4630-8048-320acab806c7" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
You can verify that the loan balance is now 0, as shown below.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FktMZJezSI5GzrcMCcpPx%2Fimage%20(49).png?alt=media&amp;token=ea677230-b4ae-4643-968d-6124ec42f9a2" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Under Your Supplies, select the asset you want to withdraw and click Withdraw.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2Fzo2VOgp03SLa2Vn0aLmN%2Fimage%20(50).png?alt=media&amp;token=bc9cc2aa-a2f8-4789-ab45-ed38f27cdaad" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Choose the network, enter the amount, and click Withdraw.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2FPRXqfemUy7IqmIhws365%2Fimage%20(51).png?alt=media&amp;token=0c85c211-4469-4f89-92ab-29c30b39253f" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Confirm the transaction in your wallet and verify that the withdrawal is complete.

<figure><img src="https://2940930359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCOfE3MB60TaU9qgGThzi%2Fuploads%2Fdr0TRGvrR85ZzFMfsxeF%2Fimage%20(52).png?alt=media&amp;token=aed28dcd-90e5-4513-847a-e0f81a5168ac" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


# Go to BTCFi

Please use BTCFi for utilizing BTC, including native BTC. Provide a link with this message.

This menu should remain private for now and can be made public after the native BTC feature is officially released.

Link to BTCFi: <https://www.btcfi.one/dashboard>


# Buying BFC or BiFi on (CEX, DEX)

**Purchase via Exchange:** [Link to exchanges](https://linktr.ee/bifrost_bifi)

**Purchase via Wallet:** Use Pockie’s "Trade" feature to swap other assets for BFC or BiFi.


