mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-29 12:25:10 +00:00
8bc1a348c7
* Add select with tokens. * Reformat state shape to allow multiple currency rates. Show those rates when selected. * Add loader
12 lines
339 B
TypeScript
12 lines
339 B
TypeScript
import * as interfaces from './actionTypes';
|
|
import { TypeKeys } from './constants';
|
|
import { fetchRates } from './actionPayloads';
|
|
|
|
export type TFetchCCRates = typeof fetchCCRates;
|
|
export function fetchCCRates(symbol: string): interfaces.FetchCCRates {
|
|
return {
|
|
type: TypeKeys.RATES_FETCH_CC,
|
|
payload: fetchRates(symbol)
|
|
};
|
|
}
|