TriggerRewardsUtils

GNSTriggerRewards facet internal library

initializeTriggerRewards

function initializeTriggerRewards(uint16 _timeoutBlocks) internal

Check ITriggerRewardsUtils interface for documentation

updateTriggerTimeoutBlocks

function updateTriggerTimeoutBlocks(uint16 _timeoutBlocks) internal

Check ITriggerRewardsUtils interface for documentation

distributeTriggerReward

function distributeTriggerReward(uint256 _rewardGns) internal

Check ITriggerRewardsUtils interface for documentation

claimPendingTriggerRewards

function claimPendingTriggerRewards(address _oracle) internal

Check ITriggerRewardsUtils interface for documentation

getTriggerTimeoutBlocks

function getTriggerTimeoutBlocks() internal view returns (uint16)

Check ITriggerRewardsUtils interface for documentation

hasActiveOrder

function hasActiveOrder(uint256 _orderBlock, uint256 _currentBlock) internal view returns (bool)

Check ITriggerRewardsUtils interface for documentation

getTriggerPendingRewardsGns

function getTriggerPendingRewardsGns(address _oracle) internal view returns (uint256)

Check ITriggerRewardsUtils interface for documentation

_getSlot

function _getSlot() internal pure returns (uint256)

Returns storage slot to use when fetching storage relevant to library

_getStorage

function _getStorage() internal pure returns (struct ITriggerRewards.TriggerRewardsStorage s)

Returns storage pointer for storage struct in diamond contract, at defined slot

_getMultiCollatDiamond

function _getMultiCollatDiamond() internal view returns (contract IGNSMultiCollatDiamond)

Returns current address as multi-collateral diamond interface to call other facets functions.