I have something stuck in my mind with solidty, I would like to ask him, if you have any information, I would be very pleased if you inform me.
Now I am writing a contract that claims points daily, in this contract a user will claim points every 24 hours. I keep the points and users in the chain, then when the time I set is over, I want to see the points of all users in this contract.
Does it make sense to keep these points and users in the contract?
mapping(address => uint256) public points;
mapping(address => uint256) public lastClaimedAt;
I am mapping in this way, since all participants will be rewarded according to their points, I need to get their points and wallets when the system is finished.
For this, do I need to perform fonrtend with any database in terms of performance or can I access all users in the contract?