claimRewards()

This function is in the StandardRewards.sol contract.

Function claimRewards()

StandardRewards.sol
function claimRewards(uint256[] calldata ids) external uniqueArray(ids) nonReentrant returns (uint256)

This function is used to claim pending rewards from one or more standard rewards programs.

The function accepts a list of reward program IDs as arguments, and returns the number of rewards claimed.

Function Arguments

NameTypeDescription

ids

uint256[]

This is an array of reward program IDs.

Return Variables

Variable TypeReturns

uint256

The amount of rewards claimed.

Last updated