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
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:
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