Commit 5d8c17ba authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 59c40a1f
...@@ -83,7 +83,10 @@ async function run(name, directory, timestamp) { ...@@ -83,7 +83,10 @@ async function run(name, directory, timestamp) {
if (name === 'allocatedReservePerMonthUnder2' || name === 'allocatedReservePerMonthUnder3') { if (name === 'allocatedReservePerMonthUnder2' || name === 'allocatedReservePerMonthUnder3') {
let arr20Max = [] let arr20Max = []
for (let i = 0; i < last.length; i++) { for (let i = 0; i < last.length; i++) {
if (name === 'allocatedReservePerMonthUnder2')
alocatedReserve = 2
else
alocatedReserve = 3
if (last[i].allocatedReserve < alocatedReserve) if (last[i].allocatedReserve < alocatedReserve)
arr20Max.push(last[i]) arr20Max.push(last[i])
...@@ -95,7 +98,10 @@ async function run(name, directory, timestamp) { ...@@ -95,7 +98,10 @@ async function run(name, directory, timestamp) {
if (name === 'allocatedReserveCompoundUnder2' || name === 'allocatedReserveCompoundUnder3') { if (name === 'allocatedReserveCompoundUnder2' || name === 'allocatedReserveCompoundUnder3') {
let arr20Max = [] let arr20Max = []
for (let i = 0; i < last.length; i++) { for (let i = 0; i < last.length; i++) {
if (name === 'allocatedReserveCompoundUnder2')
alocatedReserve = 2
else
alocatedReserve = 3
if (last[i].allocatedReserve < alocatedReserve) if (last[i].allocatedReserve < alocatedReserve)
arr20Max.push(last[i]) arr20Max.push(last[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