🌳
Treedefi
  • Treedefi Docs
  • Home
    • ✨Buy COT - Carbon Offset Token
      • 📑 Carbon Offset Token (COT) Smart Contract
      • 📑 Absorption Sale Smart Contract
    • 🔽Add COT to your wallet
  • Features
    • 🌳turboNFTREE
    • 🚀COT Staking
      • 📖Whitelisted Staking
  • Marketplace
    • 🌉Legacy Marketplace
  • Legacy Swap
    • 📄Legacy Swap Overview
      • 📑 Legacy Swap Smart Contract
    • 🪙Independent Sale
    • 🏦Market Swap
    • 💵Investment Swap
  • Store
    • 🏬COT redeem from Store
  • Governance
    • 🗂️Multi-sig Wallets
  • Treedefi Legacy Docs
    • ⏬Token Withdrawal
    • 🌱Treedefi Legacy Project
Powered by GitBook
On this page
  • Auto Seed Pool Withdrawal
  • Masterchef Withdrawal
  • Masterchef PIDs
  1. Treedefi Legacy Docs

Token Withdrawal

Withdraw your old tokens

PreviousMulti-sig WalletsNextTreedefi Legacy Project

Last updated 1 year ago

The Emergency Withdrawal feature is a crucial part of smart contract protocols for decentralized finance (DeFi) applications. Its purpose is to provide a safety mechanism allowing users to withdraw their funds from a smart contract in the event of a problem or potential security breach. By invoking this feature, users can retrieve their staked tokens without getting the reward tokens.

The mechanism ensures that in an emergency situation, users can still recover their assets without going through the normal withdrawal process.

Auto Seed Pool Withdrawal

In order to retrieve your tokens from Auto-Seed pool, please follow these steps

  1. Click on the following link:

  2. Connect to the site using your wallet.

  3. Locate and click the "withdraw all" option.

Upon completion of these steps, you should be able to successfully retrieve your tokens.

Masterchef Withdrawal

Pool Identification

To verify if you have staked any tokens, kindly follow to the steps:

  1. Visit the following link:

  2. Scroll down until you locate the "userInfo" section (function number 19)

  3. In the first field, enter your PID (Pool ID). In the second field, input your wallet address. Click the button "Query"

    1. If you encounter a value other than zero, this signifies that you still possess tokens available for withdrawal. You should iterate trough all the available pools which can be located at the end of this page.

  4. Make a note of your Pool ID for further use.

Token withdrawal

In order to retrieve your tokens from Masterchef, please follow these steps:

  1. Connect your wallet.

  2. Call the emergencyWithdraw function. When prompted for the _pid, input the Pool ID where you initially staked your tokens. Check the following section to understand what is your Pool ID

Masterchef PIDs

The list of PIDs represents various liquidity pools, each of which can be identified by their lpToken addresses. For instance, PID 0 represents the SEED-WBNB pool on Pancake v1, and its attributes are as follows: the lpToken address is 0x957811B37e74E1A140F7cCedf1935E9a6a82C33c, its allocPoint is 0 (meaning it does not earn TREE rewards per block), and its depositFeeBP is 0 (meaning there are no deposit fees for this pool). The rest of the pools follow a similar structure.

0 (SEED-WBNB on Pancake v1)

1 ( SEED-BUSD on Pancake v1)

2 (BUSD)

3 (SEED-TREE on Pancake v1)

4 (DAI-BUSD on Pancake v1)

5 (SEED)

6 (WBNB)

7 (BTCB)

8 (USDT)

9 (DAI)

10 (BUSD)

11 (BUSD-TREE on Pancakev1)

12 (TREE)

13 (SEED-TREE on Pancake v1)

14 (TREE-WBNB on Pancake v1)

15 (SEED-CAKE on Pancakev1)

16 (TREE-SLIME on Pancakev1)

17 (SEED-SLIME on Pancakev1)

18 (GREEN-TREE on Pancake v1)

19 (SEED-BUNNY on Pancake v1)

20 (ADA-SEED on Pancake v1)

21 (SEED-NIU on Pancake v1)

22 (SEED-SLIME on Pancake v1)

23 (TREE-SLIME on Pancake v1)

24 (SEED)

25 (SEED-INDA on Pancake v1)

26 (TREE-SEED on Treedex v1)

27 (TREE-WBNB on Treedex v1)

28 (SEED-WBNB on Treedex v1)

29 (SEED-BUSD on Treedex v1)

30 (SEED-CAKE on Treedex v1)

31 (BUNNY-SEED on Treedex v1)

32 (SEED-ADA on Treedex v1)

33 (TREE-BUSD on Treedex v1)

34 (TREE-ETH on Treedex v1)

35 (BUSD-BNB on Treedex v1)

36 (DAI-BUSD on Treedex v1)

37 (WBNB-CAKE on Treedex v1)

38 (TCO2-WBNB on Treedex v1)

39 (TCO2-SEED on Treedex v1)

40 (TCO2-BUSD on Treedex v1)

41 (SEED-AMZ on Treedex v1)

