Commit b110cab1 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent f1cc28fd
...@@ -3,7 +3,7 @@ let _ = require('lodash') ...@@ -3,7 +3,7 @@ let _ = require('lodash')
let sort = 'profitPerMonth' let sort = 'profitPerMonth'
let alocatedReserve = 2 let alocatedReserve = 3
let alocatedReserveCompound = 3 let alocatedReserveCompound = 3
run() run()
...@@ -34,11 +34,11 @@ async function run() { ...@@ -34,11 +34,11 @@ async function run() {
arr1000Compound.push(arrCompound[i]) arr1000Compound.push(arrCompound[i])
} }
for (let i = 0; i < arr3.length; i++) { for (let i = 0; i < arr2.length; i++) {
if (arr3[i].allocatedReserve < alocatedReserve) if (arr2[i].allocatedReserve < alocatedReserve)
arr20Max.push(arr3[i]) arr20Max.push(arr2[i])
} }
for (let i = 0; i < arrCompound.length; i++) { for (let i = 0; i < arrCompound.length; i++) {
...@@ -62,8 +62,8 @@ async function run() { ...@@ -62,8 +62,8 @@ async function run() {
// createfileADV('allocatedReservePerMonthUnder' + alocatedReserve, JSON.stringify(alocated100, null, 2)) // createfileADV('allocatedReservePerMonthUnder' + alocatedReserve, JSON.stringify(alocated100, null, 2))
// createfileADV('allocatedReserveCompoundUnder' + alocatedReserveCompound, JSON.stringify(allocated1000compond, null, 2)) // createfileADV('allocatedReserveCompoundUnder' + alocatedReserveCompound, JSON.stringify(allocated1000compond, null, 2))
createfileADV('allocatedReservePerMonthUnder' + alocatedReserve, JSON.stringify(arr20Max, null, 2)) createfileADV('allocatedReservePerMonthUnder' + alocatedReserve, JSON.stringify(alocated100, null, 2))
createfileADV('allocatedReserveCompoundUnder' + alocatedReserveCompound, JSON.stringify(arrReservCompound, null, 2)) createfileADV('allocatedReserveCompoundUnder' + alocatedReserveCompound, JSON.stringify(allocated1000compond, null, 2))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment