validate_proxy_mandate

Function validate_proxy_mandate 

Source
pub fn validate_proxy_mandate(
    existing_mandate_count: usize,
    existing_delegated_quotas: i32,
    new_voting_power: i32,
    total_building_quotas: i32,
    max_mandates: usize,
    max_quota_pct: f64,
) -> Result<(), ProxyValidationError>
Expand description

Validate proxy mandate constraints for Belgian AG (Art. 3.87 §6 CC)

Rules:

  1. A proxy holder cannot hold more than 3 mandates per AG
  2. A proxy holder cannot represent more than 10% of total building quotas

Returns Ok(()) if valid, or Err(ProxyValidationError) if constraint violated.