Sparkn

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

No way for owner to add/remove whitelisted token

Summary

Owner does not have a way to add/remove whitelisted token as it is only set in the constructor.

Vulnerability Details

Having a whitelist means that owner wants to manage usage of certain tokens. New stablecoins gets introduced all the time and old stablecoins can potentially be replaced. USDT/USDC may not always remain as the de facto stablecoins. For instance, the new paypal stablecoin is recently introduced. By not having any adding/removing whitelist token function, the protocol is handicapped to using only what is currently available.

Impact

Owner cannot add or remove any new tokens.

Tools Used

Manual Review

Recommendations

Consider implementing adding/removing function of whitelisted tokens in the factory contract.

Support

FAQs

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