fix(plugins): required methods exported
This commit is contained in:
parent
dca000abc3
commit
15ffe25fb6
1 changed files with 3 additions and 3 deletions
|
|
@ -167,7 +167,7 @@ exports.trade = function trade(rawTrade, deviceFingerprint) {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.fiatBalance = function fiatBalance(deviceFingerprint) {
|
exports.fiatBalance = function fiatBalance(deviceFingerprint) {
|
||||||
var rawRate = getDeviceRate().rates.ask;
|
var rawRate = exports.getDeviceRate().rates.ask;
|
||||||
var commision = cachedConfig.exchanges.settings.commision;
|
var commision = cachedConfig.exchanges.settings.commision;
|
||||||
|
|
||||||
if (!rawRate || !lastBalances) return null;
|
if (!rawRate || !lastBalances) return null;
|
||||||
|
|
@ -328,11 +328,11 @@ function getLastRate(currency) {
|
||||||
|
|
||||||
return lastRates[tmpCurrency];
|
return lastRates[tmpCurrency];
|
||||||
};
|
};
|
||||||
function getDeviceRate() {
|
exports.getDeviceRate = function getDeviceRate() {
|
||||||
return getLastRate(deviceCurrency);
|
return getLastRate(deviceCurrency);
|
||||||
};
|
};
|
||||||
|
|
||||||
function getBalance() {
|
exports.getBalance = function getBalance() {
|
||||||
if (!lastBalances) return null;
|
if (!lastBalances) return null;
|
||||||
|
|
||||||
return lastBalances.transferBalance;
|
return lastBalances.transferBalance;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue