-
Notifications
You must be signed in to change notification settings - Fork 4
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
Upgrade reality.io bond from $0.1 to $10 #111
Upgrade reality.io bond from $0.1 to $10 #111
Conversation
@evangriffiths There is no need to modify parameters in the YAML files. Environment variables can be set up accordingly when deploying the service. Please note the distinction between the answer bond and the answer bounty in Realitio. (There is a refactor of the variable going on on #112) |
Thanks for the review @jmoreira-valory
Thanks for pointing that out. I'll update this PR if that is merged in first.
I wasn't sure which yaml file does what, so I just changed them all 😅. Are you saying I should keep only the changes to the skill.yaml files, or that this PR isn't required at all, and the deployed market-creator can just be redeployed with new env vars? While we're here, I'd appreciate it if you could explain why this is specified in 4 places 🙏. |
@evangriffiths Yes, there is no need to change the YAML files, PR #112 is enough. The reason why this constant is defined in 4 files is because the way the framework overrides dependencies: Skill market_creation_manager is where the actual code is executed. The chain of dependencies is as follows:
If at any point 1-4 the parameter is missing, the "overrideability" will not be propagated down the chain. Additionally, an overridable parameter on a service can define an env variable (in upper case). Thus, this is how it will work:
For this reason, it's not necessary to change the values on the YAML files, as they can be changed "in real time" when creating the deployment to be executed. Hopes this clarifies your question. |
Okay, I will close in that case. Yes that makes sense, thanks for the explanation. But it's not possible to have 'required args' at the aea-config.yaml or abci/skill.yaml level? i.e. for the value to be defined just at the service level, like:
|
No, that's not supported currently by the framework (although would be nice). It requires the parameter to be defined down the chain of dependencies. |
Once market-creator uses the new OFV mech (valory-xyz/mech#247), market resolution accuracy should go from 70% -> 90%. We hope to correct the remaining errors by incentivising Kleros community participation in resolutions by posting sufficiently large bonds (10 xDai)
Note: this will result in the deployed market-creator now losing bonds for incorrect resolutions. How this will be funded is being discussed separately 😃.