Skip to content
This repository was archived by the owner on Aug 3, 2025. It is now read-only.
This repository was archived by the owner on Aug 3, 2025. It is now read-only.

Brilliant Metal Liger - A user having too big shares may never claim #1049

@sherlock-admin2

Description

@sherlock-admin2

Brilliant Metal Liger

Medium

A user having too big shares may never claim

Summary

in Distributor.sol, when claim is called, the whole amount of user shares is taken into account, and if it is a big value (the user has been long in the position), the if (couponAmountToDistribute < shares) check will fail, until the needed coupon amount is distributed, which theoretically may not happen in the future.

Root Cause

https://github.com/sherlock-audit/2024-12-plaza-finance/blob/main/plaza-evm/src/Distributor.sol#L96

Internal Pre-conditions

No response

External Pre-conditions

No response

Attack Path

No response

Impact

The shares owner may get his funds frozen forever, also it enables the frontrun issue, griefing user claims

PoC

No response

Mitigation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions