DODO Docs
Searchโ€ฆ
โ›
Liquidity Mining
The current liquidity mining contract under the DODO platform includes two versions of implementation. The following will describe the corresponding contract interfaces, as well as the mining projects performed under each network.

DODOMineV1

The first version of the mining contract can flexibly add and remove pledged tokens, and divide the overall DODO token reward by setting the weight of each pledged token, while the first version of the contract is mainly for the DODO V1 type pool, which provides liquidity LP for single coins and carries out DODO token reward.
The main write operation interfaces of the contract include pledge deposit, withdraw && withdrawAll, withdraw reward claim && claimAll.
For the pledge function deposit, you need to pass in the address of the pledged token, and the number of tokens pledged by the user. Before calling it, make sure that the user's pledged tokens are authorized to the mining contract, and that the mining contract internally transfers the pledged tokens from the user's account to the mining contract via the transferFrom method. When deposit is called, the contract will also automatically withdraw and transfer the user's currently earned rewards to the user's account.
1
function deposit(address _lpToken, uint256 _amount) public;
Copied!
For the withdraw function, the contract includes two methods withdraw && withdrawAll. For the withdraw function, you need to pass the token address and specify the number of tokens to be withdrawn, while for the withdrawAllfunction, you only need to pass the token address to be withdrawn, and the contract will internally withdraw all the tokens pledged by the current user to The contract will withdraw all the tokens pledged by the current user to his account. Also, by calling these two functions, the contract will automatically withdraw and transfer the current rewards to the user's account.
1
function withdraw(address _lpToken, uint256 _amount) public;
2
โ€‹
3
function withdrawAll(address _lpToken) public;
Copied!
For extracting the reward function claim && claimAll.The former requires passing in the address of the pledged token from which the reward tokens are extracted. And the latter will extract all the mining rewards that the current user has participated in, but this function will consume more gas, please use it carefully.
1
function claim(address _lpToken) public;
2
โ€‹
3
Solifunction claimAll() public;
Copied!
The first version of the mining contract also involves a number of read functions, including :
the function getUserLpBalance to get the number of tokens pledged by the user, which requires passing in the pledged token address as well as the user address.
1
function getUserLpBalance(
2
address _lpToken,
3
address _user
4
) public view returns (uint256);
Copied!
Get the number of reward tokens for the current user getPendingReward && getAllPendingReward, the former needs to pass in the pledged token address and the user address to get the number of user rewards corresponding to the current pledge. The latter only needs to pass in the user's address, and returns the total number of tokens rewarded for all mining projects the current user has participated in.
1
function getPendingReward(address _lpToken, address _user) external view returns (uint256);
2
โ€‹
3
function getAllPendingReward(address _user) external view returns (uint256);
Copied!
  • Note: the current first version of mining activities, reward adjustments will be more flexible, not unmodifiable *

Current mining projects conducted by the first version of the contract

Staking Token
Liquidity Pool
Weight
โ€‹WETH DLPโ€‹
โ€‹WETH - USDCโ€‹
200
โ€‹USDC DLPโ€‹
โ€‹WETH - USDCโ€‹
200
โ€‹WBTC DLPโ€‹
โ€‹WBTC - USDCโ€‹
200
โ€‹USDC DLPโ€‹
โ€‹WBTC - USDCโ€‹
200
โ€‹USDC DLPโ€‹
โ€‹WBTC - USDCโ€‹
440
โ€‹USDT DLPโ€‹
โ€‹WBTC - USDCโ€‹
440
Staking Token
Liquidity Pool
Weight
โ€‹BUSD DLPโ€‹
โ€‹BUSD - USDTโ€‹
0.22
โ€‹USDT DLPโ€‹
โ€‹BUSD - USDTโ€‹
0.22
โ€‹USDC DLPโ€‹
โ€‹USDC - BUSDโ€‹
0.05
โ€‹BUSD DLPโ€‹
โ€‹USDC - BUSDโ€‹
0.05
Staking Token
Liquidity Pool
Weight
โ€‹WETH DLPโ€‹
โ€‹WETH - USDCโ€‹
200
โ€‹USDC DLPโ€‹
โ€‹WETH - USDCโ€‹
200
โ€‹WBTC DLPโ€‹
โ€‹WBTC - USDCโ€‹
200
โ€‹USDC DLPโ€‹
โ€‹WBTC - USDCโ€‹
200
โ€‹USDT DLPโ€‹
โ€‹USDT - USDCโ€‹
200
โ€‹USDC DLPโ€‹
โ€‹USDT - USDCโ€‹
200
Staking Token
Liquidity Pool
Weight
โ€‹USDT DLPโ€‹
โ€‹USDT - USDCโ€‹
200
โ€‹USDC DLPโ€‹
โ€‹USDT - USDCโ€‹
200
Staking Token
Liquidity Pool
Weight
โ€‹USDC DLPโ€‹
โ€‹USDT - USDCโ€‹
200
โ€‹USDT DLPโ€‹
โ€‹USDT - USDCโ€‹
200
Staking Token
Liquidity Pool
Weight
โ€‹USDT DLPโ€‹
โ€‹USDT - USDCโ€‹
200
โ€‹USDC DLPโ€‹
โ€‹USDT - USDCโ€‹
200
Staking Token
Liquidity Pool
Weight
โ€‹USDT DLPโ€‹
โ€‹USDT - USDCโ€‹
200
โ€‹USDC DLPโ€‹
โ€‹USDT - USDCโ€‹
200

DODOMineV2

The second version of the mining contract, a pledge token corresponds to a contract, and supports multiple mining.
The main write interfaces of the contract include pledge deposit, withdraw, withdraw mining rewards claimReward && claimAllRewards.
For the pledge function deposit, the parameter passed in is the number of tokens pledged, while ensuring that the user's tokens are authorized to the current mining contract before pledging, and the mining contract internally transfers the user's pledged tokens to the mining contract by calling the transferFrom function.โ€‹โ€‹
1
function deposit(uint256 amount) externSol
Copied!
For thewithdraw pledge token function, pass in the number of pledge tokens to be withdrawn
1
function withdraw(uint256 amount) external
Copied!
For the claimReward && claimAllRewards functions, the former needs to pass in the corresponding serial number of the reward tokens, and only the corresponding reward tokens will be extracted; the latter will extract all the reward tokens mined.
1
function claimReward(uint256 i) publicfunction claimAllRewards() external
Copied!
The second version of the mining contract also involves a number of read functions, including :
Get the number of reward tokens unclaimed by the user getPendingReward && getPendingRewardByToken, the former requires passing in the user address and the corresponding reward token serial number, the latter passes in the user address and the reward token address.
1
function getPendingReward(address user, uint256 i) public view returns (uint256);
2
โ€‹
3
function getPendingRewardByToken(address user, address rewardToken) external view returns (uint256);
Copied!
Note: the current second version of the mining activities, reward adjustments will be more flexible, not unmodifiable

Current mining projects conducted by the second version of the contractโ€‹โ€‹

ETHโ€‹โ€‹
  • Pledged Token DAI-USDT DLP (0x3058ef90929cb8180174d74c507176cca6835d73)
  • Mining Contract 0x1A4F8705E1C0428D020e1558A371b7E6134455A2
  • Bonus Token DODO (1.25 per block)
โ€‹
BSCโ€‹โ€‹
  • Pledged Token DODO-BNB DLP (0xd534fae679f7f02364d177e9d44f1d15963c0dd7)
  • Mining Contract 0x322B43e406D1B4Df9Bc36d058317Dd1cd3b0385F
  • Bonus Token DODO (0.3 per block)
โ€‹
Arbitrum Oneโ€‹โ€‹
  • Pledged Token DODO-USDC DLP (0x6a58c68ff5c4e4d90eb6561449cc74a64f818da5)
  • Mining Contract 0x38Dbb42C4972116c88E27edFacD2451cf1b14255
  • Bonus Token DODO (0.5 per block)
โ€‹
Aurora
  • Pledged Token DODO-USDC DLP (0xc7689e5315a8b237ac7ab62119df299dd8c4b6d5)
  • Mining Contract 0x10353A2e2EeAE8369c685526FC724137002BBDF9
  • Bonus Token DODO (0.1 DODO Per Block)
  • Bonus Token NEAR (0.007 DF Per Block)

Polygon

  • Pledged Token DODO-USDT DLP (0x581c7DB44F2616781C86C331d31c1F09db87A746)
  • Mining Contract 0x738aba1389C5e37d24b5B669F07CBEa594c733E4
  • Bonus Token DODO (0.11 per block)

Boba

  • Pledged Token DODO-USDT DLP (0xb55c56541dceef41322b5d7a7880594afcd9711c)
  • Mining Contract 0xb69e388c678d6b5aed323e3ef2f22d5fef8fb1ec
  • Bonus Token Boba Option (0.44 per block)
โ€‹