FortaStakingParameters
_fortaStaking
contract FortaStaking _fortaStaking
_stakeSubjectHandlers
mapping(uint8 => contract IStakeSubject) _stakeSubjectHandlers
FortaStakingChanged
event FortaStakingChanged(address staking)
version
string version
constructor
constructor(address forwarder) public
initialize
function initialize(address __manager, address __router, address __fortaStaking) public
Initializer method, access point to initialize inheritance tree.
Name | Type | Description |
---|---|---|
__manager | address | address of AccessManager. |
__router | address | address of Router. |
__fortaStaking | address | address of FortaStaking. |
setFortaStaking
function setFortaStaking(address newFortaStaking) external
Setter for FortaStaking implementation address.
_setFortaStaking
function _setFortaStaking(address newFortaStaking) internal
setStakeSubjectHandler
function setStakeSubjectHandler(uint8 subjectType, contract IStakeSubject subjectHandler) external
Sets stake subject handler stake for subject type.
maxStakeFor
function maxStakeFor(uint8 subjectType, uint256 subject) external view returns (uint256)
Get max stake for that `subjectType` and `subject`. If not set, will return 0.
minStakeFor
function minStakeFor(uint8 subjectType, uint256 subject) external view returns (uint256)
Get min stake for that `subjectType` and `subject`. If not set, will return 0.
isStakeActivatedFor
function isStakeActivatedFor(uint8 subjectType, uint256 subject) external view returns (bool)
Get if staking is activated for that `subjectType` and `subject`. If not set, will return false.
activeStakeFor
function activeStakeFor(uint8 subjectType, uint256 subject) external view returns (uint256)
Gets active stake (amount of staked tokens) on `subject` id for `subjectType`