//SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "./helpers.sol"; import {Basic} from "../../common/basic.sol"; contract EETHContract is Helpers, Basic { /** * @dev deposit ETH into Etherfi. * @notice stake Eth in Etherfi, users receive eETH tokens on a 1:1 basis representing their staked ETH. * @param amount The amount of ETH to deposit. (For max: `uint256(-1)`) * @param getId ID to retrieve amt. * @param setId ID stores the amount of ETH deposited. */ function deposit( uint256 amount, uint256 getId, uint256 setId ) public payable returns (string memory _eventName, bytes memory _eventParam) { uint256 _amount = getUint(getId, amount); _amount = _amount == type(uint256).max ? address(this).balance : _amount; etherfiPool.deposit{value: _amount}(); setUint(setId, _amount); _eventName = "LogDeposit(uint256,uint256,uint256)"; _eventParam = abi.encode(_amount, getId, setId); } } contract ConnectV2EETH is EETHContract { string public name = "EETH-v1.0"; }