Skip to main content

get_token

Function get_token 

Source
pub fn get_token<'a>(
    market: &'a MarketState,
    address: &Address,
) -> Result<&'a Token, AlgorithmError>
Expand description

The market’s Token for an address.

§Errors

AlgorithmError::DataNotFound when the market does not hold it.