Skip to content

Commit

Permalink
fix(binance): fix binance integration
Browse files Browse the repository at this point in the history
  • Loading branch information
benmarten committed Jan 13, 2018
1 parent 943dfc9 commit b9953ab
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/model/integrations/BinanceWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ export default class BinanceWallet extends AbstractWallet {
* @prop data.free The amount.
*/
static _getBalanceForCredential(credential) {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
const binance = new Binance.BinanceRest(credential)
binance.account(function(err, account) {
if (err) {
return reject(err)
}
binance.account().then(function(account) {
let result = []
let balances = account.balances
for (let index in balances) {
Expand Down

0 comments on commit b9953ab

Please sign in to comment.