Native token will be locked inside contract due to hardcoded gas limit will revert the ether transfer
Description
The current gas limit on MOST is hardcoded with 3500, which is too low and not enough for ether transfer.
According to this article, a standard ETH transfer requires a gas limit of 21,000 units of gas.
This will make ether transfer will fail.
File: Most.sol
23: /// @dev This amount of gas should be sufficient for ether transfers
24: /// and simple fallback function execution, yet still protecting against reentrancy attack.
25: uint256 constant GAS_LIMIT = 3500;
Recommendation
Consider to increase the gas limit to higher one like,
Github username: -- Twitter username: -- Submission hash (on-chain): 0x3a350bc753b7578e448473b17e71d88f3bada5748e65d2e5b8675be8cd499968 Severity: medium
Description: Impact
Native token will be locked inside contract due to hardcoded gas limit will revert the ether transfer
Description
The current gas limit on
MOST
is hardcoded with 3500, which is too low and not enough for ether transfer.According to this article, a standard ETH transfer requires a gas limit of 21,000 units of gas.
This will make ether transfer will fail.
Recommendation
Consider to increase the gas limit to higher one like,