buyback(uint256) :
undefined
- minOut: Minimum amount of tokens received from the buyback. Used for slippage protection
notifyRewardAmount(address,uint256) :
undefined
- reward: The amount of rewards to distrubute over the rewardsDuration
- rewardsToken: The reward token to notify
owner() :
Returns the address of the current owner.
recoverERC20(address,uint256) :
undefined
- tokenAddress: The ERC20 token to recover
- tokenAmount: The amount to recover
recoverETH(uint256) :
undefined
- amount: The amount to recover
renounceOwnership() :
Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
setBuybackProportion(uint256) :
undefined
- _buybackProportion: The new buybackProportion
setRewardsDuration(address,uint256) :
undefined
- rewardsDuration: The new rewards duration
- rewardsToken: The reward token to notify
setStakingRewards(address) :
undefined
- _stakingRewards: The new stakingRewards
transferOwnership(address) :
Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.
setBuybackProportion(uint256) :
This function sets the proportion of tokens to be bought back and burned. It checks if the input is valid and updates the variable.
(autogenerated documentation)
setStakingRewards(address) :
This function sets the staking rewards contract address and emits an event. Only the contract owner can call it.
(autogenerated documentation)
runEpoch() :
This function selects the reward token with the most votes from a list and sets it as the winning reward token.
(autogenerated documentation)
buyback(uint256) :
This function buys back tokens using ETH held in the contract, ensuring a minimum output amount.
(autogenerated documentation)
buybackSpecificETH(uint256,uint256) :
This function buys back a specific amount of ETH, swaps it for a winning reward token, and notifies staking rewards contract for distribution.
(autogenerated documentation)
notifyRewardAmount(address,uint256) :
This function approves a reward token and notifies the staking contract of the reward amount to be distributed to stakers.
(autogenerated documentation)
setRewardsDuration(address,uint256) :
This function sets the duration of rewards for a specific token in a staking contract owned by the caller.
(autogenerated documentation)
recoverERC20(address,uint256) :
This function allows the contract owner to recover ERC20 tokens sent to the contract by transferring them back to the owner's address.
(autogenerated documentation)
recoverETH(uint256) :
This function allows the contract owner to recover a specified amount of ETH by transferring it to their address.
(autogenerated documentation)