mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-09 18:45:38 +00:00
33f5ede22a
* Refactor swaps: * Remove references to bity fallback, it aint happening * Consolidate sagas to single orchestrator function like other sagas * Grab rates once, dont continuously poll * tscheck * Re-instate the auto-fetching behavior. This time, only notify the first time. * Make CurrentRates responsible for redux actions. Fix up some typings. * Remove commented code. * Update snapshot.
9 lines
433 B
TypeScript
9 lines
433 B
TypeScript
import { AppState } from 'reducers';
|
|
|
|
const getSwap = (state: AppState) => state.swap;
|
|
export const getOrigin = (state: AppState) => getSwap(state).origin;
|
|
export const getPaymentAddress = (state: AppState) => getSwap(state).paymentAddress;
|
|
export const shouldDisplayLiteSend = (state: AppState) => getSwap(state).showLiteSend;
|
|
export const getHasNotifiedRatesFailure = (state: AppState) =>
|
|
getSwap(state).hasNotifiedRatesFailure;
|