Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop users from transfering coins or cards before x games were played #79

Open
patrickwieth opened this issue Jul 8, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@patrickwieth
Copy link
Member

since we give new users airdrop etc. it should not be possible to transfer the credits, bpf and cards before 50 games were played, 10 games or so must be won...

@patrickwieth
Copy link
Member Author

this should be deactivated atm

@lxgr-linux
Copy link
Member

it should not be possible to transfer the credits, bpf

As of my knowledge now, this won't be possible, without manipulating the bank module it self, which may be only possible by maintaining our own fork of such module.

cards

This may be fairly easy

@lxgr-linux lxgr-linux added the enhancement New feature or request label Jul 8, 2022
@patrickwieth
Copy link
Member Author

maybe we can do this with feegrant:
https://docs.cosmos.network/main/modules/feegrant/01_concepts.html

@patrickwieth
Copy link
Member Author

patrickwieth commented Jul 24, 2022

I think the best way might be:

User creates wallet
sends msg to faucet, but faucet does not send coins but rather does a createuser tx (faucet has captcha)
createuser no longer mints bpf (in the testnet it does) but only credits
the credits are within the cardchain module and cannot be transferred to others
credits from the cardchain module can be transferred to the bank module, but only after a "this user is fair enough" tx has been sent by a server enabled acc

@patrickwieth
Copy link
Member Author

For this we thought about
feegrant and vesting module

Feegrant can only be a partial solution, if we somehow hold back the rewards and then use feegrant to still allow stuff to happen, a bit twisted and complicated...

Vesting module can be a good solution to funnel all rewards into the vesting, it has exactly the functionality we want, but the problem is vesting works over time and cannot be ended by some other actions from external modules, which is what we need...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants