-
Notifications
You must be signed in to change notification settings - Fork 46
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
Provide the scaffolding for the automation of reward distribution #1141
Comments
weave/x/distribution/handler.go Lines 127 to 129 in 888eecd
To move funds, cash controller is needed. Cash controller is provided during weave/x/distribution/handler.go Line 98 in 888eecd
To configure an extension we use weave/cmd/bnsd/x/preregistration/configuration.go Lines 14 to 20 in 888eecd
Anything can have a weave address associated. In Lines 93 to 95 in 888eecd
There are no triggers in weave. Code should not react on generic events. This
Although it is possible, it is recommended to always trigger functionality with Is this description good enough? I think it has more value that writing a fake extension that does not work. |
We need a smart contract (on chain, in bnsd entity) that, when sent tokens, reads the
termdeposit
configuration, performs some calculations, and sends tokens based on the calculations.The flow of tokens to which this issue refers is
Reward Account
-> smart contract ->Depositors
. This issue is only about creating the scaffolding and is not intended for production deployment, so if we can just have the smart contract read thetermdeposit
configuration and distribute equal proportions of the sent tokens to the addresses with aCustomRate
in the config then we'll be all set.Goal:
Smart contract should be able to read configuration and distribute tokens that are sent to it.
The text was updated successfully, but these errors were encountered: