Skip to content

Commit 44258b4

Browse files
committed
Generate SEPA settlement instructions in mainnet
1 parent 501aa4c commit 44258b4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/components/modals/SellCryptoModal.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ import {
327327
init as initOasisApi,
328328
getHtlc,
329329
HtlcStatus,
330+
TransactionType as OasisTransactionType,
330331
} from '../../lib/OasisApi';
331332
import { setupSwap } from '../../hub';
332333
import { getElectrumClient } from '../../electrum';
@@ -725,9 +726,14 @@ export default defineComponent({
725726
value: swapSuggestion.to.amount,
726727
fee: swapSuggestion.to.fee,
727728
bankLabel: banks.value.sepa!.name,
728-
settlement: {
729-
type: 'mock',
730-
// TODO: Change type to 'sepa' and add `recipient: { name, iban }` for Mainnet
729+
settlement: Config.environment === ENV_MAIN ? {
730+
type: OasisTransactionType.SEPA,
731+
recipient: {
732+
name: bankAccounts.value.sepa!.accountName,
733+
iban: bankAccounts.value.sepa!.iban,
734+
},
735+
} : {
736+
type: OasisTransactionType.MOCK,
731737
},
732738
};
733739
}

0 commit comments

Comments
 (0)