SkyStakingEngineClaimRewards
Description
Claim rewards earned by staking SKY in Staking Engine
Action ID
0xfdbd8ef6
SDK Action
const skyStakingEngineClaimRewardsAction = new dfs.actions.sky.SkyStakingEngineClaimRewardsAction(
stakingContract,
index,
farm,
to
);Action Type
STANDARD_ACTION
Input Parameters
/// @param stakingContract address of the staking engine contract
/// @param index index of the urn
/// @param farm address of farm to claim from
/// @param to address to which to send rewards
struct Params {
address stakingContract;
uint256 index;
address farm;
address to;
}Return Value
return bytes32(amountStaked);Events and Logs
emit ActionEvent("SkyStakingEngineClaimRewards", logData);
logger.logActionDirectEvent("SkyStakingEngineClaimRewards", logData);
bytes memory logData = abi.encode(params);Last updated
Was this helpful?