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 #183

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

QA Report #183

code423n4 opened this issue May 23, 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

Report

Low

L-01: use two-step process for critical address changes

Consider using a two-step process for transferring the ownership of a contract. While it costs a little more gas, it's safer than transferring directly.

Here's an example from the Compound Timelock contract: https://github.com/compound-finance/compound-protocol/blob/master/contracts/Timelock.sol#L45-L58

You're already using it in the BoosterOwner contract.

Relevant code sections:

L-02: set the inflation protection limitation in the Aura token contract directly

Currently, the Aura token has no limitations when it comes to minting. The address designated as minter can mint as many tokens as they want.

https://github.com/code-423n4/2022-05-aura/blob/main/contracts/Aura.sol#L128-L132

But, the protocol wants to limit minting for the first four years. That limit is set in the AuraMinter contract:
https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraMinter.sol#L31-L34

Instead, you should implement the limit in the Aura contract. The minter shouldn't be the one responsible to enforce the limitation. It's the token contract's job.
Then you can also just throw out the AuraMinter contract. It wouldn't really be necessary. As long as the limitation is implemented in the Aura contract, any address can be the minter.

Non-Critical

N-01: emit events when changing a contract's configuration

There are multiple configuration functions that don't emit an event.

Relevant code:

@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 23, 2022
code423n4 added a commit that referenced this issue May 23, 2022
@0xMaharishi 0xMaharishi added the duplicate This issue or pull request already exists label May 27, 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