Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 708 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 708 Bytes

Rewards distribution contract

This contract will be responsible for distributing rewards on users who lock their tokens into it. The owner of the contract will set the rewards epochs and amount and in the end of each epoch the contract will distribute these rewards to the addresses that were lock on that epoch based on the amount of tokens they locked.

How to test:

Build:
foundry build

Run tests on ethereum fork:
foundry test --fork-url https://mainnet.infura.io/v3/<YOUR INFURA KEY>

How to generate npm package with contract abis and factories:

Install dependencies:
npm ci

Generate package:
npm run package:generate

Build package:
npm run package:build