Closed theref closed 2 years ago
We can include the beneficiary in the merkle tree which will avoid having to make a call to the staking contracts (which will cost a bunch of gas)
@manumonti in the contract when we verify the merkle proof, that line will be changing to:
bytes32 leaf = keccak256(abi.encodePacked(stakingProvider, cumulativeAmount, beneficiary));
require(_verifyAsm(merkleProof, expectedMerkleRoot, leaf), "CMD: Invalid proof");
so the script to generate the json will need to be changed too
Rewards should be keyed by stakingProvider: