This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
Bauchibred - Users can still bypass Player royalties on EIP2981 compatible markets by selling clubs as a whole #51
Labels
Non-Reward
This issue will not receive a payout
Bauchibred
medium
Users can still bypass Player royalties on EIP2981 compatible markets by selling clubs as a whole
Summary
Issue was originally submitted here being tagged as a "will fix" by protocol, but has not been fixed.
Vulnerability Detail
Take a look at FootiumPlayer.sol#L16-L23
As seen
FootiumPlayer
implements theEIP2981
standard which creates fees when buy/selling the players.Now take a look at FootiumClub.sol#L14-L20
Evidently,
FootiumClub
never implements this standard.Now from this comment by the protocol developers after the submission of the original issue, we can see that it's the right functionality for the club to also implement this EIP standard.
Impact
Refer to this report and it's duplicates on how this could be impactful, though the TLDR from the referenced report is that users can bypass fees on player sales by selling club instead, would be important to note that this affects market places too, cause the market places that support the ERC 2981, wont be able to pay royalties for any
FootiumClub
nfts.Code Snippet
FootiumClub.sol#L14-L20
Tool used
Manual Review
Recommendation
Implement EIP2981 on clubs as well.
Duplicate of #68
The text was updated successfully, but these errors were encountered: