LybraRETHVault
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.
Function
depositEtherToMint(uint256 mintAmount)
Allows users to deposit ETH to mint peUSD. ETH is directly deposited into RocketDepositPool contract and converted to rETH.
mintAmount
uint256
The amount of peUSD to mint.
Requirements:
The deposited amount of ETH must be greater than or equal to 1 ETH.
setRkPool(address addr)
When the address of the RocketDepositPool contract changes, it is possible to replace it with the new correct contract address.
addr
address
The amount of peUSD to mint.
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.
Last updated