Incorrect _splitProtocolFee logic leaves collection referrer with no collectionReferrerShare
Summary
Incorrect _splitProtocolFee logic sends collectionReferrerShare to the mint referrer instead of the collection referrer
Vulnerability Detail
In FeeManager.sol's _splitProtocolFee function the protocol routes fees to the referrer. However, if mint referrer and collection referrer are different users, the collection referrer loses their share of the fee.
durov
medium
Incorrect
_splitProtocolFee
logic leaves collection referrer with no collectionReferrerShareSummary
Incorrect
_splitProtocolFee
logic sendscollectionReferrerShare
to the mint referrer instead of the collection referrerVulnerability Detail
In
FeeManager.sol
's _splitProtocolFee function the protocol routes fees to the referrer. However, if mint referrer and collection referrer are different users, the collection referrer loses their share of the fee.Impact
Collection referrer doesn't get the share of the fees they are owed.
Code Snippet
https://github.com/sherlock-audit/2024-04-titles/blob/main/wallflower-contract-v2/src/fees/FeeManager.sol#L412-L441
Tool used
Manual Review
Recommendation
Change the
collectionReferrerShare
owner fromreferrer_
toreferrers[edition_]
Duplicate of #267