Skip to main content

OrderAdmission

Trait OrderAdmission 

Source
pub(crate) trait OrderAdmission {
    // Required methods
    fn validate_order(
        &self,
        order_info: &OrderInfo,
        wallet: &WalletAddress,
    ) -> Result<(), String>;
    fn check_order_restrictions(
        &self,
        order_info: &OrderInfo,
        wallet: &WalletAddress,
    ) -> Result<(), String>;
}
Expand description

Order admission checks before an order can enter matching.

Required Methods§

Source

fn validate_order( &self, order_info: &OrderInfo, wallet: &WalletAddress, ) -> Result<(), String>

Source

fn check_order_restrictions( &self, order_info: &OrderInfo, wallet: &WalletAddress, ) -> Result<(), String>

Implementors§