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
Description
The FarmingPool's
lock_assetsfunction does not emit an event with the new total position amount. The event only includes the individual lock amount.Current behavior
Expected behavior
Include the total position:
Why this matters
Off-chain indexers need the total position for accurate TVL tracking.
Labels
enhancement, farming-pool, good first issue