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.
Merkle trees should be generated with Openzeppelin library.
It will ensure that trees will be secure for on-chain verification.
Download foundry:
curl -L https://foundry.paradigm.xyz | bashInstall it:
foundryupInstall dependencies:
git submodule update --init --recursiveNow you can run tests, using forge:
forge test