Commit 2417e4ca authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 13bf34b5
......@@ -50,10 +50,10 @@ async function run() {
arr1000Compound.push(arrCompound[i])
}
for (let i = 0; i < arr3.length; i++) {
for (let i = 0; i < arr2.length; i++) {
if (arr3[i].allocatedReserve < configs.alocatedReserve)
arr20Max.push(arr3[i])
if (arr2[i].allocatedReserve < configs.alocatedReserve)
arr20Max.push(arr2[i])
}
for (let i = 0; i < arrCompound.length; i++) {
......@@ -71,12 +71,12 @@ async function run() {
}
await fs.unlinkSync(directory + '/' + csvFile)
createfileADV('allDataSortedByProfit', JSON.stringify(arr2, null, 2))
// createfileADV('profitPerMonth1000', JSON.stringify(arr3, null, 2))
// createfileADV('percentage1000', JSON.stringify(arrResrv200, null, 2))
// createfileADV('compound1000', JSON.stringify(arr1000Compound, null, 2))
// createfileADV('allocatedReservePerMonthUnder' + configs.alocatedReserve, JSON.stringify(arr20Max, null, 2))
// createfileADV('allocatedReserveCompoundUnder' + configs.alocatedReserveCompound, JSON.stringify(arrReservCompound, null, 2))
// createfileADV('allDataSortedByProfit', JSON.stringify(arr2, null, 2))
createfileADV('profitPerMonth1000', JSON.stringify(arr3, null, 2))
createfileADV('percentage1000', JSON.stringify(arrResrv200, null, 2))
createfileADV('compound1000', JSON.stringify(arr1000Compound, null, 2))
createfileADV('allocatedReservePerMonthUnder', JSON.stringify(arr20Max, null, 2))
createfileADV('allocatedReserveCompoundUnder' , JSON.stringify(arrReservCompound, null, 2))
console.log('Done')
await makeStatus(directory, '0')
......
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