pub fn validate_poll_period(
    timelock_period: u64,
    expiration_period: u64,
) -> Result<(), ContractError> {
    if expiration_period < timelock_period {
        return Err(ContractError::InvalidPollPeriod {});
    }

    Ok(())
}
/**
 * Validates both the expiration_period and timelock_period so that the poll is valid,
 * i.e. it's not expired before it is executed.
 */
Validates both the expiration_period and timelock_period so that the poll is valid,
i.e. it's not expired before it is executed.
Validates both the expiration_period and timelock_period so that the poll is valid i . e . it ' s not expired before it is executed .
pub fn validate_poll_period(
    timelock_period: u64,
    expiration_period: u64,
) -> Result<(), ContractError> {
    if expiration_period < timelock_period {
        return Err(ContractError::InvalidPollPeriod {});
    }
    Ok(())
}
pub fn validate_poll_period ( timelock_period : u64 , expiration_period : u64 , ) -> Result < ( ) , ContractError > { if expiration_period < timelock_period { return Err ( ContractError :: InvalidPollPeriod { } ) ; } Ok ( ( ) ) }
Validates both the expiration_period and timelock_period so that the poll is valid,
 i.e.
Validates both the expiration_period and timelock_period so that the poll is valid i . e .
timelock_period
u64
expiration_period
u64
timelock_period
u64
expiration_period
u64