I'm not sure if this is a legit concern but I would still want to know. If anyone can enlighten me. I know that the address.transfer()
method is mostly viewed as the safest way to send eth within the contract so this is what I mostly use that is why I want to know if it can prevent an underflow or an overflow even though it is highly unlikely that someone can acquire that much ether [Please refer to the note as well] to cause an overflow.
Note that there is not enough ETH in existence to cause an overflow, the total amount of wei fits well within 256 bits
even though it is highly unlikely that someone can acquire that much ether to cause an overflow.
Thank you