Lines of code
<https://github.com/code-423n4/2022-03-lifinance/blob/699c2305fcfb6fe8862b75b26d1d8a2f46a551e6/src/Facets/WithdrawFacet.sol#L20-L38>
Withdrawals and transferERC20 tokens are executed via transferERC20() and withdraw() functions. Since these functions calls with a fixed amount of gas, itβs not yet guaranteed to reach to the destination if the receiver is a smart contract.
#Proof of Concept
<https://github.com/code-423n4/2022-03-lifinance/blob/699c2305fcfb6fe8862b75b26d1d8a2f46a551e6/src/Facets/WithdrawFacet.sol#L20-L38>
Outlines are here : <https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/>
Static testing
Team can consider using call.value(amount)
The text was updated successfully, but these errors were encountered:
All reactions