Git Product home page Git Product logo

governance's Introduction

RBN ๐ŸŽ€

RBN is Ribbon's governance token. It is used to

  • Steward the development of the protocol & get community feedback on important parameters such as fee models
  • Align incentives between the Ribbon stakeholders (product creators, users, team), such as liquidity mining programs or grants
  • Unite all current and future Ribbon products under a single umbrella

Getting Started

Install node dependencies with yarn:

yarn install

Testing Contracts

To run tests, you will need to have access to an archive node. Create a .env file in the root with the variable:

TEST_URI=<archive node uri>

Run tests with hardhat:

npx hardhat test

Token Parameters

Deploying

Deploying Ribbon token to Mainnet (reference)

  • add mainnet url / accounts in hardhat.config.js
  • npx hardhat run scripts/deploy.js --network mainnet

Deploying Ribbon staking rewards to Mainnet (reference)

  • add mainnet url / accounts in hardhat.config.js
  • npx hardhat run scripts/deploy-stakingrewards.js --network mainnet

Deploying Merkle Airdrop to Mainnet (reference)

  • add mainnet url / accounts in hardhat.config.js
  • add owner address to params.js under AIRDROP_PARAMS object
  • add token address to params.js under AIRDROP_PARAMS object
  • add merkle root to params.js under AIRDROP_PARAMS object
    • node scripts/generate-recipients-json.js -b <BLOCKNUM> -f <FILEPATH>
      • ex: node scripts/generate-recipients-json.js -b 12480786 -f airdrop.json
      • This will generate the address -> balance mapping of all relevant users from hegic, opyn, charm, primitive, ribbon strangle, ribbon theta vault
      • NOTE: this will take a few minutes (~10m) the first time around, but afterwards will be quicker as block info is cached
    • npx ts-node scripts/generate-merkle-root.ts -i <FILEPATH> -n <NEW_FILEPATH> where FILEPATH is path from above step.
      • This will give you the merkle root itself for the params.js file and full details for the merkle proof is written to NEW_FILEPATH
    • To verify the merkle root from previous step is correct:
      • npx ts-node scripts/verify-merkle-root.ts -i <FILEPATH> where FILEPATH is NEW_FILEPATH from above step.
        • This will give you the merkle root itself for the params.js file and full details for the merkle proof is written to NEW_FILEPATH
  • add days until unlock for owner to params.js under AIRDROP_PARAMS object
  • npx hardhat run scripts/deploy-merkle-distributor.js --network mainnet

governance's People

Contributors

chudnov avatar kenchangh avatar 0xtomoyo avatar cjinghong 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.