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
Use safeTransfer/safeTransferFrom consistently instead of transfer/transferFrom
Summary
Use safeTransfer/safeTransferFrom consistently instead of transfer/transferFrom
Vulnerability Detail
Some tokens do not revert on failure, but instead return false (e.g. ZRX). https://github.com/d-xo/weird-erc20/#no-revert-on-failure
tranfser/transferfrom is directly used to send tokens in many places in the contract and the return value is not checked.
If the token send fails, it will cause a lot of serious problems.
For example,
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
Polaris_tow
medium
Use safeTransfer/safeTransferFrom consistently instead of transfer/transferFrom
Summary
Use safeTransfer/safeTransferFrom consistently instead of transfer/transferFrom
Vulnerability Detail
Some tokens do not revert on failure, but instead return false (e.g. ZRX).
https://github.com/d-xo/weird-erc20/#no-revert-on-failure
tranfser/transferfrom is directly used to send tokens in many places in the contract and the return value is not checked.
If the token send fails, it will cause a lot of serious problems.
For example,
Impact
If the token send fails, it will cause a lot of serious problems, the return value is not checked.
Code Snippet
https://github.com/sherlock-audit/2023-04-footium/blob/main/footium-eth-shareable/contracts/FootiumEscrow.sol#L105-L111
https://github.com/sherlock-audit/2023-04-footium/blob/main/footium-eth-shareable/contracts/FootiumPrizeDistributor.sol#L106-L134
Tool used
Manual Review
Recommendation
Consider using safeTransfer/safeTransferFrom consistently.
Duplicate of #86
The text was updated successfully, but these errors were encountered: