ak1
medium
In BufferBinaryOptions.sol and BufferBinaryPool.sol contracts, transfer function
is used. Usage of this function is not recommended since it will fail when gas cost increased.
In BufferBinaryOptions.sol and BufferBinaryPool.sol contracts, transfer function
is used. Usage of this function is not recommended since it will fail when gas cost increased.
Transaction will fail and fund will stuck if gas cost of transaction is increased.
Manual Review
Use call() instead of transfer(), but be sure to respect the CEI pattern and/or add re-entrancy guards, as several hacks already happened in the past due to this recommendation not being fully understood.
More info on; https://swcregistry.io/docs/SWC-134