For each user, they should have a property (history) that contains the last operations made by other users, when it occurred, qty changed, and change op (rm, add), for each of the coin types. This can be used to prevent a single user from spamming repeated operations or rollback the last change.
For each user, they should have a property (
history
) that contains the last operations made by other users, when it occurred, qty changed, and change op (rm
,add
), for each of the coin types. This can be used to prevent a single user from spamming repeated operations or rollback the last change.Ex: