I'm searching for an example Smart Contract snippet for staking and unstaking a token, for example how KARMA / POKER / DICE are working.
If I stake the token, I'm able to collect dividends. If I unstake, I don't get dividends anymore, and the unstaking takes - for example - 24 hours.
Any example contract for staking / unstaking a custom token?
Thanks!