Description
The Factory contract's create_pool function does not emit an event with the pool's admin address. The event includes asset, credit_rate, and other parameters, but not who created it.
Current behavior
env.events().publish(
(symbol_short!("factory"), symbol_short!("pool_crtd")),
(pool_id, pool_address, asset, credit_rate, global_multiplier, min_lock_period),
);
Expected behavior
Include the admin/creator:
env.events().publish(
(symbol_short!("factory"), symbol_short!("pool_crtd")),
(pool_id, pool_address, admin, asset, credit_rate, global_multiplier, min_lock_period),
);
Why this matters
Off-chain indexers need to know who created each pool for attribution.
Labels
enhancement, factory, good first issue
Description
The Factory contract's
create_poolfunction does not emit an event with the pool's admin address. The event includes asset, credit_rate, and other parameters, but not who created it.Current behavior
Expected behavior
Include the admin/creator:
Why this matters
Off-chain indexers need to know who created each pool for attribution.
Labels
enhancement, factory, good first issue