suberra / funnel-contracts

Funnels are smart contracts that enforces renewable allowance as a proxy
MIT License
9 stars 0 forks source link

[Hacken 2022-11-25 Low #4] Style Guide Violation #39

Closed zhongfu closed 1 year ago

zhongfu commented 1 year ago

The project should follow the official code style guidelines. Inside each contract, library, or interface, use the following order:

Path

./src/Funnel.sol


Functions should be grouped according to their visibility and ordered:

Within a grouping, place the view and pure functions at the end. Some contracts are not formatted correctly.

Paths

./src/Funnel.sol ./src/FunnelFactory.sol


Solidity style guidance defines a naming convention that should be followed. Some state variables are not in the mixed case.

Path

./src/Funnel.sol: INITIAL_CHAIN_ID, INITIAL_DOMAIN_SEPARATOR


Recommendation

The official Solidity style guidelines should be followed.

Status

New