Skip to content

create_pool event does not include creator admin address #233

Description

@ritaifeoluwa

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions