SingletonHedronManager

createTo

function createTo(uint256 settings, address owner) external pure returns (uint256 to)

combine a boolean from a settings value and the owner address to reduce the number of transfers / writes that occur during a loop

Parameters

Name Type Description
settings uint256 the settings to determine if a withdrawal should occur
owner address the owner of the underlying stake

Return Values

Name Type Description
to uint256 the uint256 representation of a single bit in settings and an owner address

_createTo

function _createTo(uint256 settings, address owner) internal pure returns (uint256 to)

mintHedronRewards

function mintHedronRewards(uint256[] stakeIds) external

mint rewards and transfer them to a provided address any combination of owners can be passed, however, it is most efficient to order the hsi address by owner

Parameters

Name Type Description
stakeIds uint256[] list of stake ids to mint

_mintHedron

function _mintHedron(uint256 index, uint256 stakeId) internal virtual returns (uint256 amount)