Platform: Code4rena
Start Date: 20/05/2021
Pot Size: $55,000 USDC
Total HM: 19
Participants: 8
Period: 7 days
Judge: cemozer
Total Solo HM: 11
Id: 11
League: ETH
Rank: 7/8
Findings: 2
Award: $1,441.12
🌟 Selected for report: 1
🚀 Solo Findings: 1
🌟 Selected for report: JMukesh
JMukesh
Istanbul hardfork increases the gas cost of the SLOAD operation and therefore breaks some existing smart contracts.
In file withdrawable.sol, contract uses transfer() to send eth from contract to EOA due which eth can get stuck.
reason behind this is, after Istanbul hardfork ,any smart contract that uses transfer() or send() is taking a hard dependency on gas costs by forwarding a fixed amount of gas: 2300. This forwards 2300 gas, which may not be enough if the recipient is a contract and gas costs change.
https://github.com/code-423n4/2021-05-fairside/blob/main/contracts/dependencies/Withdrawable.sol#L18
https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/
manual review
use call() to send eth
#0 - fairside-core
2021-05-30T13:31:09Z
Duplicate of #67