Beginner FriendlyFoundryDeFi
100 EXP
View results
Submission Details
Severity: low
Invalid

Contract is using deprecated send() function

Summary

The use of send in the unstake function may lead to failures when interacting with contracts that require more than 2300 gas for their fallback functions or when used with multisig wallets.

Vulnerability Details

The send function only forwards 2300 gas, which is often insufficient for contracts that have complex fallback functions or require more gas to process transactions. This can result in failed withdrawals if the recipient is a smart contract with receive function that exceeds this gas limit.

Impact

If the recipient address is a contract with a complex fallback function, the transaction may fail, causing user withdrawals to be unsuccessful. This can disrupt users' ability to retrieve their funds and might affect contracts that use more than 2300 gas, including some multisig wallets.

Tools Used

Manual Review

Recommendations

Use `call()` to prevent potential gas issues.

Updates

Lead Judging Commences

inallhonesty Lead Judge
10 months ago
inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

Usage of send is not the best thing

Appeal created

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

Usage of send is not the best thing

Support

FAQs

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