Popcorn contest - chandkommanaboyina's results

A multi-chain regenerative yield-optimizing protocol.

General Information

Platform: Code4rena

Start Date: 31/01/2023

Pot Size: $90,500 USDC

Total HM: 47

Participants: 169

Period: 7 days

Judge: LSDan

Total Solo HM: 9

Id: 211

League: ETH

Popcorn

Findings Distribution

Researcher Performance

Rank: 126/169

Findings: 1

Award: $35.48

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

LOW SEVERITY FINDINGS

1) MISCONFIGURED LOGIC/ REDUNDANT CODE IN VAULTREGISTRY.SOL

The function getSubmitter() in interface IVaultRegistry.sol returns address (https://github.com/code-423n4/2023-01-popcorn/blob/main/src/interfaces/vault/IVaultRegistry.sol#L27)

But in VaultRegistry.sol getSubmitter() returns the VaultMetadata (https://github.com/code-423n4/2023-01-popcorn/blob/main/src/vault/VaultRegistry.sol#L75-L77)

And also getSubmitter() function is same as the getVault() function. (https://github.com/code-423n4/2023-01-popcorn/blob/main/src/vault/VaultRegistry.sol#L59-L61)

RECOMMENDATION

Check the logic is correct in getSubmitter() function. If it is correct we don't require getSubmitter() function as we can use getVault() function so that we can reduce redundant code. If not it will create issues in frontend.

#0 - c4-judge

2023-02-28T14:55:26Z

dmvt marked the issue as grade-b

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter