Popcorn contest - Inspectah'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: 124/169

Findings: 1

Award: $35.48

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Low and Non-Critical Issues

Function visibility can be set to view

Instances:

  • VaultController.sol

    L-242

    function _encodeAdapterData(DeploymentArgs memory adapterData, bytes memory baseAdapterData internal
        returns (bytes memory)

    L-667

    function _verifyCreatorOrOwner(address vault) internal returns (VaultMetadata memory metadata) {

Unused parameter

Instances

  • VaultController.sol

    L-390

    address vault argument is not used in the function.

    function _registerVault(address vault, VaultMetadata memory metadata) internal {

Unused local variable

function accruedPerformanceFee() public view returns (uint256) { uint256 highWaterMark_ = highWaterMark; uint256 shareValue = convertToAssets(1e18); uint256 performanceFee = fees.performance; return performanceFee > 0 && shareValue > highWaterMark ? performanceFee.mulDiv( (shareValue - highWaterMark) * totalSupply(), 1e36, Math.Rounding.Down ) : 0; }

State variable highWaterMark is copied to a local variable highWaterMark_but the function uses the state variable to read the value.

Success of delegateCall not checked

address(strategy).delegatecall(
                abi.encodeWithSignature("harvest()")
            );
        }
emit Harvested();

Delegate call returns 2 values. The first one being the success of the transaction and the second is the return data. Success of the delegate call is not checked before emitting the Harvested event

#0 - c4-judge

2023-02-28T14:57:43Z

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