# PC version

## 1.Add metamask plug-in and BSC Mainnet

### 1.1 Add metamask plug-in

You can downlaod  metamask from here (<https://metamask.io/>)   or add it from the Chrome webapps store

### 1.2 Add BSC Mainnet

Step 1: click the network switch button above and select custom RPC to enter the network settings;

Step 2: input network information and click save

BSC mainnet information

Network Name: (user-defined, easy to identify) BSC mainnet

New RPC URL: <https://bsc-dataseed1.binance.org> :443

Chain ID: 56

Symbol: BNB

Block browser URL：<https://bscscan.com/>

![图片](/files/-McUM7F8fEhrWOsqNym5)

![图片](/files/-McUM7F9p8lQtWAWCk1W)

## 2.How to generate  Bai

How to generate Bai?  depoist  assets to  generate Bai  using "Vaults". Click the link below to enter the Bai borrow main page.

[https://app.bakerfi.com/borrow](https://app.bakerfi.com/borrow/)[/](https://app.bakerfi.com/borrow/)

### 1.connect to metamask Wallet

1.1 Enter the home page, click \[connect a wallet] and choose  \[metamask]  for exmaple in the drop-down menu.

![图片](/files/-McUM7FAFmdGny9jWEYL)

### 2.  collateralize and borrow Bai

2.1 enter the borrow page, and click the \[add] button to enter the  asset borrow

![图片](/files/-McUM7FBXICpSdAT5-hZ)

2.2  select the asset you want to collateralize and click continue

![图片](/files/-McUM7FCBp12qXrVwMNf)

2.3 Enter the Vault initialization page and click the approve button to approve

![图片](/files/-McUM7FD-kls3izXWhQ-)

2.4 Wait for the initialization vault to  complete, and  click continue

![图片](/files/-McUM7FEIKsW6uZctCzc)

2.5 Enter the number of assets you want to collateralize and the number of Bai you want to generate, and click continue&#x20;

![图片](/files/-McUM7FFg9n-jUp7rmAK)

2.6 After confirming the details of the vault, click  \[open vault] button

![图片](/files/-McUM7FGpLIfXxehr7NW)

2.7 After  the creation of the vault, click the \[exit] button to complete the creation of the vault to see your valut data.

![图片](/files/-McUM7FHpZEG6YG2266c)

2.8 The created vault is shown below

![图片](/files/-McUM7FIVBpROT6rKr-P)

## 3.Valut : deposit, withdrawal, payback and generation of Bai&#x20;

For created vaults, you can continue to deposit, withdraw , repay and generate BAI.

### 1.deposit&#x20;

1.1 Click the depoist button

![图片](/files/-McUM7FJ1VHGJsGqu6MO)

1.2 Enter the amount you want to deposit, and finish the transaction on metamask wallet.

![图片](/files/-McUM7FKd0M_pxBfYFvg)

1.3 After successful deposit, you can genterate more Bai

### 2.pay back&#x20;

2.1 Click the payback button to repay

![图片](/files/-McUM7FLLxNSU96c0S1e)

2.2 Enter the amount you want to repay, open the approve button and click repay

![图片](/files/-McUM7FM6-_34TjqnrdA)

2.3 After the repayment , the Bai of your corresponding amount will be deducted

### 3. generate BAI&#x20;

3.1 Click the generate button

![图片](/files/-McUM7FNtM28Ouv0-k51)

3.2 Enter the number of Bai you want to generate&#x20;

![图片](/files/-McUM7FOxtVikQDy2He0)

3.3 After generating , you will get the corresponding number of Bai

### 4.withdraw your assests

4.1 Click the withdraw button&#x20;

![图片](/files/-McUM7FPLKyZw3HTVGu7)

4.2 Enter the ammount to withdraw

![图片](/files/-McUM7FQYq0-gwLDdG2g)

4.3 After withdraw, your assets will be transferred from the Vault to your wallet.

## 4.View vault history transactions

In the vault history below, click the transaction hash to view the data on chain explorer .

![图片](/files/-McUM7FRAd3S-K7Pwa8m)

## 5. add  Bai token to  your wallet&#x20;

1.1 In the metamask plug-in, click the 【Add Token】 button at the bottom

![图片](/files/-McUM7FSoU4zdFctCEmI)

1.2 Enter token contract address：[0xd39b64fa868f5c0b505bce73fb416f5aa442a8c9](https://bscscan.com/token/0xd39b64fa868f5c0b505bce73fb416f5aa442a8c9)，Click Next。

![图片](/files/-McUM7FT3yS8RouYHkby)

1.3 Click \[Add Token]。

![图片](/files/-McUM7FUS0KWIVco2Y5Q)

1.4 Return to the home page to see the amount of Bai。

![图片](/files/-McUM7FVczOako_flpPI)


---

# 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.bakerfi.com/bakerdao/en/guide/borrow-bai/pc-version.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.
