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