Hello. I am trying to implement a function that will track how much an address has sold. If the amount surpasses a limit, the address cannot interact with the smart contract until 1000 blocks have passed.
Anyone know the most efficient way to implement this?
Thanks in advance.
@FreezyEx can you shine some light?
I don’t know the most efficient. You can try mapping the sales for each holder and update this value each time the holder make a sale. Then just set the lock for 1000 blocks and voilà
@Covalent You can try to share some code for feedback.
Can I contact directly anyone of you guys with the source code? Maybe you can help out by actually showing me? Thanks in advance.