unshETHZap Contracts
unshETHZap-I.sol
Note
Split reference
This reference file was too long so it is split into multiple chunks. This is chunk number I.
This solidity file defines a smart contract called unshETHZapv2 which is used for depositing liquidity provider tokens (LSD) into different Ethereum-based staking contracts. It also provides functionality to mint staked versions of different Ethereum tokens such as sfrxETH, wstETH, rETH, wETH, and frxETH and deposit them in a LSD vault to mint unshETH tokens.
unshETHZapv2
Smart contract to mint staked Ethereum-based tokens and deposit them into a LSD vault.
constructor
constructor(address)
Initializes the contract by setting permission to spend tokens on behalf of the contract.
Parameters
- _unshETHAddressV2 address: Address of the unshETH contract.
_mint_sfrxETH
_mint_sfrxETH(uint256)
Mints a quantity of sfrxETH tokens and deposits them into the LSD vault.
Parameters
- ethAmount uint256: The amount of Ether to mint into sfrxETH.
_mint_wstETH
_mint_wstETH(uint256)
Mints a quantity of wstETH tokens and deposits them into the LSD vault.
Parameters
- ethAmount uint256: The amount of Ether to mint into wstETH.
_mint_rETH
_mint_rETH(uint256)
Mints a quantity of rETH tokens and deposits them into the LSD vault.
Parameters
- ethAmount uint256: The amount of Ether to mint into rETH.
_mint_wETH
_mint_wETH(uint256)
Mints a quantity of wETH tokens and deposits them into the LSD vault.
Parameters
- ethAmount uint256: The amount of Ether to mint into wETH.
deposit_stEth
deposit_stEth(uint256)
Deposits stETH into wstETH and then deposits the wstETH into the LSD vault.
Parameters
- stETHAmount uint256: The amount of stETH to deposit into wstETH.
_deposit_frxEth
_deposit_frxEth(uint256)
Deposits frxETH into sfrxETH and then deposits the sfrxETH into the LSD vault.
Parameters
- frxETHAmount uint256: The amount of frxETH to deposit into sfrxETH.
deposit_lsd
deposit_lsd(address,uint256)
Deposits LSD tokens directly into the LSD vault.
Parameters
- lsdAddress address: The address of the LSD token to deposit.
- amount uint256: The amount of LSD tokens to deposit.