upPrice function

MoveCallBuilder upPrice({
  1. required dynamic arguments,
  2. String? package,
  3. Map<String, dynamic>? config,
})

Return the current UP digital probability for a typed strike. Public PTB and devInspect reads can compose it with a transaction-local Pricer.

Implementation

MoveCallBuilder upPrice(
    {required dynamic arguments,
    String? package,
    Map<String, dynamic>? config}) {
  final packageAddress = package ??
      (config?['predictPackageId'] as String?) ??
      '@local-pkg/deepbook_predict';
  return (tx) => tx.moveCall(
        '$packageAddress::pricing::up_price',
        arguments: normalizeMoveArguments(
            tx, arguments, [null, null], ['pricer', 'strike']),
      );
}