-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from xenohunter/master
USD gateway and small fixes
- Loading branch information
Showing
8 changed files
with
80 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ | |
|
||
var DEFAULT_ERROR_MESSAGE = 'Connection is lost'; | ||
|
||
function WavesWalletDepositController ($scope, events, coinomatService, dialogService, notificationService, | ||
applicationContext, bitcoinUriService) { | ||
function WavesWalletDepositController($scope, events, coinomatService, dialogService, | ||
notificationService, applicationContext, bitcoinUriService, | ||
utilsService) { | ||
var ctrl = this; | ||
|
||
ctrl.btc = { | ||
|
@@ -14,7 +15,7 @@ | |
minimumAmount: 0.01 | ||
}; | ||
|
||
ctrl.eur = { | ||
ctrl.fiat = { | ||
verificationLink: 'https://go.idnow.de/coinomat/userdata/' + applicationContext.account.address, | ||
email: '[email protected]' | ||
}; | ||
|
@@ -34,10 +35,13 @@ | |
ctrl.assetBalance = eventData.assetBalance; | ||
ctrl.currency = ctrl.assetBalance.currency.displayName; | ||
|
||
if (ctrl.assetBalance.currency === Currency.BTC) { | ||
if (ctrl.assetBalance.currency === Currency.BTC && !utilsService.isTestnet()) { | ||
// Show the BTC deposit popup only on mainnet | ||
depositBTC(); | ||
} else if (ctrl.assetBalance.currency === Currency.EUR) { | ||
depositEUR(); | ||
} else if (ctrl.assetBalance.currency === Currency.USD) { | ||
depositUSD(); | ||
} else { | ||
$scope.home.featureUnderDevelopment(); | ||
} | ||
|
@@ -66,10 +70,15 @@ | |
function depositEUR() { | ||
dialogService.open('#deposit-eur-dialog'); | ||
} | ||
|
||
function depositUSD() { | ||
dialogService.open('#deposit-usd-dialog'); | ||
} | ||
} | ||
|
||
WavesWalletDepositController.$inject = ['$scope', 'wallet.events', 'coinomatService', 'dialogService', | ||
'notificationService', 'applicationContext', 'bitcoinUriService']; | ||
'notificationService', 'applicationContext', 'bitcoinUriService', | ||
'utilsService']; | ||
|
||
angular | ||
.module('app.wallet') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters