Alchemix contest - Randyyy's results

A protocol for self-repaying loans with no liquidation risk.

General Information

Platform: Code4rena

Start Date: 05/05/2022

Pot Size: $125,000 DAI

Total HM: 17

Participants: 62

Period: 14 days

Judge: leastwood

Total Solo HM: 15

Id: 120

League: ETH

Alchemix

Findings Distribution

Researcher Performance

Rank: 61/62

Findings: 1

Award: $89.21

🌟 Selected for report: 0

🚀 Solo Findings: 0

  1. Save Gas use "!=" instead ">" ##Impact Better use "!=" instead ">"

##POC : https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-hardhat/TransmuterV2.sol#L417


  1. Unused Import

##Impact Delete unused import can save gas.

##POC https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-hardhat/TransmuterV2.sol#L8


  1. Not Defining some variable.

##Impact not defining "normaizedAmount" can reduce gas cost. ##POC https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-hardhat/TransmuterV2.sol#L251

##Navigation --> if (totalUnexchanged == 0) { totalBuffered += _normalizeUnderlyingTokensToDebt(amount); emit Exchange(msg.sender, amount); return; }


  1. Caching Array

##Impact Caching array lenght can save gas. ##POC https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-full/CrossChainCanonicalBase.sol#L141 ##Navgation uint len = bridgeTokensArray.length for (uint i = 0; i < len; i++){ ...

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