Get the user balance and use it as the max for the range slider; say for example the user balance is 5000 then the range slider must not exceed users balance of 5000
know the selected plan and calculate based on that plan
The range slider should also get the minimum investment for the selected plan so that users don't go below it
Calculate the user's total rewards (dailyRewards * LockupTime) // Not sure if it's correct though, just do your magic
For now, this is static
Find the javascript code that handles this calculation in
assets\js\main.js
Line: 97
And the frontend of the calculator in
deposit.html
Line: 547
After the user selects his staking plan
The calculator should
For now, this is static Find the javascript code that handles this calculation in assets\js\main.js Line: 97 And the frontend of the calculator in deposit.html Line: 547