setReferralFeeRate function
MoveCallBuilder
setReferralFeeRate({})
Set the portion of referred mint fees routed to the referrer. The new rate applies to subsequent mints without changing their all-in account withdrawal.
Implementation
MoveCallBuilder setReferralFeeRate(
{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_referral_fee_rate',
arguments: normalizeMoveArguments(
tx,
withConfigDefaults(
arguments, config, const {'config': 'protocolConfig'}),
[null, null, 'u64'],
['config', 'AdminCap', 'rate']),
);
}