Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA Report #252

Open
code423n4 opened this issue May 24, 2022 · 0 comments
Open

QA Report #252

code423n4 opened this issue May 24, 2022 · 0 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax

Comments

@code423n4
Copy link
Contributor

Missing inheritances

Details: Decoupling an interface from its implementation can cause technical drift and also unease 3rd party integrations with the code.

Slither detected the following missing inheritances:

  • AuraBalRewardPool (contracts/AuraBalRewardPool.sol:23-221) should inherit from IRewardStaking (contracts/AuraLocker.sol#12-14)
  • CrvDepositorWrapper (contracts/CrvDepositorWrapper.sol:104-142) should inherit from ICrvDepositor (contracts/AuraStakingProxy.sol#10-19)
  • DepositToken (convex-platform/contracts/contracts/DepositToken.sol:17-59) should inherit from ITokenMinter (convex-platform/contracts/contracts/Interfaces.sol#91-94)
  • ExtraRewardStashV3 (convex-platform/contracts/contracts/ExtraRewardStashV3.sol:25-222) should inherit from IStash (convex-platform/contracts/contracts/Interfaces.sol#78-83)
  • RewardHook (convex-platform/contracts/contracts/RewardHook.sol:18-51) should inherit from IRewardHook (convex-platform/contracts/contracts/interfaces/IRewardHook.sol#5-8)
  • StashFactoryV2 (convex-platform/contracts/contracts/StashFactoryV2.sol:16-104) should inherit from IStashFactory (convex-platform/contracts/contracts/Interfaces.sol#124-126)
  • TokenFactory (convex-platform/contracts/contracts/TokenFactory.sol:17-48) should inherit from ITokenFactory (convex-platform/contracts/contracts/Interfaces.sol#128-130)
  • cvxCrvToken (convex-platform/contracts/contracts/cCrv.sol:17-61) should inherit from ITokenMinter (convex-platform/contracts/contracts/Interfaces.sol#91-94)

Impact: Code QA

Missing event for critical operations

Details: Consider emitting an event for these critical parameter changes ****for off-chain monitoring:

  • setOwner in PoolManagerProxy.sol (L43)
  • setOperator in PoolManagerProxy.sol (L48)
  • setOwner in PoolManagerSecondaryProxy.sol (L58)
  • setOperator in PoolManagerSecondaryProxy.sol (L63)

Impact: Low risk

Name of contract is different from contract file name

Details: ArbitartorVault.sol should be ArbitratorVault.sol

Impact: Informational

Typos

  • ammount should be amount in L117 of CrvDepositor.sol
@code423n4 code423n4 added bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax labels May 24, 2022
code423n4 added a commit that referenced this issue May 24, 2022
@0xMaharishi 0xMaharishi added the duplicate This issue or pull request already exists label May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Projects
None yet
Development

No branches or pull requests

2 participants