pub fn mft_total_supply(&self, token_id: String) -> U128 {
        match parse_token_id(token_id) {
            TokenOrPool::Pool(pool_id) => {
                let pool = self.pools.get(pool_id).expect("ERR_NO_POOL");
                U128(pool.share_total_balance())
            }
            TokenOrPool::Token(_token_id) => unimplemented!(),
        }
    }
/// Returns the total supply of the given token, if the token is one of the pools.
/// If token references external token - fails with unimplemented.
Returns the total supply of the given token, if the token is one of the pools.
If token references external token - fails with unimplemented.
Returns the total supply of the given token if the token is one of the pools . If token references external token - fails with unimplemented .
pub fn mft_total_supply(&self, token_id: String) -> U128 {
        match parse_token_id(token_id) {
            TokenOrPool::Pool(pool_id) => {
                let pool = self.pools.get(pool_id).expect("ERR_NO_POOL");
                U128(pool.share_total_balance())
            }
            TokenOrPool::Token(_token_id) => unimplemented!(),
        }
    }
pub fn mft_total_supply ( & self , token_id : String ) -> U128 { match parse_token_id ( token_id ) { TokenOrPool :: Pool ( pool_id ) => { let pool = self . pools . get ( pool_id ) . expect ( " " ) ; U128 ( pool . share_total_balance ( ) ) } TokenOrPool :: Token ( _token_id ) => unimplemented ! ( ) , } }
Returns the total supply of the given token, if the token is one of the pools.
Returns the total supply of the given token if the token is one of the pools .
&self
token_id
String
&self
token_id
String