Function get_currency

Source
pub fn get_currency(code: &str) -> Currency
Expand description

Returns the currency either from the internal currency map or creates a default crypto. Returns the currency either from the internal currency map or creates a default crypto.

§Panics

Panics if the internal currency map lock is poisoned.