Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: medium

Function `Distributor._distribute()` does not support native tokens, such as ETH, which is unreasonable

Summary

Function Distributor._distribute() does not support native tokens, such as ETH, which is unreasonable.

Vulnerability Details

https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/Distributor.sol#L92

https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/Distributor.sol#L116

As we can the code, the function has not payable modifier

Impact

Each chain has its own native token, supporting these native tokens will be safer and more stable

Tools Used

manual

Recommendations

supporting these native tokens such adding payable and process msg.value

Support

FAQs

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