LybraWBETHVault
This contract inherits from the LybraPeUSDVaultBase contract and supports collateralizing WBETH to borrow peUSD. When users deposit ETH, the contract will deposit the ETH into the WBETH contract and convert it to WBETH.
Function
depositEtherToMint(uint256 mintAmount)
Allows users to deposit ETH to mint peUSD. ETH is directly deposited into Lido and converted to WBETH.
Parameter | Type | Description |
---|---|---|
mintAmount | uint256 | The amount of peUSD to mint. |
Requirements:
The deposited amount of ETH must be greater than or equal to 1 ETH.
getAssetPrice()
Returns the price of the collateral asset (WBETH) in USD.
Returns:
The price of the collateral asset (WBETH) in USD.
Last updated