b2630f6f21
- Users should be able to see the entered and promised amount, otherwise they might forget how much to send over. - This change also prepares for the future upgrade to support multiple coins.
27 lines
437 B
JavaScript
27 lines
437 B
JavaScript
declare type CoinSwapInfo = {
|
|
coin: string,
|
|
sendAddress: string,
|
|
sendAmount: number,
|
|
lbcAmount: number,
|
|
}
|
|
|
|
declare type CoinSwapState = {
|
|
coinSwaps: Array<CoinSwapInfo>
|
|
};
|
|
|
|
declare type CoinSwapAction = {
|
|
type: string,
|
|
data: {
|
|
coin: string,
|
|
sendAddress: string,
|
|
sendAmount: number,
|
|
lbcAmount: number,
|
|
},
|
|
};
|
|
|
|
declare type CoinSwapRemoveAction = {
|
|
type: string,
|
|
data: {
|
|
sendAddress: string,
|
|
},
|
|
};
|