Skip to content

Commit

Permalink
Generate SEPA settlement instructions in mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Apr 15, 2021
1 parent 501aa4c commit 44258b4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/modals/SellCryptoModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ import {
init as initOasisApi,
getHtlc,
HtlcStatus,
TransactionType as OasisTransactionType,
} from '../../lib/OasisApi';
import { setupSwap } from '../../hub';
import { getElectrumClient } from '../../electrum';
Expand Down Expand Up @@ -725,9 +726,14 @@ export default defineComponent({
value: swapSuggestion.to.amount,
fee: swapSuggestion.to.fee,
bankLabel: banks.value.sepa!.name,
settlement: {
type: 'mock',
// TODO: Change type to 'sepa' and add `recipient: { name, iban }` for Mainnet
settlement: Config.environment === ENV_MAIN ? {
type: OasisTransactionType.SEPA,
recipient: {
name: bankAccounts.value.sepa!.accountName,
iban: bankAccounts.value.sepa!.iban,
},
} : {
type: OasisTransactionType.MOCK,
},
};
}
Expand Down

0 comments on commit 44258b4

Please sign in to comment.