Mimo DeFi contest - Tadashi's results

Bridging the chasm between the DeFi world and the world of regulated financial institutions.

General Information

Platform: Code4rena

Start Date: 28/04/2022

Pot Size: $50,000 USDC

Total HM: 7

Participants: 43

Period: 5 days

Judge: gzeon

Total Solo HM: 2

Id: 115

League: ETH

Mimo DeFi

Findings Distribution

Researcher Performance

Rank: 43/43

Findings: 1

Award: $51.04

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

51.0404 USDC - $51.04

Labels

bug
G (Gas Optimization)

External Links

Split require to avoid using && opcode

Details: Apply the following changes to avoid using && and improve gas usage:

  • Change L35 of ABDKMath64x64.sol to

    require(x >= -0x8000000000000000);
    require(x <= 0x7FFFFFFFFFFFFFFF);
  • Change L83, L107, L120, L133, L207, L288 and L413 of ABDKMath64x64.sol to

    require(result >= MIN_64x64);
    require(result <= MAX_64x64);
  • Change L147-L150 of ABDKMath64x64.sol to

    require(y >= -0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
    require(y <= 0x1000000000000000000000000000000000000000000000000);
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