normalizedSpot function

MoveCallBuilder normalizedSpot({
  1. required dynamic arguments,
  2. String? package,
})

Latest Propbook-normalized spot in 1e9 price scaling.

Implementation

MoveCallBuilder normalizedSpot({required dynamic arguments, String? package}) {
  final packageAddress = package ?? '@local-pkg/propbook';
  return (tx) => tx.moveCall(
        '$packageAddress::pyth_feed::normalized_spot',
        arguments: normalizeMoveArguments(tx, arguments, [null], ['feed']),
      );
}