According to the Solidity Style Guide consistency in the project's layout is very important. If all projects apply the style guides provided by solidity docs then understanding the projects and their code will be much easier for developers, and auditors.
Solidity docs;
A style guide is about consistency. Consistency with this style guide is important. Consistency within a project is more important. Consistency within one module or function is most important.
According to the solidity styles guide;
Inside each contract, library or interface, this order should be followed:
Type declarations
State variables
Events
Errors
Modifiers
Functions
And this should be the order of functions:
constructor
receive function (if exists)
fallback function (if exists)
external
public
internal
private
View and pure functions last
Apply the recommended layout structure in all mentioned contracts according to the solidity styles guide.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.