dusk-network / ITN-staking

Unipool based staking contract for ITN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dusk ITN staking contract

An updated and simplified implementation of the Unipool staking contract. Instead of giving a claimable ERC20, this contract allows users to check how much they have accrued in rewards. These values will later be used during the bridging of ERC20 DUSK on mainnet, and function as an IOU.

An extensive test suite has been added to test the functioning of the contract.

Prerequisites

  • Node.js v17.x or later
  • NPM

Installation

  1. Clone the repository:
git clone https://github.com/dusk-network/ITN-staking.git
  1. Install dependencies:
npm install

Running Tests

Run the tests by executing:

npm test

Running a local node can be done by executing:

npm run node

The deploy script on the local node can be executed by running:

npm run deploy

About

Unipool based staking contract for ITN


Languages

Language:JavaScript 70.5%Language:Solidity 29.5%