code-423n4 / 2022-06-canto-findings

0 stars 0 forks source link

QA Report #275

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

newblockchain QA report

Summary

Low

GovernorBravoDelegator cannot be used with GovernorBravoDelegate

Upon queue executed true in GovernorBravoDelegate

createPair lack of access control in BaseV1-core

Non-Critical

Window should be enforced to be greater than 0 in BaseV1-core

COMP token address for WETH hardcoded in Comptroller

Misleading comments in Proposal-Store.sol

symbol is optional for ERC20 in BaseV1-core

GalloDaSballo commented 2 years ago

GovernorBravoDelegator cannot be used with GovernorBravoDelegate

This is incorrect per how the "delegation" works, via fallback meaning, existing function in the Delegator work normally

Upon queue executed true in GovernorBravoDelegate

Valid Low and potentially higher -> TODO: Bump

createPair lack of access control in BaseV1-core

Disagree as pair creation in an AMM is crucial and permissionless creation is an acceptable design decision

Window should be enforced to be greater than 0 in BaseV1-core

NC as it's self DOS

COMP token address for WETH hardcoded in Comptroller

Hardcoded is cheaper

Misleading comments in Proposal-Store.sol

NC

symbol is optional for ERC20 in BaseV1-core

Nice find, potentially higher sev - Low for now

Your effort shows and I think you did a good job, I'd recommend providing objective feedback over personal story-telling "I had issues with he codebase".

Perhaps: "The codebase could use more thorough commenting" would work better

2L 2NC