yi 0.4.0

Yi Token by Crate Protocol: the standard for auto-compounding single token staking pools.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Macros

/// Generates the signer seeds for a [crate::YiToken].
#[macro_export]
macro_rules! yitoken_seeds {
    ($yitoken: expr) => {
        &[&[
            b"YiToken" as &[u8],
            &$yitoken.mint.to_bytes(),
            &[$yitoken.bump],
        ]]
    };
}