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. PerpetualTokensFarmSDK

Deposit

  • There is two way to make a deposit on contracts, depends if warmup is enabled or not

  • If warmupPeriod == 0 contract admin needs to make a deposit through function called ISDK(farmAddress).deposit()

    function deposit(address _user, uint256 amount)

    After that stake is remembered and user starts earning immediately

  • If warmupPeriod > 0 contract admin needs to make deposit through function called ISDK(farmAddress).makeDepositRequest

    function makeDepositRequest(
       address _user,
       uint256 amount
    )

    After that warmupPeriod needs to pass in order for BE or contract admin to call function ISDK(farmAddress).finaliseDeposit

    function finaliseDeposit(
        address _user,    
        uint256 stakeId
    )

    once that function is executed user can start earning rewards and his stakes i acknowledged

PreviousISDK.solNextWithdraw

Last updated 2 years ago

Was this helpful?