struct DepositInfo {
uint256 amount;
uint256 depositTime;
}uint256 totalDepositsuint256 totalRewardsmapping(address => struct ETHPool.DepositInfo) depositsevent Deposit(address user, uint256 amount)event Withdraw(address user, uint256 amount)event RewardAdded(uint256 amount)error InvalidAmount()error InsufficientBalance()error TransferFailed()constructor() publicfunction deposit() external payableDeposit
function withdraw(uint256 amount) externalWithdraw
| Name | Type | Description |
|---|---|---|
| amount | uint256 | Amount |
function addReward() external payableAdd reward function, only callable by contract owner