# PEther

The **PEther** contract manages deposits and borrowing of the blockchain’s native asset (e.g., ETH), providing users with interest-bearing tokens in return for native asset deposits.

***

### 🛠️ Key Functions & Parameters

#### `mint() payable`

Deposit native blockchain asset (ETH) into the protocol.

* **Usage:** Send ETH directly with the call.
* User receives PEther tokens proportionally.

***

#### `redeem(uint redeemTokens)`

Withdraw ETH by redeeming PEther tokens.

* **Parameters:**
  * `redeemTokens`: Number of PEther tokens to redeem.

***

#### `redeemUnderlying(uint redeemAmount)`

Withdraw an exact amount of ETH directly.

* **Parameters:**
  * `redeemAmount`: Amount of ETH to withdraw.

***

#### `borrow(uint borrowAmount)`

Borrow ETH from the market.

* **Parameters:**
  * `borrowAmount`: Amount of ETH to borrow.

***

#### `repayBorrow() payable`

Repay borrowed ETH.

* **Usage:** Send ETH directly as repayment.

***

#### `balanceOfUnderlying(address owner)`

Returns user's underlying ETH balance (including accrued interest).

* **Parameters:**
  * `owner`: User wallet address.
* **Returns:**
  * User's underlying ETH balance.

***

### 📈 View Functions & Information

* `exchangeRateCurrent()`: Current exchange rate between PEther and underlying ETH.
* `getCash()`: Shows total ETH liquidity available in the market.


---

# 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://peridot-finance.gitbook.io/peridot-protocol/technical-architecture/evm/core-contracts/pether.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.
