You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.
sherlock-admin opened this issue
May 5, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
Some tokens does not have return values as booleans which would fail if its used with IERC20(address).transfer. To mitigate this safeTransfer should be used.
Vulnerability Detail
As stated in summary, due to some Non standard ERC20-s not returning boolean in transfers, it is best to use safeTransfer instead of transfer. In case of these tokens (i.e: USDT) received by the contract, tokens will be stucked forever since transfer will not go through
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
mstpr-brainbot
high
transfer can fail for non standard ERC20 tokens
Summary
Some tokens does not have return values as booleans which would fail if its used with IERC20(address).transfer. To mitigate this safeTransfer should be used.
Vulnerability Detail
As stated in summary, due to some Non standard ERC20-s not returning boolean in transfers, it is best to use safeTransfer instead of transfer. In case of these tokens (i.e: USDT) received by the contract, tokens will be stucked forever since transfer will not go through
Impact
Code Snippet
https://github.com/sherlock-audit/2023-04-footium/blob/main/footium-eth-shareable/contracts/FootiumEscrow.sol#L110
https://github.com/sherlock-audit/2023-04-footium/blob/main/footium-eth-shareable/contracts/FootiumPrizeDistributor.sol#L130
Tool used
Manual Review
Recommendation
Use safeTransfer instead of transfer
Duplicate of #14
The text was updated successfully, but these errors were encountered: