removeLiquidityETHTx method

Future<RawEvmTransaction> removeLiquidityETHTx({
  1. required String token,
  2. required BigInt liquidity,
  3. required BigInt amountTokenMin,
  4. required BigInt amountETHMin,
  5. required String to,
  6. required BigInt deadline,
  7. required String sender,
})

Implementation

Future<RawEvmTransaction> removeLiquidityETHTx({
  required String token,
  required BigInt liquidity,
  required BigInt amountTokenMin,
  required BigInt amountETHMin,
  required String to,
  required BigInt deadline,
  required String sender,
}) async {
  final function = abi.getFunction("removeLiquidityETH")!;
  final result = await buildTransactionForFunction(
    sender: sender,
    function: function.addValues(values: [
      token,
      liquidity,
      amountTokenMin,
      amountETHMin,
      to,
      deadline,
    ]),
  );
  return result;
}