-
Notifications
You must be signed in to change notification settings - Fork 8
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
Address internal review comments #74
Conversation
It was used only in owner_withdraw_token(reward_token) and we can fail the whole txn there if reward_token.balance_of turns out to be reverting. This is not blocking any loop from execution, since there's just one specific token argument.
if reward_rate == 0 { | ||
return Err(FarmError::InvalidFarmStartParams); | ||
} | ||
.ok_or(FarmError::ArithmeticError(MathError::DivByZero(3)))?; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we allow for zero reward rates for some tokens - i.e. there needs to exist at least one reward token with positive reward rate.
@krzysztofziobro PTAL one more time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good
Co-authored-by: Krzysztof Ziobro <[email protected]>
No description provided.