TONS of work in shapeshift integration
This commit is contained in:
parent
8e2263cc9a
commit
b16a4215d2
14 changed files with 267 additions and 58 deletions
|
|
@ -22,13 +22,17 @@ angular.module('copayApp.directives').directive('shapeshiftCoinSelector', functi
|
|||
coin: scope.selectedCoin
|
||||
}
|
||||
|
||||
scope.$watch('coinAddress', function(newVal){
|
||||
scope.$watch('selectedCoin', function(newVal) {
|
||||
scope.getMarketData(newVal);
|
||||
});
|
||||
|
||||
scope.$watch('coinAddress', function(newVal) {
|
||||
if(scope.direction === 'in')
|
||||
coinTraderCtrl.returnAddress(newVal);
|
||||
else if(scope.direction === 'out')
|
||||
coinTraderCtrl.withdrawalAddress(newVal);
|
||||
});
|
||||
scope.$watch('amount', function(newVal){
|
||||
scope.$watch('amount', function(newVal) {
|
||||
coinTraderCtrl.amount(newVal)
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue