From dbf5bbcc5af96f71bd1cdefa9c8c3b9a8dbde884 Mon Sep 17 00:00:00 2001 From: Hammad-Mubeen Date: Sat, 12 Feb 2022 17:42:27 +0500 Subject: [PATCH] listener addreserves and removereserves code changed --- routes/listenerroutes.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/routes/listenerroutes.js b/routes/listenerroutes.js index 01a55836..00329820 100644 --- a/routes/listenerroutes.js +++ b/routes/listenerroutes.js @@ -658,10 +658,10 @@ router.route("/geteventsdata").post(async function (req, res, next) { console.log(newData[4][0].data + " = " + newData[4][1].data); console.log(newData[5][0].data + " = " + newData[5][1].data); - var user = splitdata(newData[2][1].data); - var pair = splitdata(newData[3][1].data); - var reserve0 = newData[4][1].data; - var reserve1 = newData[5][1].data; + var user = splitdata(newData[5][1].data); + var pair = newData[2][1].data; + var reserve0 = newData[3][1].data; + var reserve1 = newData[4][1].data; console.log("user: ", user); console.log("pair: ", pair); @@ -698,10 +698,10 @@ router.route("/geteventsdata").post(async function (req, res, next) { console.log(newData[4][0].data + " = " + newData[4][1].data); console.log(newData[5][0].data + " = " + newData[5][1].data); - var user = splitdata(newData[2][1].data); - var pair = splitdata(newData[3][1].data); - var reserve0 = newData[4][1].data; - var reserve1 = newData[5][1].data; + var user = splitdata(newData[5][1].data); + var pair = newData[2][1].data; + var reserve0 = newData[3][1].data; + var reserve1 = newData[4][1].data; console.log("user: ", user); console.log("pair: ", pair);