Platform: Code4rena
Start Date: 20/01/2022
Pot Size: $50,000 USDC
Total HM: 3
Participants: 35
Period: 7 days
Judge: GalloDaSballo
Total Solo HM: 2
Id: 77
League: ETH
Rank: 24/35
Findings: 1
Award: $13.98
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: wuwe1
Also found by: Ruhum, WatchPug, csanuragjain, gzeon
13.9797 USDC - $13.98
csanuragjain
Gas savings
Navigate to contract https://github.com/code-423n4/2022-01-elasticswap/blob/main/elasticswap/src/contracts/Exchange.sol
Observe that below condition is not required in swapBaseTokenForQuoteToken function as this is already checked in calculateQuoteTokenQty function of MathLib
require( _baseTokenQty > 0 && _minQuoteTokenQty > 0, "Exchange: INSUFFICIENT_TOKEN_QTY");
require( _quoteTokenQty > 0 && _minBaseTokenQty > 0, "Exchange: INSUFFICIENT_TOKEN_QTY" );
#0 - GalloDaSballo
2022-02-04T22:48:33Z
Duplicate of #173