TONS of work in shapeshift integration

This commit is contained in:
Kadir Sekha 2017-12-12 17:15:39 +09:00
commit b16a4215d2
14 changed files with 267 additions and 58 deletions

View file

@ -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)
});
},