setPlpWithdrawFeeRate function
MoveCallBuilder
setPlpWithdrawFeeRate({})
Set the fee charged on executed PLP withdraw fills. Same gating as the supply leg; the two are independent so the exit charge can move without taxing entry.
Implementation
MoveCallBuilder setPlpWithdrawFeeRate(
{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_plp_withdraw_fee_rate',
arguments: normalizeMoveArguments(
tx,
withConfigDefaults(
arguments, config, const {'config': 'protocolConfig'}),
[null, null, 'u64', '0x2::clock::Clock'],
['config', 'AdminCap', 'rate']),
);
}