Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.03 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.03 KB

Universal Rewards Distributor

A universal rewards distributor written in Solidity. It allows the distribution of any reward token (different reward tokens are possible simultaneously) based on a Merkle tree distribution.

Based on Morpho's rewards distributor, itself based on Euler's rewards distributor.

Tests are using Murky, to generate Merkle trees in Solidity.

Usage

Merkle trees should be generated with Openzeppelin library.
It will ensure that trees will be secure for on-chain verification.

Installation

Download foundry:

curl -L https://foundry.paradigm.xyz | bash

Install it:

foundryup

Install dependencies:

git submodule update --init --recursive

Now you can run tests, using forge:

forge test