🌋
Obelisk
  • Getting Started
  • V0
    • Guides
      • Get Papyrus NFTs
      • Enter Draws
      • Rounds
      • Withdraw Yield
    • Liquid Staking
      • Pirex ETH
    • Donation
    • Fees & Treasury
  • Development
    • Contributing
    • Audits
    • V0 Contracts
      • Obelisk
      • YieldHubPirexEth
      • RNGSender
      • Papyrus
Powered by GitBook
On this page
  • Depositing
  • Redeeming
  • Withdrawing
  1. Development
  2. V0 Contracts

YieldHubPirexEth

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

PreviousObeliskNextRNGSender

Last updated 1 year ago

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