Skip to content

StakeSubject

StakeSubjectUpgradeable

_stakeController

contract IStakeController _stakeController

StakeControllerUpdated

event StakeControllerUpdated(address newstakeController)

StakeThresholdMaxLessOrEqualMin

error StakeThresholdMaxLessOrEqualMin()

StakedUnderMinimum

error StakedUnderMinimum(uint256 subject)

__StakeAwareUpgradeable_init

function __StakeAwareUpgradeable_init(address stakeController) internal

setStakeController

function setStakeController(address stakeController) public

Stake controller setter, restricted to DEFAULT_ADMIN_ROLE

getStakeController

function getStakeController() public view returns (contract IStakeController)

Getter for stakeController

_setStakeController

function _setStakeController(address stakeController) private

Internal setter for StakeController, emits StakeControllerUpdated

isStakedOverMin

function isStakedOverMin(uint256 subject) external view virtual returns (bool)

Returns true if subject amount of staked tokens is bigger or equal the minimum stake set for it. It's for contracts implementing StakeSubjectUpgradeable to decide what that means.

_isStakedOverMin

function _isStakedOverMin(uint256 subject) internal view virtual returns (bool)

__gap

uint256[4] __gap