Platform: Code4rena
Start Date: 13/12/2021
Pot Size: $75,000 USDC
Total HM: 11
Participants: 30
Period: 7 days
Judge: leastwood
Total Solo HM: 4
Id: 68
League: ETH
Rank: 4/30
Findings: 2
Award: $4,584.93
🌟 Selected for report: 1
🚀 Solo Findings: 0
🌟 Selected for report: Czar102
Also found by: csanuragjain
csanuragjain
Although chances are rare but user can be denied to exit pool
#0 - 0xleastwood
2022-01-23T05:23:33Z
Duplicate of #287
🌟 Selected for report: csanuragjain
csanuragjain
Gas overusage
a. In mint function require(_to != address(0), "INVALID_TO_ADDRESS") is not required as this is internal function and in each call _to cannot be 0 address
a. In removeCaller function callStorage.callers.length can be saved in local variable
a. In removeToken function bs.tokens.length can be saved in local variable b. In joinPool function _referral is never used c. In joinPool function, _amount.add(feeAmount) should be calculated once before using in loop d. In calcTokensForAmount function bs.tokens.length can be saved in local variable
a. In _joinTokenSingle function outputToken variable can be used instead of _joinTokenStruct.outputBasket