Current Folder

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 14:05:59 +01:00
1 parent 8b3382289b
commit cfcada880d
4379 files changed

No files matched your search

-39
View File
@@ -1,39 +0,0 @@
'use strict'
// ----------------------------------------------------------------------------
const log = require ('ololog')
, ansi = require ('ansicolor').nice
, chai = require ('chai')
, expect = chai.expect
, assert = chai.assert
, testTransaction = require ('./test.transaction.js')
/* ------------------------------------------------------------------------ */
module.exports = async (exchange, code) => {
if (exchange.has.fetchDeposits) {
// log ('fetching deposits...')
let transactions = await exchange.fetchDeposits (code)
log ('fetched', transactions.length.toString ().green, 'deposits, asserting each...')
assert (transactions instanceof Array)
let now = Date.now ()
for (let i = 0; i < transactions.length; i++) {
let transaction = transactions[i]
testTransaction (exchange, transaction, code, now)
}
// log (asTable (transactions))
} else {
log ('fetching deposits not supported')
}
}