Skip to content

lock_assets event does not include total position amount #242

Description

@ritaifeoluwa

Description

The FarmingPool's lock_assets function does not emit an event with the new total position amount. The event only includes the individual lock amount.

Current behavior

env.events().publish(
    (symbol_short!("pool"), symbol_short!("locked")),
    (user, amount),
);

Expected behavior

Include the total position:

env.events().publish(
    (symbol_short!("pool"), symbol_short!("locked")),
    (user, amount, position.amount),
);

Why this matters

Off-chain indexers need the total position for accurate TVL tracking.

Labels

enhancement, farming-pool, good first issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions