Uniswap V3 Staker

Decentralized Exchange.

Uniswap-V3-Staker-v1 connector triggers methods like deposit, transferDeposit, withdraw, stake, unstake, claimRewards, createIncentive. You can view details like source code, ABIs on Etherscan.

  • Use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to indicate ETH.
  • use -1 or dsa.maxValue for the maximum amount in function.
  • If not sure about the arguments getId and setId, pass 0.

Deposit

Transfer deposited NFT token

spells.add({
  connector: "UNISWAP-V3-STAKE-A",
  method: "deposit",
  args: [_tokenId]
});
Parameter Type Description
_tokenId uint256 NFT LP Token ID

TransferDeposit

Transfer deposited NFT token

spells.add({
  connector: "UNISWAP-V3-STAKE-A",
  method: "transferDeposit",
  args: [_tokenId, _to]
});
Parameter Type Description
_tokenId uint256 NFT LP Token ID
_to address address to transfer

Withdraw

Withdraw NFT LP token from staking pool

spells.add({
  connector: "UNISWAP-V3-STAKE-A",
  method: "withdraw",
  args: [_tokenId]
});
Parameter Type Description
_tokenId uint256 NFT LP Token ID

Stake

Stake NFT LP Position

spells.add({
  connector: "UNISWAP-V3-STAKE-A",
  method: "stake",
  args: [_rewardToken, _startTime, _endTime, _refundee, _tokenId]
});
Parameter Type Description
_rewardToken address _rewardToken address
_startTime uint256 stake start time
_endTime uint256 stake end time
_refundee address refundee address
_tokenId uint256 NFT LP token id

Unstake

Unstake NFT LP Position

spells.add({
  connector: "UNISWAP-V3-STAKE-A",
  method: "unstake",
  args: [_rewardToken, _startTime, _endTime, _refundee, _tokenId]
});
Parameter Type Description
_rewardToken address _rewardToken address
_startTime uint256 stake start time
_endTime uint256 stake end time
_refundee address refundee address
_tokenId uint256 NFT LP token id

ClaimRewards

Claim rewards

spells.add({
  connector: "UNISWAP-V3-STAKE-A",
  method: "claimRewards",
  args: [_rewardToken, _amount]
});
Parameter Type Description
_rewardToken address _rewardToken address
_amount uint256 requested amount

CreateIncentive

Create incentive

spells.add({
  connector: "UNISWAP-V3-STAKE-A",
  method: "createIncentive",
  args: [_rewardToken, _length, _refundee, _poolAddr, _reward]
});
Parameter Type Description
_rewardToken address _rewardToken address
_length uint256 incentive length
_refundee address refundee address
_poolAddr address Uniswap V3 Pool address
_reward uint256 reward amount

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.

Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.