Function: deposit()
This function is used to mint milliETH (1,000 milliETH: 1 ETH ratio) equivalent to the deposited Ether value. milliETH is an ERC-20 token, where 1 milliETH is equivalent to 1/1000th of one Ether. It requires the deposited ETH to be divisible by 1e12 WEI for correct conversion.
Branches and code coverage
Intended branches
Mint milliETH equivalent successfully (1,000 milliETH: 1 ETH ratio).
Negative behavior
Revert if
msg.value
is lower than zero.Revert if
msg.value
% 1e12 wei is not equal to zero.