QA Report #45
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
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
Relevant code sections:
Non-Critical
N-01: emit an event when changing the configuration of a contract
There are multiple configuration functions that don't emit an event.
Relevant code:
There're probably a couple more that I missed
N-02: AmmGauge doesn't use correct value for staking/unstaking events
The functions verify the number of tokens that were transferred. The value is used to keep track of the internal balances. But, it isn't used for the event. There you use the user specified
amount
parameter:Relevant code:
The text was updated successfully, but these errors were encountered: