Submitted by kenta, also found by Dravee, hyh, Jujic, leastwood, and z3s
Use call instead of transfer to send ether. And return value must be checked if sending ether is successful or not.
Sending ether with the transfer is no longer recommended.
RewardDistributor.sol#L181
(bool result, ) = payable(_account).call{value: _amount}("");
require(result, Failed to send Ether);
kphed (Redacted Cartel) confirmed
Alex the Entreprenerd (judge) commented:
