Fix fiatBalance
This commit is contained in:
parent
83a69f1c56
commit
dd80eecdfb
1 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ Trader.prototype.configure = function (config) {
|
|||
* return balance in satoshis
|
||||
*/
|
||||
Trader.prototype.fiatBalance = function (transferSatoshis, tradeFiat) {
|
||||
var rate = this.rate;
|
||||
var rate = this.rate(this.config.exchanges.settings.currency).rate;
|
||||
var balance = this.balance;
|
||||
var commission = this.config.exchanges.settings.commission;
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ Trader.prototype.fiatBalance = function (transferSatoshis, tradeFiat) {
|
|||
|
||||
// `lowBalanceMargin` is our safety net. It's a number > 1, and we divide
|
||||
// all our balances by it to provide a safety margin.
|
||||
var lowBalanceMargin = this.config.settings.lowBalanceMargin;
|
||||
var lowBalanceMargin = this.config.exchanges.settings.lowBalanceMargin;
|
||||
|
||||
// `balance.transferBalance` is the balance of our transfer account (the one
|
||||
// we use to send Bitcoins to clients). `transferSatoshis` is the number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue