Skip to content

No whitelist count getter in FarmingPool #248

Description

@ritaifeoluwa

Description

The FarmingPool contract does not have a way to query the total number of whitelist entries. While individual whitelist status is queryable, there is no count.

Current behavior

No whitelist count getter.

Expected behavior

Maintain a running count:

fn whitelist_count(env: &Env) -> u32 {
    env.storage().instance().get(&DataKey::WhitelistCount).unwrap_or(0)
}

Increment on add, decrement on remove.

Why this matters

Admins need to know how many users are whitelisted for capacity planning.

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