Open code423n4 opened 2 years ago
pauliax
Conditions should be inclusive >= or <= :
require( baseTokenQty > _baseTokenQtyMin, "MathLib: INSUFFICIENT_BASE_TOKEN_QTY" ); require( quoteTokenQty > _quoteTokenQtyMin, "MathLib: INSUFFICIENT_QUOTE_TOKEN_QTY" ); require( _baseTokenQtyMin < maxBaseTokenQty, "MathLib: INSUFFICIENT_DECAY" ); require( _quoteTokenQtyMin < maxQuoteTokenQty, "MathLib: INSUFFICIENT_DECAY" );
Otherwise, these functions will fail when e.g. baseTokenQty = _baseTokenQtyMin when the end-user expects it to pass through.
yup, makes sense. Will modify.
Agree with the finding and severity
Handle
pauliax
Vulnerability details
Impact
Conditions should be inclusive >= or <= :
Otherwise, these functions will fail when e.g. baseTokenQty = _baseTokenQtyMin when the end-user expects it to pass through.