Phoenix-Protocol-Group / phoenix-contracts

Source code of the smart contracts of the Phoenix DeFi hub DEX protocol
GNU General Public License v3.0
10 stars 6 forks source link

Stake: Update stake instead adding a new one if done within 24 hours #294

Closed gangov closed 4 months ago

gangov commented 5 months ago

Currently if a user stakes multiple times in a short period of time we just add multiple stakes in storage.

We should optimize this process by simply updating the last stake's timestamp and amount