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

Open
code423n4 opened this issue Feb 17, 2022 · 3 comments
Open

QA Report #117

code423n4 opened this issue Feb 17, 2022 · 3 comments
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 sponsor confirmed Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")

Comments

@code423n4
Copy link
Contributor

Missing Doc Comments in function getBrige()

The parameter round is missing in doc comments for the function getBrige() at TokemakBribe.sol

Also consider add doc comments at
https://github.com/code-423n4/2022-02-redacted-cartel/blob/main/contracts/ThecosomataETH.sol

Doc comments will increase the readability of the code and will avoid other more high risk issues. For example in this contest I sent a medium severity issue related to the same parameter.

Poc

https://github.com/code-423n4/2022-02-redacted-cartel/blob/92c4d5810df7b9de15eae55dc7641c8b36cd799d/contracts/TokemakBribe.sol#L188-L204

    @notice Get bribe from BribeVault
    @param  proposal            address  Proposal
    @param  token               address  Token   @audit-issue   need to add round parameter and all thecosomata eth
    @return bribeToken          address  Token address
    @return bribeAmount         address  Token address
 */
function getBribe(
    address proposal,
    uint256 round,
    address token
) external view returns (address bribeToken, uint256 bribeAmount) {
    return
        IBribeVault(bribeVault).getBribe(
            generateBribeVaultIdentifier(proposal, round, token)
        );
}

Similar issues

code-423n4/2021-09-swivel-findings#71

@code423n4 code423n4 added QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax bug Something isn't working labels Feb 17, 2022
code423n4 added a commit that referenced this issue Feb 17, 2022
@kphed kphed added the sponsor confirmed Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity") label Feb 18, 2022
@GalloDaSballo
Copy link
Collaborator

Finding is valid and well documented, but report quantity pales in comparison to some other submissions

@GalloDaSballo
Copy link
Collaborator

2/10

@GalloDaSballo
Copy link
Collaborator

GalloDaSballo commented Mar 24, 2022

With the added #104 am bumping to 3/10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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 sponsor confirmed Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Projects
None yet
Development

No branches or pull requests

3 participants