Skip to content

MerlinEgalite/universal-rewards-distributor

Repository files navigation

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

Releases

No releases published

Packages

No packages published