Sablier

Sablier
DeFiFoundry
53,440 USDC
View results
Submission Details
Severity: low
Invalid

Use safeMint in place of mint.

Summary

Use safeMint instead of mint in Solidity contracts for enhanced security. safeMint ensures tokens are only minted to valid, non-zero addresses, preventing accidental loss of tokens.

Vulnerability Details

In Solidity contracts, safeMint should be preferred over mint to improve security and error handling during token creation. Unlike the basic mint function, safeMint performs additional checks and validations to ensure tokens are only minted to valid, non-zero addresses. This prevents the accidental minting of tokens to the zero address, which would make them irretrievable and lead to a loss of value.

Impact

Loss of assets

Tools Used

Manual Review

Recommendations

Use safeMint

Updates

Lead Judging Commences

inallhonesty Lead Judge 12 months ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

Known - LightChaser

https://github.com/Cyfrin/2024-05-Sablier/issues/1

Support

FAQs

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