Open gzliudan opened 2 years ago
In StreamingFeeModule, streamingFeePercentage can be equal to maxStreamingFeePercentage when initialize:
streamingFeePercentage
maxStreamingFeePercentage
require(_settings.streamingFeePercentage <= _settings.maxStreamingFeePercentage, "Fee must be <= max.");
But when updateStreamingFee _newFee can't be equal to _maxStreamingFeePercentage:
_newFee
_maxStreamingFeePercentage
require(_newFee < _maxStreamingFeePercentage(_setToken), "Fee must be less than max");
It seems that use <= to check is better.
<=
In StreamingFeeModule,
streamingFeePercentage
can be equal tomaxStreamingFeePercentage
when initialize:But when updateStreamingFee
_newFee
can't be equal to_maxStreamingFeePercentage
:It seems that use
<=
to check is better.