Open crypto-x-soldier opened 3 years ago
The 'Join Pool' also has same issue where it checks the date/time by taking it from client's PC. So when PC's date time is updated to past date the expired pools are shown as available to join
This is very nice. the contract working on the blockchain timestamp, so it will not do the action for real.
In the createpool video I have shown the transaction hash 'Success' in explorer. Pls check.
Also it is advisable to have the system date time checks on the server side or atleast you could use a JS client side library which in turn talks to server to get the date/time and use that for validation. Depending on client's device's date/time is risky and it might lead to unforeseen hacks in the future
the 'Success' is for the approved spending, not for the real action.
we will add a message that tells that the local time is wrong, (if it wrong)
very nice point!
Describe the bug I am able to set Pool joining date/time to past date by modifying my PC's current date/time. And I was able to approve the transaction in Metamask for Spend Limit
To Reproduce Steps to reproduce the behavior:
Expected behavior In the '2.Swap Rules' section -> Error to be displayed as 'Past Date time ' before navigating to '3.Confirm' section.
Screenshots
https://user-images.githubusercontent.com/77062578/103962575-4d070680-517d-11eb-883e-ee0134e9545c.mp4
Desktop (please complete the following information):
Additional context
Wallet address 0xdD5F5feE4Db473ACa5A0b52EE459Abd35D098BEE