2017-06-19 23:35:14 +00:00
|
|
|
import {
|
|
|
|
SWAP_DESTINATION_AMOUNT,
|
|
|
|
SWAP_DESTINATION_KIND,
|
|
|
|
SWAP_ORIGIN_AMOUNT,
|
|
|
|
SWAP_ORIGIN_KIND,
|
|
|
|
SWAP_UPDATE_BITY_RATES
|
|
|
|
} from './swapConstants';
|
2017-06-12 01:00:28 +00:00
|
|
|
|
2017-06-19 23:47:11 +00:00
|
|
|
export const SWAP_ORIGIN_KIND_TO = value => {
|
2017-06-19 05:39:07 +00:00
|
|
|
return {
|
|
|
|
type: SWAP_ORIGIN_KIND,
|
2017-06-19 23:47:11 +00:00
|
|
|
value
|
2017-06-19 05:39:07 +00:00
|
|
|
};
|
2017-06-12 01:00:28 +00:00
|
|
|
};
|
|
|
|
|
2017-06-19 23:47:11 +00:00
|
|
|
export const SWAP_DESTINATION_KIND_TO = value => {
|
2017-06-19 05:39:07 +00:00
|
|
|
return {
|
|
|
|
type: SWAP_DESTINATION_KIND,
|
2017-06-19 23:47:11 +00:00
|
|
|
value
|
2017-06-19 05:39:07 +00:00
|
|
|
};
|
2017-06-19 00:56:11 +00:00
|
|
|
};
|
2017-06-12 01:00:28 +00:00
|
|
|
|
2017-06-19 05:39:07 +00:00
|
|
|
export const SWAP_ORIGIN_AMOUNT_TO = value => {
|
|
|
|
return {
|
|
|
|
type: SWAP_ORIGIN_AMOUNT,
|
|
|
|
value
|
|
|
|
};
|
2017-06-12 01:00:28 +00:00
|
|
|
};
|
|
|
|
|
2017-06-19 05:39:07 +00:00
|
|
|
export const SWAP_DESTINATION_AMOUNT_TO = value => {
|
|
|
|
return {
|
|
|
|
type: SWAP_DESTINATION_AMOUNT,
|
|
|
|
value
|
|
|
|
};
|
2017-06-19 00:56:11 +00:00
|
|
|
};
|
2017-06-12 01:00:28 +00:00
|
|
|
|
2017-06-19 05:39:07 +00:00
|
|
|
export const SWAP_UPDATE_BITY_RATES_TO = value => {
|
|
|
|
return {
|
|
|
|
type: SWAP_UPDATE_BITY_RATES,
|
|
|
|
value
|
|
|
|
};
|
2017-06-19 00:56:11 +00:00
|
|
|
};
|