-
Notifications
You must be signed in to change notification settings - Fork 11
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
Farming policies are broken on testnet #664
Comments
I updated farming policy with ID 3 minimal uptime to 950. Now we need to investigate in the code why this is happening and why the default policy is not chosen. |
policies on testnet now:
Findings:
|
@LeeSmet the code right now does not really care if a policy is marked as default or not unless the policy has limits attached. I'm not sure why it's like that. Why did we add default policies in the first place again? |
So it seems it's documented here: " Indicates if the farming policy is a default one. Meaning it will be used when there is no Farming policy defined on the farm itself" Not sure why that is actually needed because when there is no farming policy attached to a farm, the code will pick the last one created with the right certification type (regardless of default or not) which makes sense to me |
from what I remember, a farm should get (one of) the default policies, UNLESS a farm has an explicit farming policy with limits) attached to it |
Quick reminder on farming policy:
See code here:
So regarding the code it is possible that policy Question is what do we go for? Stay as it is (last "best" policy) or change it (last "best" default policy)? |
This default concept is making this harder then it should be. I would just go for the (last "best" policy) and remove the notion of default policies. |
950
The text was updated successfully, but these errors were encountered: