setPlpSupplyFeeRate function
MoveCallBuilder
setPlpSupplyFeeRate({})
Set the fee charged on executed PLP supply fills. Admin-gated and validated against its config-constants envelope. Locked during valuation so the rate a flush froze into its mark cannot change midway through that flush.
Implementation
MoveCallBuilder setPlpSupplyFeeRate(
{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_supply_fee_rate',
arguments: normalizeMoveArguments(
tx,
withConfigDefaults(
arguments, config, const {'config': 'protocolConfig'}),
[null, null, 'u64', '0x2::clock::Clock'],
['config', 'AdminCap', 'rate']),
);
}