Skip to content

FluidMerkleDistributor ​

Git Source

Inherits:FluidMerkleDistributorCore, FluidMerkleDistributorAdmin, FluidMerkleDistributorApprover, FluidMerkleDistributorProposer

Functions ​

constructor ​

solidity
constructor(address owner_, address proposer_, address approver_, address rewardToken_)
    validAddress(owner_)
    validAddress(proposer_)
    validAddress(approver_)
    validAddress(rewardToken_)
    Variables(owner_, rewardToken_);

hasPendingRoot ​

checks if there is a proposed root waiting to be approved

solidity
function hasPendingRoot() external view returns (bool);

currentMerkleCycle ​

merkle root data related to current cycle (proposed and approved).

solidity
function currentMerkleCycle() public view returns (MerkleCycle memory);

pendingMerkleCycle ​

merkle root data related to pending cycle (proposed but not yet approved).

solidity
function pendingMerkleCycle() public view returns (MerkleCycle memory);

encodeClaim ​

solidity
function encodeClaim(address recipient_, uint256 cumulativeAmount_, bytes32 positionId_, uint256 cycle_)
    public
    pure
    returns (bytes memory encoded_, bytes32 hash_);

claim ​

solidity
function claim(
    address recipient_,
    uint256 cumulativeAmount_,
    bytes32 positionId_,
    uint256 cycle_,
    bytes32[] calldata merkleProof_
) external whenNotPaused;