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 exceed 0.1 ether.

Behavior:

  1. Calculates the revenue share for the treasury and public staking contracts.

  2. Transfers the respective shares to each contract.

  3. 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:

  1. Verifies NFT ownership and lock status.

  2. Transfers the jackpot amount to the NFT owner.

  3. Locks the NFT for the duration specified in lockDuration.

  4. Resets nftShare to zero.

Returns: None.


Last updated