2017-06-19 16:35:14 -07:00
|
|
|
import {
|
|
|
|
SWAP_DESTINATION_AMOUNT,
|
|
|
|
SWAP_DESTINATION_KIND,
|
|
|
|
SWAP_ORIGIN_AMOUNT,
|
|
|
|
SWAP_ORIGIN_KIND,
|
|
|
|
SWAP_UPDATE_BITY_RATES
|
|
|
|
} from './swapConstants';
|
2017-06-11 18:00:28 -07:00
|
|
|
|
2017-06-19 23:28:22 -07:00
|
|
|
export const originKindSwap = value => {
|
2017-06-18 22:39:07 -07:00
|
|
|
return {
|
|
|
|
type: SWAP_ORIGIN_KIND,
|
2017-06-19 16:47:11 -07:00
|
|
|
value
|
2017-06-18 22:39:07 -07:00
|
|
|
};
|
2017-06-11 18:00:28 -07:00
|
|
|
};
|
|
|
|
|
2017-06-19 23:28:22 -07:00
|
|
|
export const destinationKindSwap = value => {
|
2017-06-18 22:39:07 -07:00
|
|
|
return {
|
|
|
|
type: SWAP_DESTINATION_KIND,
|
2017-06-19 16:47:11 -07:00
|
|
|
value
|
2017-06-18 22:39:07 -07:00
|
|
|
};
|
2017-06-18 17:56:11 -07:00
|
|
|
};
|
2017-06-11 18:00:28 -07:00
|
|
|
|
2017-06-19 23:28:22 -07:00
|
|
|
export const originAmountSwap = value => {
|
2017-06-18 22:39:07 -07:00
|
|
|
return {
|
|
|
|
type: SWAP_ORIGIN_AMOUNT,
|
|
|
|
value
|
|
|
|
};
|
2017-06-11 18:00:28 -07:00
|
|
|
};
|
|
|
|
|
2017-06-19 23:28:22 -07:00
|
|
|
export const destinationAmountSwap = value => {
|
2017-06-18 22:39:07 -07:00
|
|
|
return {
|
|
|
|
type: SWAP_DESTINATION_AMOUNT,
|
|
|
|
value
|
|
|
|
};
|
2017-06-18 17:56:11 -07:00
|
|
|
};
|
2017-06-11 18:00:28 -07:00
|
|
|
|
2017-06-19 23:28:22 -07:00
|
|
|
export const updateBityRatesSwap = value => {
|
2017-06-18 22:39:07 -07:00
|
|
|
return {
|
|
|
|
type: SWAP_UPDATE_BITY_RATES,
|
|
|
|
value
|
|
|
|
};
|
2017-06-18 17:56:11 -07:00
|
|
|
};
|