API Reference
Request Parameters:
ParameterTypeDescriptionExample
tokenaddresstoken address
recipientaddresspair address
amountuint256The amount to withdraw, in wei100000000000000000

call pool contract

Note
// Data structure
function depositERC20(
    ERC20 token,
    address recipient,
    uint256 amount
) external {
    emit TokenDeposit(recipient);
}
Return Parameters

None

ABI

function withdrawERC20(address,address,uint256) public

Code example:

import { ethers, utils } from 'ethers';

const abi = ['function withdrawERC20(address,address,uint256) public'];
const signer = new ethers.providers.Web3Provider(window?.ethereum).getSigner();
const contract = new ethers.Contract(poolAddress, abi, signer);
const txResult = await contract.withdrawERC20(
  '0x39Ef50bd29Ae125FE10C6a909E42e1C6a94Dde29',
  '0x39Ef50bd29Ae125FE10C6a909E42e1C6a94Dde29',
	'10000000000000000'
);