Skip to main content

IActivistPool

IActivistPool

Interface for the ActivistPool contract, which handles token custody, distribution, and era-based logic for activists.

canWithdraw

function canWithdraw(uint256 era) external view returns (bool)

Checks if a activist is eligible to withdraw rewards for a given era.

Parameters

NameTypeDescription
erauint256The era number to check eligibility for.

Return Values

NameTypeDescription
[0]booltrue if the activist can withdraw, false otherwise.

withdraw

function withdraw(address user, uint256 era) external

Allows a user to withdraw their tokens for a specific era.

Parameters

NameTypeDescription
useraddressThe address of the activist withdrawing tokens.
erauint256The era for which the withdrawal is being made.

removePoolLevels

function removePoolLevels(address user, bool denied) external

Removes specified levels from a user's pool configuration.

Parameters

NameTypeDescription
useraddressThe address of the activist.
deniedboolRemove level user status. If true, user is being denied.

addLevel

function addLevel(address user, uint256 levels, bytes32 eventId) external

Adds a new level to a user's pool configuration.

Parameters

NameTypeDescription
useraddressThe address of the activist.
levelsuint256The levels to be added.
eventIdbytes32

currentContractEra

function currentContractEra() external view returns (uint256)

Returns the current era of the contract.

Return Values

NameTypeDescription
[0]uint256The current era number.