I think the check in function setSlippage should be inclusive '<=' here:
require(_slippage < ONE_HUNDRED_PERCENT, "!_slippage");
When slippage is 100%, then _estimatedWETH or _estimatedYAXIS should be 0.
ONE_HUNDRED_PERCENT in this case means we don't care, and since we want the check to be used, we proactively don't want to be using a value that is equal to the max
Handle
pauliax
Vulnerability details
Impact
I think the check in function setSlippage should be inclusive '<=' here: require(_slippage < ONE_HUNDRED_PERCENT, "!_slippage"); When slippage is 100%, then _estimatedWETH or _estimatedYAXIS should be 0.
Recommended Mitigation Steps
require(_slippage <= ONE_HUNDRED_PERCENT, "!_slippage");