Skip to main content

IMerkleDistributor

Git Source

Author: StakeWise

Defines the interface for the MerkleDistributor contract

Functions

distributeOneTime

Distribute tokens one time

function distributeOneTime(address token, uint256 amount, string calldata rewardsIpfsHash, bytes calldata extraData)
external;

Parameters

NameTypeDescription
tokenaddressThe address of the token
amountuint256The amount of tokens to distribute
rewardsIpfsHashstringThe IPFS hash of the rewards
extraDatabytesThe extra data for the distribution

setDistributor

Add or remove a distributor. Can only be called by the owner.

function setDistributor(address distributor, bool isEnabled) external;

Parameters

NameTypeDescription
distributoraddressThe address of the distributor
isEnabledboolThe status of the distributor, true for adding distributor, false for removing distributor

owner

Returns the address of the current owner.

function owner() external view returns (address);