fix: fundlist有效矿计算加入比率

This commit is contained in:
chaosBreaking
2019-09-28 11:25:26 +08:00
parent 4aa99a5f82
commit 04dcf78cdb

View File

@@ -1,5 +1,6 @@
'use strict';
const DayLong = 24 * 60 * 60 * 1000;
const Rate = 100;
/**
* 资产状态:
* 0 待确认,刚充值的
@@ -56,7 +57,7 @@ module.exports = {
let activeFund = 0;
for (let i = fundList.length; i >= 0; i--) {
const fundItem = fundList[i];
fundItem && (activeFund += fundItem.status === 1 ? +fundItem.amount : 0);
fundItem && (activeFund += fundItem.status === 1 ? +fundItem.amount * Rate : 0);
}
return activeFund;
}