Skip to content
$1,000,000 in security audit grants are live now, Apply here →

Security review · November 2024

Amount Updates

for Magna

Guardian's review of Amount Updates for Magna, published November 2024. The report records 2 findings, including 2 low.

Published
Review window
November 15 to 17, 2024
Language
Solidity
Chains
Ethereum, Base, Optimism, Polygon, Arbitrum, BNB Chain
Sector
Infrastructure
  • 0 Critical
  • 0 High
  • 0 Medium
  • 2 Low
  • 0 Informational

1 resolved · 1 acknowledged

Findings 2

  1. L-01 Low Validate Schedule Ordering Warning Resolved
    Location
    Global

    Description

    To properly calculate the vested amount for Interval and Calendar schedules, the piece end times and unlock timestamps must be in ascending order respectively. If this was not the case, the user would not be able to withdraw the expected vested amount as the loops would break early.

    Recommendation

    Ensure there is off-chain validation that the Interval schedule’s pieces are sorted by end time in ascending order and that Calendar schedule’s unlock timestamps are sorted in ascending order.

  2. L-02 Low Immutable feeSetter Can Be Misleading Documentation Acknowledged
    Location
    MerkleVester.sol: 50

    Description

    feeSetter in MerkleVester is immutable and its value is assigned in the constructor. However the BENEFACTOR can grant/revoke roles from/to addresses because it has a DEFAULT_ADMIN_ROLE.

    Hence with role granting and revoking, in any point in time, the immutable feeSetter address may not have the ability to set the fee while some other addresses do.

    Recommendation

    Document this behaviour to prevent unexpected scenarios and wrong expectations.

More from Magna

All 9 reports
  1. Staking Updates

    23 findings 23 findings: 3 low, 20 informational
  2. Airdrop Updates

    2 findings 2 findings: 1 low, 1 informational
  3. Direct Transfer

    9 findings 9 findings: 1 medium, 1 low, 7 informational
  4. Merkle Vester

    13 findings 13 findings: 1 medium, 6 low, 6 informational

Put your code through the same review.

This review started with a conversation about scope. Tell us what you are building and we will plan yours with you.

Get a quote