PoolTogether - Mainnet

Deposit & Withdraw from PoolTogether PoolTogether-v1 connector on mainnet triggers methods like claim, claimAll, claimPodTokenDrop, depositToPod. 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.

Claim

Claim token from a Token Faucet

spells.add({  connector: "POOLTOGETHER-A",  method: "claim",  args: [tokenFaucet, setId]});
Parameter Type Description
tokenFaucet address TokenFaucet address
setId uint256 Set claimed amount at this ID in `InstaMemory` Contract.

ClaimAll

Runs claim on all passed comptrollers for a user.

spells.add({  connector: "POOLTOGETHER-A",  method: "claimAll",  args: [tokenFaucetProxyFactory, tokenFaucets]});
Parameter Type Description
tokenFaucetProxyFactory address The TokenFaucetProxyFactory address
tokenFaucets TokenFaucetInterface[] The tokenFaucets to call claim on.

ClaimPodTokenDrop

Claim asset rewards from a TokenDrop

spells.add({  connector: "POOLTOGETHER-A",  method: "claimPodTokenDrop",  args: [podTokenDrop, setId]});
Parameter Type Description
podTokenDrop address Pod TokenDrop address
setId uint256 Set claimed amount at this ID in `InstaMemory` Contract.

DepositToPod

Deposit assets into the Pod in exchange for share tokens

spells.add({  connector: "POOLTOGETHER-A",  method: "depositToPod",  args: [prizePoolToken, pod, tokenAmount, getId, setId]});
Parameter Type Description
prizePoolToken address Prize Pool Token Address
pod address Pod address to deposit to
tokenAmount uint256 The amount of tokens to deposit. These are the same tokens used to deposit into the underlying prize pool.
getId uint256 Get token amount at this ID from `InstaMemory` Contract.
setId uint256 Set token amount at this ID in `InstaMemory` Contract.

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.