Commit 442b3da6 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 3024f43e
......@@ -56,12 +56,26 @@ async function run() {
arr20Max.push(arr2[i])
}
for (let i = 0; i < arrCompound.length; i++) {
if (arrCompound[i].allocatedReserve < 3)
arrReservCompound.push(arrCompound[i])
}
let arr20MaxNew=[]
let arrReservCompoundNew=[]
for (let i=0;i<1000;i++)
{
if (i<arr20Max.length)
arr20MaxNew.push(arr20Max[i])
if (i<arrReservCompound.length)
arrReservCompoundNew.push(arrReservCompound[i])
}
let timestamp = Date.now()
try {
......@@ -75,8 +89,8 @@ async function run() {
createfileADV('profitPerMonth1000', JSON.stringify(arr3, null, 2))
createfileADV('percentage1000', JSON.stringify(arrResrv200, null, 2))
createfileADV('compound1000', JSON.stringify(arr1000Compound, null, 2))
createfileADV('allocatedReservePerMonthUnder3', JSON.stringify(arr20Max, null, 2))
createfileADV('allocatedReserveCompoundUnder3' , JSON.stringify(arrReservCompound, null, 2))
createfileADV('allocatedReservePerMonthUnder3', JSON.stringify(arr20MaxNew, null, 2))
createfileADV('allocatedReserveCompoundUnder3' , JSON.stringify(arrReservCompoundNew, null, 2))
arr20Max=[]
for (let i = 0; i < arr2.length; i++) {
......@@ -90,9 +104,19 @@ async function run() {
if (arrCompound[i].allocatedReserve < 2)
arrReservCompound.push(arrCompound[i])
}
arr20MaxNew=[]
arrReservCompoundNew=[]
for (let i=0;i<1000;i++)
{
if (i<arr20Max.length)
arr20MaxNew.push(arr20Max[i])
createfileADV('allocatedReservePerMonthUnder2', JSON.stringify(arr20Max, null, 2))
createfileADV('allocatedReserveCompoundUnder2' , JSON.stringify(arrReservCompound, null, 2))
if (i<arrReservCompound.length)
arrReservCompoundNew.push(arrReservCompound[i])
}
createfileADV('allocatedReservePerMonthUnder2', JSON.stringify(arr20MaxNew, null, 2))
createfileADV('allocatedReserveCompoundUnder2' , JSON.stringify(arrReservCompoundNew, 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