pub fn validate_quorum(quorum: Decimal) -> Result<(), ContractError> {
    match validate_decimal_value(quorum, MAX_QUORUM) {
        Ok(_) => Ok(()),
        Err(_) => Err(ContractError::PollQuorumInvalidValue(
            MAX_QUORUM.to_string(),
        )),
    }
}
/**
 * Validates the quorum parameter used to instantiate the contract. It should be between [0,1].
 */
Validates the quorum parameter used to instantiate the contract. It should be between [0,1].
Validates the quorum parameter used to instantiate the contract . It should be between [ 0 1 ] .
pub fn validate_quorum(quorum: Decimal) -> Result<(), ContractError> {
    match validate_decimal_value(quorum, MAX_QUORUM) {
        Ok(_) => Ok(()),
        Err(_) => Err(ContractError::PollQuorumInvalidValue(
            MAX_QUORUM.to_string(),
        )),
    }
}
pub fn validate_quorum ( quorum : Decimal ) -> Result < ( ) , ContractError > { match validate_decimal_value ( quorum , MAX_QUORUM ) { Ok ( _ ) => Ok ( ( ) ) , Err ( _ ) => Err ( ContractError :: PollQuorumInvalidValue ( MAX_QUORUM . to_string ( ) , ) ) , } }
Validates the quorum parameter used to instantiate the contract.
Validates the quorum parameter used to instantiate the contract .
quorum
Decimal
quorum
Decimal