Trick or Treat

First Flight #27
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Valid

Not recommended to use `transfer` function to send funds

Summary

Description: The SpookySwap contract uses the transfer in the withdrawFees function to send funds to the owner. The transfer function is not recommended to use because it has a limited gas stipend. If the user has a fallback function that consumes more than the gas stipend, the user will not receive the funds.

Line of code: TrickOrTreat.sol#L148

Impact

The owner may not receive the funds.

Tools Used

  • Manual code analysis

Recommendations

Consider using the send or call function to send funds to the owner.

Updates

Appeal created

bube Lead Judge 10 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Use of `transfer` instead of `call`

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.