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

newFee can equals maxStreamingFeePercentage in StreamingFeeModule #224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gzliudan
Copy link
Contributor

In StreamingFeeModule, streamingFeePercentage can be equal to maxStreamingFeePercentage when initialize:

require(_settings.streamingFeePercentage <= _settings.maxStreamingFeePercentage, "Fee must be <= max.");

But when updateStreamingFee _newFee can't be equal to _maxStreamingFeePercentage:

require(_newFee < _maxStreamingFeePercentage(_setToken), "Fee must be less than max");

It seems that use <= to check is better.

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

Successfully merging this pull request may close these issues.

1 participant