LogoLogo
AppAbout
  • 🙂Meet TokensFarm
  • Overview
    • 💻Our Products
    • ⚙️Features
    • 🚀Launch a Farm for Your Project
    • 🔏Using Gnosis Safe
  • For Developers
    • TokensFarmSDK
      • Getters
      • Setters
      • Parameters
      • ISDK.sol
      • Deposit
      • Withdraw
    • Integrate TokensFarm
      • Requesting Farm Data
      • Get Farm Address and Full Details
      • Monitoring a Farm's Status
      • Deposit into a farm
      • Withdraw from a farm
      • TokensFarm Contract Interface
      • How to integrate TokensFarmSDK
      • How to Embed TokensFarm
      • Getters of TokensFarm Contract
    • PerpetualTokensFarmSDK
      • Getters
      • Setters
      • Parameters
      • ISDK.sol
      • Deposit
      • Withdraw
    • PerpetualTokensFarm
      • Getters
      • Setters
      • Parameters
      • Deposit
      • Withdraw
  • About
    • 🔉Social Media
    • 🏢About DcentraLab
    • ❓FAQ
    • 📜Tokensfarm Audits
    • 📞Support
    • ⚖️Legal
Powered by GitBook
On this page

Was this helpful?

  1. For Developers
  2. Integrate TokensFarm

TokensFarm Contract Interface

A list of functions for interacting with the TokensFarm Contract

interface ITokensFarm {
    function deposit(uint256 _amount) external;
    function withdraw(uint256 _amount, uint256 stakeId) external;
    function getUserStakesAndPendingAmounts(address user) external view;
    function getTotalRewardsLockedUnlocked() external view returns (uint256, uint256);
    function deposited(address _user, uint256 stakeId) public view;
    function pending(address _user, uint256 stakeId) public view;
    function totalPending() external view;
    function getNumberOfUserStakes(address user) external view;
    function fund(uint256 _amount) external;
    function emergencyWithdraw(uint256 stakeId) external;
    function updatePool() public;
    function depositTimestamp(address _user, uint256 stakeId) public view;
    function withdrawTimestamp(address _user, uint256 stakeId) public view;
}
PreviousWithdraw from a farmNextHow to integrate TokensFarmSDK

Last updated 3 years ago

Was this helpful?