Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode Hackathon - create a dapp that allows multiple users to stake together on the harmony protocol (like pooltogether) where users can use the staking rewards to purchase an NFT #123

Open
11 tasks
Tracked by #127
victaphu opened this issue Sep 4, 2022 · 2 comments

Comments

@victaphu
Copy link

victaphu commented Sep 4, 2022

Description

Related to the Encode Hackathon, this bounty is for promotion of the Harmony Marketplace SDK

Using the Harmony Marketplace SDK and staking APIs allow users to stake some ONE tokens into a smart contract, get governance tokens, use those tokens to vote on the purchase of NFTs using the staked ONE rewards. Users can transfer ONE tokens or HRC20 tokens that can be swapped for ONE tokens. Withdrawals are in ONE tokens

Context

Much like pooltogether; this Dapp allows users to deposit ONE tokens into the smart contract to earn staking rewards. The rewards are accumulated and then used to purchase NFTs on any NFT platform (e.g. NFT Keys, MADNft). Depositors get governance tokens that can be used to vote for the NFTs to purchase; and depositors are randomly selected to get the NFT.

Use the SDK to interact with the smart contract and accept ONE/HRC20 tokens for deposit. The contract should swap all deposited tokens for ONE and give users equivalent governance tokens. Tokens can be redeemed for ONE tokens if user decides to deposit.

Stretch goal: lock up 10% of the value of ONE tokens on-chain to be staked for each purchase that is sent to the token lister in ONE year. If listed in other tokens, swap the tokens to ONE first

Acceptance Criteria

  • Demonstrate the use of the SDK to integrate with the blockchain and the HRC standards
  • Create a DAPP that collects deposit of user ONE tokens or HRC20 tokens
  • Create a smart contract that accepts ONE tokens or HRC20 tokens. For HRC20 tokens swap tokens to ONE
  • Smart contract will issue governance tokens 1 - 1 of deposited ONE tokens
  • Users can redeem ONE tokens using their governance tokens (after undelegation period)
  • Staking rewards are used to purchase NFT (optionally user can vote on which NFT to purchase based on governance token)
  • Random user is given the NFT (use VRF for randomness) and airdropped to their wallet
  • Demo video
  • Opensource (MIT / BSD) github
  • Github documentation describing the use of SDK to integrate the above
  • Working website that can be demonstrated

Reward

$2000 USD in ONE

@victaphu
Copy link
Author

victaphu commented Sep 6, 2022

@jacksteroo please review and confirm

@jacksteroo
Copy link

Confirmed.

Working website must be of production quality, with integration with the abovesaid NFT Marketplaces (NFTKey, MADnft, TofuNFT). Smart contract must be reviewed and audited by the Harmony, Encode and/or a security DAO like TruthSeekers. Demo video should be informational, think Coursera or Udemy, limit to 10 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants