Incorrect comment in LibBasketStorage.sol
#79
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
Handle
pmerkleplant
Vulnerability details
Impact
The comment for the variable
BasketStorage.exitFeeBeneficiaryShare
states thatthe fee goes to the pool (see line 18 in
LibBasketStorage.sol
).However, the fee is not send to the pool itself, but rather to the
BasketStorage.feeBeneficiary
(see line 179 inBasketFacet.sol
) which can be set to an arbitrary address.Recommended Mitigation Steps
Change the comment to reflect that the fee goes to the
feeBeneficiary
, not the pool.The text was updated successfully, but these errors were encountered: