15,000 USDC
View results
Submission Details
Severity: gas

[I-6] Function ordering does not follow the Solidity style guide

Summary

According to the Solidity style guide, functions should be laid out in the following order :constructor(), receive(), fallback(), external, public, internal, private, but the cases below do not follow this pattern

Vulnerability Details

Instances (2):

File: src/DSCEngine.sol
169: function redeemCollateralForDsc(address tokenCollateralAddress, uint256 amountCollateral, uint256 amountDscToBurn)
File: src/DecentralizedStableCoin.sol
57: function mint(address _to, uint256 _amount) external onlyOwner returns (bool) {

Impact

Tools Used

Recommendations

Support

FAQs

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