Stefan pfp
Stefan
@elmariachi.eth
panic: arithmetic underflow or overflow (0x11): ``` // SPDX-License-Identifier: MIT pragma solidity ^0.8; contract TestOverflow { function nopanic() public pure returns (uint256) { uint16 buyBps = 500; uint256 BPS = 10_000; return 1 ether + (buyBps * 1e18 / BPS); } } ```
0 reply
0 recast
0 reaction