8335c9d2de
User should be able to retrieve the expected send/receive amount, otherwise they might be sending insufficient amounts. This change also includes the coin type, as we might be supporting other coins beyond BTC.
28 lines
438 B
JavaScript
28 lines
438 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,
|
|
},
|
|
};
|