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.
- Node.js v17.x or later
- NPM
- Clone the repository:
git clone https://github.com/dusk-network/ITN-staking.git
- Install dependencies:
npm install
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