ui/viewmodel/notifications/exchange_rates_manager.cpp
/**
 *  Get an exchange rate for specific @currency.
 */
Get an exchange rate for specific @currency.
Get an exchange rate for specific @currency .
beam::Amount ExchangeRatesManager::getRate(ExchangeRate::Currency currency) const
{
    const auto it = m_rates.find(currency);
    return (it == std::cend(m_rates)) ? 0 : it->second;
}
beam :: Amount ExchangeRatesManager :: getRate ( ExchangeRate :: Currency currency ) const { const auto it = m_rates . find ( currency ) ; return ( it == std :: cend ( m_rates ) ) ? 0 : it -> second ; }
Get an exchange rate for specific @currency.
Get an exchange rate for specific @currency .