Revenue Collector
The SuperMemeRevenueCollector
contract manages the distribution of revenue generated within the SuperMeme ecosystem. It handles ETH collections, revenue sharing, and jackpot distributions to NFT holders.
Core Functions
distributeRevenue()
Description: Distributes collected ETH revenue between the SuperMemePublicStaking
and SuperMemeTreasuryVesting
contracts based on their respective SPR token balances.
Requirements:
totalEtherCollected
must exceed0.1 ether
.
Behavior:
Calculates the revenue share for the treasury and public staking contracts.
Transfers the respective shares to each contract.
Resets
totalEtherCollected
to zero after distribution.
Returns: None.
collectNFTJackpot(uint256 _tokenId)
Description: Allows the owner of a SuperDuperNFT
token to collect the current NFT jackpot.
Parameters:
_tokenId
(uint256): The ID of the NFT.
Requirements:
Caller must own the specified NFT.
The NFT must not be locked.
Behavior:
Verifies NFT ownership and lock status.
Transfers the jackpot amount to the NFT owner.
Locks the NFT for the duration specified in
lockDuration
.Resets
nftShare
to zero.
Returns: None.
Last updated