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

Deposit

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

  • If warmupPeriod == 0 user needs to make a deposit through function called deposit()

    function deposit(uint256 amount)

    After that stake is remembered and user starts earning immediately

  • If warmupPeriod > 0 user needs to make deposit through function called makeDepositRequest

     function makeDepositRequest(
            uint256 _amount
        )

    After that warmupPeriod needs to pass in order for BE or user to call function finaliseDeposit

     function finaliseDeposit(
            address _user,
            uint256 stakeId
      )

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

PreviousParametersNextWithdraw

Last updated 2 years ago

Was this helpful?