This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
lemonmon - FootiumClub
contract not implementing EIP2981 which may result in a loss of royalties
#35
Labels
Non-Reward
This issue will not receive a payout
lemonmon
medium
FootiumClub
contract not implementing EIP2981 which may result in a loss of royaltiesSummary
When selling players, the protocol is collecting royalties, since
FootiumPlayer.sol
is implementing the EIP2981 standard. HoweverFootiumClub.sol
is not implementing the EIP2981 standard, thus no royalties are collected when sellingFootiumClub
nfts due to the missing EIP2981 implementation.Vulnerability Detail
The contract
FootiumClub
is lacking the implementation of the EIP2981 standard (line 14-20 in FootiumClub.sol), so no royalties can be collected when a club is sold/bought.EIP2981 summary:
Impact
No royalties are collected when
FootiumClub
nfts are bought/sold. As of this comment from the protocol designer, it is intended that the EIP2981 standard should be implemented into theFootiumClub
contract, so that on club sale, royalties will be paid back to the protocol.Code Snippet
https://github.com/sherlock-audit/2023-12-footium/blob/main/footium-eth-shareable/contracts/FootiumClub.sol#L14-L20
https://github.com/sherlock-audit/2023-12-footium/blob/main/footium-eth-shareable/contracts/FootiumPlayer.sol#L19
https://github.com/sherlock-audit/2023-12-footium/blob/main/footium-eth-shareable/contracts/FootiumPlayer.sol#L95-L100
Tool used
Manual Review
Recommendation
Consider implementing the EIP2981 standard into the
FootiumClub
contract similar to how it is implemented into theFootiumPlayer
contract in order to avoid a loss of royalties for the protocol.Duplicate of #68
The text was updated successfully, but these errors were encountered: