Z
Z
Zesty Market
Search…
RewardRecipient
Forked from Synthetix's RewardDistributor

Introduction

Abstract contract which allow for the receipt of reward tokens given out by the reward distributor.

Specification

Constructor

Takes in the owner address (this should be the zesty DAO address) and the reward distributor contract address
1
constructor(address owner_, address rewardsDistributor_)
2
Ownable(owner_)
Copied!

Getter Functions

rewardsDistributor

Returns the reward distributor contract address
1
function rewardsDistributor() external view virtual returns (address)
Copied!

State Changing Functions

notifyRewardAmount

Virtual empty function that can be used in inherited contracts
1
function notifyRewardAmount(uint256 rewards) external virtual
Copied!

setRewardsDistributor

Allows the owner to set the address of the reward distributor
1
function setRewardsDistributor(address rewardsDistributor_) external virtual onlyOwner
Copied!

onlyRewardsDistributor

Modifier to only allow the rewards distributor address to call
1
modifier onlyRewardsDistributor()
Copied!
Last modified 3mo ago