Visit the following link:

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 300 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 2000 lastRewardBlock uint256 : 28608561 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 160 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 300

lpToken address : allocPoint uint256 : 80 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 300

lpToken address : allocPoint uint256 : 20 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 300

lpToken address : allocPoint uint256 : 20 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 300

lpToken address : allocPoint uint256 : 20 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 300

lpToken address : allocPoint uint256 : 1 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 1000 lastRewardBlock uint256 : 28613388 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 2800 lastRewardBlock uint256 : 28836357 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 2800 lastRewardBlock uint256 : 28651839 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 1200 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 1200 lastRewardBlock uint256 : 28733499 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 1000 lastRewardBlock uint256 : 28733512 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 560 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 560 lastRewardBlock uint256 : 28620502 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 560 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 560 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 1000 lastRewardBlock uint256 : 28651560 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 1000 lastRewardBlock uint256 : 28614530 accTreePerShare uint256 : depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 0 lastRewardBlock uint256 : 28605259 accTreePerShare uint256 : 0 depositFeeBP uint16 : 0

lpToken address : allocPoint uint256 : 560 lastRewardBlock uint256 : 28825239 accTreePerShare uint256 : depositFeeBP uint16 : 0

⏬
https://bscscan.com/address/0xf1B08eAd7894e255A38bABEC2bE391D41d5aC494#writeContract
SEED Masterchef Smart Contract
SEED Masterchef Smart Contract
0x957811B37e74E1A140F7cCedf1935E9a6a82C33c
59167804236550
0x38320b2b624a01D71a8520ac83Da890bc2A38EeF
4171634141042
0x1B96B92314C44b159149f7E0303511fB2Fc4774f
2629243725092
0x0faFf2264Fcc6B1c9e8B245E37d11EeF951FA958
3478773856103
0x3aB77e40340AB084c3e23Be8e5A6f7afed9D41DC
53754341610
0x40B34cC972908060D6d527276e17c105d224559d
6100516955908
0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
174301476753535
0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c
11178144307646655
0x55d398326f99059fF775485246999027B3197955
69023276699
0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3
284375411960
0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56
179710585707
0xDDE1A087Ff3cA5E7e694D7609A307E8622842327
7864324156562
0xf0Fcd737fcE18F95621CC7841EbE0eA6EFCCf77e
9897723143013
0x0faFf2264Fcc6B1c9e8B245E37d11EeF951FA958
15629053416197
0xaa359A601Ec3bD46C04C5F8f6A77D4AC9310A39D
131757384394965526212
0x7E1FEF3eaCf4AC54A95d2Be3f33e9122A1fC0080
10839087544203285219
0x7503b4B29787e17A3d6768FC9FeC2EFcD74bab3F
8724759572138
0xCF45B3E704C232fF95C6eb4AF89cC5B869c07021
3080929837176
0x490f11761ddF8d100A38e73592817f097AEf12Bc
106891052306715995
0x238984572976D6c3e1D3499e382929014eE833D4
1865015710850789477
0x66cEbcF25C53B36Dfae40F88a991De40ea4f2D63
30411193322677591
0x6Ca7Fc9b0424561D70382AEc0fAA8C2AAFA0a008
2327356245944
0x7ad8E694811Bf4Fc348c82B772f0E03af2E3480E
1011355717045
0x617Eeb2e44FdF108a24CD4a2ab8eDe99a970D084
2765479585539
0x40B34cC972908060D6d527276e17c105d224559d
614765480053
0xABFB602e6cf4592252282FCf604FE2D446409dfd
13172737740418535262
0x881588df630D6016Df4808cD7633416C1f9a880B
12659099265690
0x86a29a1aA77B6FCc9A467b42CC109d100afF7575
723380738736327
0x67b2d77c707DEbF725Eb45AF378E35b7575D84a4
94142914909621
0xdb5cC33b796EC918857F37eC0F1312A79d24aFC0
3860604737816
0xfE91B2ABF150BB83FE781AB925CB26E71C646987
10106009110578
0x676AD6774d6e577e7bfbF97Ea7Caae98b120EFaF
1676811432531
0xaFfa7c3679cAa1Df564Cf1d2eE25848081229557
2420017314969
0xF29eDb34e8c344E28991CB67Bc849A2fb9ce3716
3277527223305309633
0x91302eCe69B4bdD26E4488EB462444E92b251aa1
1851173478115764
0x8aCeF6a19f7F00B88115BB28132295e4cDd8823a
1057466596756756
0x45e612E7e148827cd1616A19d986592091ea9313
513331903164
0xe8c0D6Dc7338D23ef443FF85e77c4FaD5A420894
197134187867987
0xa21B0cf34107dA73dAdE88cE2de644BE39B74CF1
67778618257962745
0x11b9e4914a7EC861c65E2F0aaa061f4EA910992F
8929108615767
0x91c4871682232B4ac3F53a5D277f99f6C7d12936
0xb4265a20a19E36720dD15359E99b499f6caD991e
14552352947375