prePO contest - remora's results

Gain exposure to pre-IPO companies & pre-token projects.

General Information

Platform: Code4rena

Start Date: 17/03/2022

Pot Size: $30,000 USDC

Total HM: 8

Participants: 43

Period: 3 days

Judge: gzeon

Total Solo HM: 5

Id: 100

League: ETH

prePO

Findings Distribution

Researcher Performance

Rank: 35/43

Findings: 1

Award: $51.88

🌟 Selected for report: 0

πŸš€ Solo Findings: 0

Awards

51.8842 USDC - $51.88

Labels

bug
QA (Quality Assurance)
disagree with severity

External Links

1. Unused parameters

In #DepositHook.sol hook() function takes 3 parameters ( _sender, _initialAmount, _finalAmount). Here _initialAmount is unused

2. Redundant casting

In #PrePOMarketFactory.sol createMarket() type casting of ILongShortToken(address(_longToken) looks redundant.

function createMarket( // .... ) external override onlyOwner nonReentrant { require(_validCollateral[_collateral], "Invalid collateral"); ( LongShortToken _longToken, LongShortToken _shortToken ) = _createPairTokens(_tokenNameSuffix, _tokenSymbolSuffix); bytes32 _salt = keccak256(abi.encodePacked(_longToken, _shortToken)); PrePOMarket _newMarket = new PrePOMarket{salt: _salt}( _governance, _collateral, ILongShortToken(address(_longToken)), //@audit redundant type casting ILongShortToken(address(_shortToken)), _floorLongPrice, _ceilingLongPrice, _floorValuation, _ceilingValuation, _mintingFee, _redemptionFee, _expiryTime, false ); .................... }

#0 - ramenforbreakfast

2022-03-24T02:55:41Z

Unused parameters: duplicate of #4. Redundant casting: good catch, but I would consider this a gas optimization, will request a recategorization.

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