currentNav function
MoveCallBuilder
currentNav({
Return live marked NAV as free expiry cash minus the exposure book's marked
liability, floored at zero. This read requires a market-bound pre-expiry
Pricer; an expired but unsettled market cannot be valued through this path.
Public for PTB composition and devInspect pool valuation.
Implementation
MoveCallBuilder currentNav(
{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::expiry_market::current_nav',
arguments: normalizeMoveArguments(
tx, arguments, [null, null], ['market', 'pricer']),
);
}