15,000 USDC
View results
Submission Details
Severity: gas

There is no function to remove collateral from the `s_collateralTokens` array

Summary

While deploying the DSCEngine.sol contract, the constructor pushes multiple tokens into the s_collateralTokens array, but there is currently no method to remove tokens from this array.

Vulnerability Details

See Summary, additionally in the case where the DSC protocol would like to stop supporting a particular collateral token, there is presently no method to do that.

Impact

Critical functionality being non-existent

Tools Used

Manual Audit

Recommend Mitigation

Introduce a removeCollateral() function

Support

FAQs

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