# YieldHubPirexEth

<figure><img src="https://725212399-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzKptRbJd7Q2IePzThNWw%2Fuploads%2FJJ4gTS8fXjs579n9baDp%2FYieldHub-2024-01-18-110603.png?alt=media&#x26;token=a35cfe1a-4e32-40ea-9751-b3875c62f707" alt=""><figcaption></figcaption></figure>

## Depositing

Depositing ETH is possible via `deposit()` only permissioned to be called by`obelisk`. Internally, it calls `PirexEth.deposit()` and stores minted `AutoPirexEth`(ERC-4626) inside the contract. The amount of `AutoPirexEth` is called shares.

## Redeeming

Shares can be redeemed to get `upxETH` via `redeem()` only permissioned to be called by `obelisk`. Internally, it calls `AutoPirexEth.redeem()` and then `PirexEth.initiateRedemption()`.&#x20;

## Withdrawing

`upxETH` can be withdrawn by burning shares via `withdraw()` only permissioned to be called by `obelisk`. Internally, it calls `AutoPirexEth.redeem()` and then `PirexEth.initiateRedemption()`.&#x20;

For more information on how `PirexEth`, `AutoPirexEth` and `upxETH` works, refer to: <https://dineroismoney.com/docs/architecture>.

<figure><img src="https://725212399-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzKptRbJd7Q2IePzThNWw%2Fuploads%2FobMxgvAfA7sK2ykuVcYD%2FpirexETH-2024-01-18-110513.png?alt=media&#x26;token=9fadbd69-5148-4b7f-bc0f-f0fb7d7f7980" alt="" width="563"><figcaption></figcaption></figure>
