Search…
latestProgramId()
This function is in the StandardRewards.sol contract.

Function latestProgramId()

StandardRewards.sol
1
function latestProgramId(Token pool) external view returns (uint256)
Copied!
This function is used to find the ID of the rewards program for a given token.

Function Arguments

Name
Type
Description
pool
Token
The token's address.

Return Variables

This function returns the ID of the latest rewards program for the given token.
Variable Type
Returns
uint256
The ID of the rewards program.
Example response:
uint256 : 1