sponsorFeeIncentives function

MoveCallBuilder sponsorFeeIncentives({
  1. dynamic arguments,
  2. String? package,
  3. Map<String, dynamic>? config,
})

Sponsor taker fee incentives with USDC. Anyone may contribute; the payment joins a pool-level reserve that is excluded from PLP NAV and later allocated to expiry markets by the normal rebalance flow.

Implementation

MoveCallBuilder sponsorFeeIncentives(
    {dynamic arguments, String? package, Map<String, dynamic>? config}) {
  final packageAddress = package ??
      (config?['predictPackageId'] as String?) ??
      '@local-pkg/deepbook_predict';
  return (tx) => tx.moveCall(
        '$packageAddress::plp::sponsor_fee_incentives',
        arguments: normalizeMoveArguments(
            tx,
            withConfigDefaults(arguments, config,
                const {'vault': 'poolVault', 'config': 'protocolConfig'}),
            [null, null, null],
            ['vault', 'config', 'payment']),
      );
}