mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Change this._value to be an instance of IOU or XRP Value
This commit is contained in:
@@ -451,8 +451,7 @@ OrderBook.prototype.applyTransferRate = function(balance) {
|
||||
|
||||
const adjustedBalance = (new IOUValue(balance))
|
||||
.divide(new IOUValue(this._issuerTransferRate))
|
||||
.multiply(new IOUValue(OrderBook.DEFAULT_TRANSFER_RATE))
|
||||
._value.toString();
|
||||
.multiply(new IOUValue(OrderBook.DEFAULT_TRANSFER_RATE)).toString();
|
||||
|
||||
return adjustedBalance;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user