Giter Club home page Giter Club logo

nft-badge-for-staking's Introduction

NFT Badge for staking


【Introduction of the NFT Badge for staking】

  • This repo is the smart contract for NFT Badge for staking.
    • This smart contract give a staker a NFT depends on staking period (= vesting period ) which a staker chose.
      • Staking period that a staker can choose are 3 options: 3 months, 6 months, 1 year)
      • Each NFT works as a proof of deposit and represents staking period (= vesting period ) which a staker chose.
      • A staker can not unstake until chosen-period. (When a staker try to unstake, smart contract check whether staking period is passed or not by a NFT which a staker has)

  • This smart contract has been deployed on Polygon (mumbai).
    • By deploying on Polygon, a staker can reduce cost for each transactions and get a higher speed transaction.

 


【Workflow】

  • Diagram of workflow 【Diagram】NFT Badge for staking

 


【Remarks】

  • Version
    • Solidity (Solc): v0.6.11
    • Truffle: v5.1.60
    • web3.js: v1.2.9
    • @openzeppelin/contracts: v3.4.0
    • ganache-cli: v6.9.1 (ganache-core: 2.10.2)

 



【Setup】

① Install modules

  • Install npm modules in the root directory
npm install

② Compile contracts

  • on Polygon (Matic) mumbai testnet
npm run compile:polygon_mumbai

【Script for demo】on Polygon (Matic) mumbai testnet


  • ③ In advance, Please check MATIC token balance of executor's (user's) wallet address .

  • ③ Execute script on Polygon (Matic) mumbai testnet (※ This script uses deployed-contract addresses on Polygon mumbai)
npm run script:StakingManager

【Deployed-contract addresses】

  • Smart contract addresses below are deployed on Polygon mumbai testnet:
    • LP Token: 0xCB9e421b1bF2f20E3EEbd3d16A8F44D50B7f56ad
    • Reward Token: 0xD68cE6B14d4E5f8ed28F6eb9b92A63f48FFDc0a7
    • StakingNFTBadgeFor3Months: 0x19bC3A74BB8de091fE4a76af093b031395cE17f2
    • StakingNFTBadgeFor6Months: 0xe5273E5D1bf82e60125968B6C9c3476A70E1FCaF
    • StakingNFTBadgeFor1Year: 0xBF3463C0def89691d765aB95d456402463310Ef3
    • StakingPool: 0xB8faeCcdF3Ce5Dc470720B212b7056113dbA386f
    • StakingManager: 0x404735352a45fc40fb1d10316e037219e1ADe25B
    • Fancet: 0xB786Ee2f65C6fec7568CA565Be9958713Ac24C18



【References】

nft-badge-for-staking's People

Contributors

jerry612 avatar

Stargazers

Celso Antonio Uliana Junior avatar Aadil Varsh avatar Selim Horri avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.