Skip to content

set_global_multiplier event does not include old value #250

Description

@ritaifeoluwa

Description

The FarmingPool contract's set_global_multiplier function does not emit an event with the old multiplier value. The event only includes the new value.

Current behavior

env.events().publish(
    (symbol_short!("boost"), symbol_short!("mult_set")),
    multiplier,
);

Expected behavior

Include old and new:

let old_multiplier = read_global_multiplier(&env);
// ...
env.events().publish(
    (symbol_short!("boost"), symbol_short!("mult_set")),
    (old_multiplier, multiplier),
);

Why this matters

Off-chain indexers need both values for audit trails and rollback scenarios.

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

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions