module_ntoken/constants/
state.rs

1//! the state of instructions
2
3/// State when user portfolio account created.
4pub const CREATE_PPU_STATE:u8 = 0;
5
6/// State ppu upon the termination of the deposit in the portfolio.
7pub const DEPOSIT_PORTFOLIO_STATE :u8= 1;
8
9/// State ppu upon the termination of the deposit into lp token. 
10pub const DEPOSIT_INTO_LP_STATE :u8= 2;
11
12/// State ppu upon the termination of the stake in splu LP token.
13pub const STAKE_PORTFOLIO_STATE :u8 = 3;
14
15/// State ppu when invest more step terminated.
16pub const INVEST_MORE_PORTFOLIO_STATE :u8= 8;
17
18/// State ppu when invest more into lp step terminated.
19pub const INVEST_MORE_INTO_LP_TOKEN_STATE :u8= 9;
20
21/// State ppu when stake more in splu lp step terminated.
22pub const INVEST_MORE_STAKE_STATE:u8=10;
23
24/// State ppu when Stop Staking. 
25pub const WITHDRAW_FROM_QUARRY_STATE :u8 = 4 ;
26
27/// State ppu when exit yield protocol.
28pub const WITHDRAW_FROM_SABER_STATE  :u8= 5 ;
29
30/// State ppu when exit from portfolio.
31pub const WITHDRAW_FROM_PORTFOLIO_STATE :u8 = 6;
32
33/// State ppu when closed user portfolio account.
34pub const CLOSE_PPU_STATE :u8= 7; 
35
36/// States of is-initialize of portfolio account.
37/// State of ppm while creating.
38pub const PPM_INITIALIZED: u8 = 1;
39
40/// State of ppm when complet adding assets.
41pub const PPM_COMPLETED: u8 = 2;
42
43/// State of ppm when owner complet all step of join.
44pub const PPM_JOINED: u8 = 3;
45
46
47/// NFT Token
48/// The user wasn't staked his nft token.
49pub const NFT_NOT_STAKED:u8 = 0;
50
51/// The user was staked his nft token.
52pub const NFT_STAKED:u8 = 1;
53