YieldHubPirexEth
This contract handles depositing and redeeming to and from Pirex ETH (a.k.a. Dinero procol)

Depositing
Depositing ETH is possible via deposit() only permissioned to be called byobelisk. 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().
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().
For more information on how PirexEth, AutoPirexEth and upxETH works, refer to: https://dineroismoney.com/docs/architecture.

Last updated