Skip to content

Dapp for rewarding NFTs to SimpleFi users based on accomplishments

Notifications You must be signed in to change notification settings

SimpleFi-finance/nft-rewarder

Folders and files

NameName
Last commit message
Last commit date
May 18, 2022
Jun 6, 2022
May 27, 2022
May 31, 2022
May 27, 2022
Mar 28, 2022
Mar 28, 2022
Mar 28, 2022
May 25, 2022
Mar 10, 2022
May 23, 2022
Mar 28, 2022
May 18, 2022
Mar 28, 2022
Mar 28, 2022
Mar 28, 2022
May 18, 2022

Repository files navigation

NFT rewarder system

Smart contract

  • ERC1155
    • Mapping from token ID to account balances:
      mapping(uint256 => mapping(address => uint256)) private _balances;
  • whitelisting integrated into contract
    • data structure which holds mapping between NFT <-> eligible user
    • can be updated in batches, to minimize gas cost
  • compatibility with Opensea
  • extensive testing - hardhat tests or Foundry
  • chain?

Reward eligibility

  • plug-in scripts checking the subgraphs (or some other data source) for specific criteria
    • script can be a cron-job
  • script's output should be account or list of accounts, stored to file/DB
  • result (account eligible for reward) should be checked manually
    • do the numbers make sense?
    • is account EOA or contract?
  • add NFT metadata and jpeg to IPFS and pin it (Pinata)
  • send TX to smart contract, making user whitelisted to mint his NFT

UI

  • create jpegs and metadata
  • integrate minting functionality into UI
    • alert to make user aware of NFT eligibility
    • minting button
  • display my reward NFTs
  • display page for all the rewarded NFTs - leaderboard, statistics, etc.

About

Dapp for rewarding NFTs to SimpleFi users based on accomplishments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published