# - ETH Lending

## 💡**Deposit ETH To Get ib**ETH

![](https://2223290131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWXh2hL0GBQR3Ak_8bv%2F-McD1fJdrZ-AwuClFrR8%2F-McD2HJPCa-YqfezAeOG%2Fimage.png?alt=media\&token=b37ba2ae-b5c4-4ff7-bd81-ab42b53f4287)

**ibETH** can be calculated by;

* *CASE 1* : (Total ETH Deposit Amount) > 0

$$
{Number}\space{of}\space{Token}=\frac{{Deposit}\space{Amount}\*{Total}\space{Token}}{{Total}\space{Liquidity}}
$$

* *CASE 2 :* (Total ETH - Deposit Amount) ≤ 0

$$
{Number}\space{of}\space{Token}={Deposit}\space{Amount}
$$

**\*Total  Liquidity = Total ETH Deposited + Cumulative Borrow Interest**

Total ibETH token is set based on the first user who deposits this asset. For example, if Bob is the first user who deposits 1 ETH, then the total ibETH token starts with 1 ibETH. If Alice then adds 0.5 ETH then the total liquidity will be  1.5 ETH, then Alice gets 0.33 ibETH (0.5 \* 1 / 1.5).

## 💡**Withdraw ib**ETH **to get** ETH

The number of withdrawal share that can be calculated from the following equation;

$$
{Withdrawal}\space{Share}=\frac{{Withdrawal}\space{Amount}\*{Total}\space{Token}}{{Total}\space {Liquidity}}
$$

![](https://2223290131-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWXh2hL0GBQR3Ak_8bv%2F-McD2l74agkozJfIYbQj%2F-McD2rEnzMjH8atffnyw%2Feth.jpg?alt=media\&token=e3aa2666-57c6-4de0-a0a2-d52cc110d7a1)

### 📎Total ETH Deposited (Total Supply)

Can be called '*Total Liquidity*', the total amount of liquidity in each asset pool, calculated as

$$
TotalLiquidity = TotalAvailableLiquidity+TotalBorrows
$$

### 📎Total Debt Issued (Total Borrowing)

Can be called '**Total Borrow Shares**', the total number of shares of Total Borrow for an asset, while **Total Borrows** are the sum of the total borrowed amount and accumulated borrow interest of an asset.

### 📎Current ibETH APR

Can be calculated from the following equation

$$
{ibETH}\space{APR} = \frac{{Borrow}\space{Interest}\*Utilization}{100}
$$
