Aura Finance contest - antonttc's results

Providing optimal incentives for VotingEscrow systems.

General Information

Platform: Code4rena

Start Date: 11/05/2022

Pot Size: $150,000 USDC

Total HM: 23

Participants: 93

Period: 14 days

Judge: LSDan

Total Solo HM: 18

Id: 123

League: ETH

Aura Finance

Findings Distribution

Researcher Performance

Rank: 91/93

Findings: 1

Award: $83.25

🌟 Selected for report: 0

🚀 Solo Findings: 0

Gas Optimization

  1. remove usage of .add, .sub, .mul and .div Since the contract is written with solidity 0.8, there's no need to use SafeMath library for basic operation + - * /.

  2. don't read user balance in AuraClaimZap if Option.UseAllWalletFunds is false. In contract AuraClaimZap, it currently read crvBalance and cvxBalance first and pass it into _claimExtras. But it's not really used if Option.UseAllWalletFund is false.

uint256 crvBalance = IERC20(crv).balanceOf(msg.sender);
uint256 cvxBalance = IERC20(cvx).balanceOf(msg.sender);

That being said, it would be better if the function don't read the balance if it won't be used in _claimExtras

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