Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
Leaderboard Ranking
copy icon
ERC20
Token
Staking

Leaderboard Ranking

This contract provides a transparent and secure way to track and display the top performers in a given competition or activity, incentivizing participants to strive for excellence and promoting healthy competition. (autogenerated description)

*Visit desktop site to download or deploy

Last Publish

3/17/2023
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
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)

Get Cookin'
share iconShare

copy iconNo-Code Deploy
copy iconDownload Source
copy iconnpx cookbookdev i Leaderboard
copy icon

Bytecode

Download

Verification

Download

Last Publish

3/17/2023

Solidity Compiler

v0.8.4+commit.c7e474f2

Version

1.0.0

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.