LybraRETHVault
Last updated
Last updated
This contract inherits from the LybraPeUSDVaultBase contract and supports collateralizing Rocket Pool ETH(rETH) to borrow peUSD. When users deposit ETH, the contract will deposit the ETH into the RocketDepositPool contract and convert it to rETH.
depositEtherToMint(uint256 mintAmount)
Allows users to deposit ETH to mint peUSD. ETH is directly deposited into RocketDepositPool contract and converted to rETH.
Parameter | Type | Description |
---|---|---|
Requirements:
The deposited amount of ETH must be greater than or equal to 1 ETH.
When the address of the RocketDepositPool contract changes, it is possible to replace it with the new correct contract address.
Parameter | Type | Description |
---|---|---|
Requirements:
This can only be called by the TimeLock contract in the governance module.
getAssetPrice()
Returns the price of the collateral asset (rETH) in USD.
Returns:
The price of the collateral asset (rETH) in USD.
mintAmount
uint256
The amount of peUSD to mint.
addr
address
The amount of peUSD to mint.