setMaxValuationWindowMs function
MoveCallBuilder
setMaxValuationWindowMs({})
Set how long a started full-pool valuation may stay in flight before anyone may discard it. A stalled flush costs LP-fill latency (and settlement latency for its own market set), not a trading pause, so this is an operator liveness knob: too short and a legitimate long flush can be discarded from under the keeper, too long and an abandoned one delays queued LP fills for that duration. See RP-29.
Implementation
MoveCallBuilder setMaxValuationWindowMs(
{dynamic arguments, String? package, Map<String, dynamic>? config}) {
final packageAddress = package ??
(config?['predictPackageId'] as String?) ??
'@local-pkg/deepbook_predict';
return (tx) => tx.moveCall(
'$packageAddress::protocol_config::set_max_valuation_window_ms',
arguments: normalizeMoveArguments(
tx,
withConfigDefaults(
arguments, config, const {'config': 'protocolConfig'}),
[null, null, 'u64'],
['config', 'AdminCap', 'windowMs']),
);
}