1

Actually , I have a scenario that users need to stake his or her own certain tokens on a platform by using eosio contract without worrying the platform will take over the users's tokens. and some conditions, say 10 days later, would return back the tokens to its original owner. so, my question is :

How to freeze the user's tokens temporarily 

I tried to have 2 ideas for this scenario but i think they are not good ideas.

first, I could let user create a new account and then transfer his tokens to that new account. but the owner of this new account is a problem

second, I could let user stake equality eos by buying ram but how to sale it is a problem.

so, is there any a better idea for this ?

4
  • Are you trying to automate this so token holders can avoid getting their tokens auctioned off as stated in the Article XV of the current EOS constitution? Automated staking/unstaking sounds like automated (bot) voting and I think I read in the Introducing EOSIO Dawn 4.0 article on medium.com that even though automated voting by bots may be hard to detect, it would be possible to prove that people do not use smart contracts to auto-vote. I thought I share this as a caution. :) – Kabir Jun 21 '18 at 4:13
  • May be I can have a try following your idea, thanks for your help , but still one question , would the unstaked eos be released 3 days later? – Harry Ma Jun 22 '18 at 3:26
  • As far as I know unstaking always returns tokens after 3 days. – Kabir Jun 22 '18 at 4:17
  • That would be unacceptable for my scenario. and still thank you :) – Harry Ma Jun 22 '18 at 9:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.