ITokenStake

Interface for a token staking contract.

ITokenStake Contract

This interface defines the basic functions for a token staking contract. It allows users to stake their tokens and earn rewards.

Features

  • Stake tokens
  • Unstake tokens
  • View staked balance
  • Claim rewards

Usage

To use this interface, implement the functions in your staking contract.

Example Implementation

pragma solidity ^0.8.0; import "./ITokenStake.sol"; contract TokenStake is ITokenStake { // ... Implementation details }