quote method

Future<BigInt> quote({
  1. required BigInt amountA,
  2. required BigInt reserveA,
  3. required BigInt reserveB,
})

Implementation

Future<BigInt> quote({
  required BigInt amountA,
  required BigInt reserveA,
  required BigInt reserveB,
}) async {
  final function = abi.getFunction("quote")!;

  final result = await readSafe(
    function: function.addValues(values: [
      amountA,
      reserveA,
      reserveB,
    ]),
  );

  return result.outputs.first.value as BigInt;
}