relevant tag icon
ERC20 Token Staking with Infinite Rewards
copy icon
Cookbook
• version 1.0.0
Staking
Token
ERC20
Deployable

ERC20 Token Staking with Infinite Rewards

Token staking contract that rewards stakers with an exact number of ERC20 tokens per period for every token staked. On deployment, the owner specifies a reward rate, and an address that tokens will be pulled from. Neither of these can be changed. The per token rate stays the same even when the total number of staked tokens increases/decreases. A common usecase is for blockchain-based games, where holding tokens rewards a certain number of lives per day.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

Cookbook

Recent Use

🍞 0x5DF1 saved
🥐 0x6e57 saved
🥖 0x6e57 downloaded
🥨 0xB54a deployed
🥯 0x2F4c downloaded
🥞 0x70F8 downloaded
🧀 0x70F8 downloaded
🍖 0x2574 deployed

Last Publish

9/29/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
available(address) :
returns the number of reward tokens available for an address
redeem() :
redeems all of a user's reward tokens.
stake(uint256) :
stakes an amount of tokens
withdraw(uint256) :
withdraws tokens

Get Cookin'
share iconShare

copy iconNo-Code Deploy
copy iconDownload Source
copy iconnpx cookbookdev i token-staking-with-infinite-rewards
copy icon

Bytecode

Download

Verification

Download

Recent Use

🍞 0x5DF1 saved
🥐 0x6e57 saved
🥖 0x6e57 downloaded
🥨 0xB54a deployed
🥯 0x2F4c downloaded
🥞 0x70F8 downloaded
🧀 0x70F8 downloaded
🍖 0x2574 deployed

Last Publish

9/29/2022

Solidity Compiler

0.8.15+commit.e14f2714

Version

1.0.0

Creator

Cookbook

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