Skip to main content

validate_usd_currency

Function validate_usd_currency 

Source
pub fn validate_usd_currency(token: Address) -> Result<()>
Expand description

Validates that the given token’s currency is "USD".

§Errors

  • InvalidToken — address does not have the TIP-20 prefix
  • InvalidCurrency — token currency is not "USD"