Commit f204edde authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 2417e4ca
......@@ -20,7 +20,7 @@ run()
async function run()
{
let obj={sort:'profitPerMonth',alocatedReserve:2,alocatedReserveCompound:3}
let obj={sort:'profitPerMonth',alocatedReserve:3,alocatedReserveCompound:3}
let all=[]
for (let i=0;i<arr.length;i++)
all.push(add(arr[i]))
......
......@@ -52,13 +52,13 @@ async function run() {
for (let i = 0; i < arr2.length; i++) {
if (arr2[i].allocatedReserve < configs.alocatedReserve)
if (arr2[i].allocatedReserve < 3)
arr20Max.push(arr2[i])
}
for (let i = 0; i < arrCompound.length; i++) {
if (arrCompound[i].allocatedReserve < configs.alocatedReserveCompound)
if (arrCompound[i].allocatedReserve < 3)
arrReservCompound.push(arrCompound[i])
}
......
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