1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use primitives::{config::TokenInfo, Address, BigNum, Channel};

#[derive(Debug, Clone)]
pub struct Deposit {
    pub channel: Channel,
    pub token: TokenInfo,
    pub address: Address,
    /// In native token precision
    pub outpace_amount: BigNum,
}

impl PartialEq<primitives::Deposit<BigNum>> for Deposit {
    fn eq(&self, other: &primitives::Deposit<BigNum>) -> bool {
        self.outpace_amount == other.total
    }
}