> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gains.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# TriggerRewardsUtils

*GNSTriggerRewards facet internal library*

## initializeTriggerRewards

```solidity theme={null}
function initializeTriggerRewards(uint16 _timeoutBlocks) internal
```

*Check ITriggerRewardsUtils interface for documentation*

## updateTriggerTimeoutBlocks

```solidity theme={null}
function updateTriggerTimeoutBlocks(uint16 _timeoutBlocks) internal
```

*Check ITriggerRewardsUtils interface for documentation*

## distributeTriggerReward

```solidity theme={null}
function distributeTriggerReward(uint256 _rewardGns) internal
```

*Check ITriggerRewardsUtils interface for documentation*

## claimPendingTriggerRewards

```solidity theme={null}
function claimPendingTriggerRewards(address _oracle) internal
```

*Check ITriggerRewardsUtils interface for documentation*

## getTriggerTimeoutBlocks

```solidity theme={null}
function getTriggerTimeoutBlocks() internal view returns (uint16)
```

*Check ITriggerRewardsUtils interface for documentation*

## hasActiveOrder

```solidity theme={null}
function hasActiveOrder(uint256 _orderBlock, uint256 _currentBlock) internal view returns (bool)
```

*Check ITriggerRewardsUtils interface for documentation*

## getTriggerPendingRewardsGns

```solidity theme={null}
function getTriggerPendingRewardsGns(address _oracle) internal view returns (uint256)
```

*Check ITriggerRewardsUtils interface for documentation*

## \_getSlot

```solidity theme={null}
function _getSlot() internal pure returns (uint256)
```

*Returns storage slot to use when fetching storage relevant to library*

## \_getStorage

```solidity theme={null}
function _getStorage() internal pure returns (struct ITriggerRewards.TriggerRewardsStorage s)
```

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

## \_getMultiCollatDiamond

```solidity theme={null}
function _getMultiCollatDiamond() internal view returns (contract IGNSMultiCollatDiamond)
```

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