Alchemix contest - throttle'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: 36/62

Findings: 2

Award: $269.18

🌟 Selected for report: 0

🚀 Solo Findings: 0

[N-01] Imports unused

Description

https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-full/AlchemistV2.sol#L14 https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-full/StakingPools.sol#L4 https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-full/libraries/pools/Pool.sol#L4

Remove imports

-----------------------------------------------------------------

https://github.com/code-423n4/2022-05-enso/blob/main/contracts/StrategyController.sol#L451-L461

[N-02] Consider reusing known smart contracts

Description

gALX.sol contract reinvents Ownable.sol

https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-full/gALCX.sol#L32

Use ownable

-----------------------------------------------------------------

[G-01] Imports unused

Description

https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-full/AlchemistV2.sol#L14 https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-full/StakingPools.sol#L4 https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-full/libraries/pools/Pool.sol#L4

unused imports can increase the deployment cost

Remove imports

-----------------------------------------------------------------

https://github.com/code-423n4/2022-05-enso/blob/main/contracts/StrategyController.sol#L451-L461

[G-02] Variable can be immutable

Description

whitelist variable can be changed to immutable to save gas cost

https://github.com/code-423n4/2022-05-alchemix/blob/main/contracts-full/WETHGateway.sol#L20

Change to immutable

-----------------------------------------------------------------

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