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

Withdraw

WITHDRAW SYSTEM : You can withdraw in two ways • You can withdraw stake + rewards for that stake in one go 1. If coolDown == 0 user can call withdraw and immediately withdraw

function withdraw(
    uint256 _amount,
    uint256 stakeId
)

2. if coolDown > 0 user needs to first initiate withdraw request calling makeWithdrawRequest

function makeWithdrawRequest(
    uint256 _amount,
    uint256 stakeId
)

After coolDown period has passed user will initiate withdraw

function withdraw(
    uint256 _amount,
    uint256 stakeId
)id

• You can only withdraw earned rewards for all stakes by user calling

function withdrawRewards()
PreviousDepositNextSocial Media

Last updated 2 years ago

Was this helpful?