mintExactCost function

MoveCallBuilder mintExactCost(
  1. GeneratedConfig config, {
  2. required String expiryMarketId,
  3. required String wrapperId,
  4. required BigInt lowerTick,
  5. required BigInt higherTick,
  6. required BigInt maxCostRaw,
  7. required BigInt minQuantityRaw,
  8. required MarketFeeds feeds,
})

Mint within an all-in budget, including fees, using the v2 entrypoint.

Implementation

MoveCallBuilder mintExactCost(
  GeneratedConfig config, {
  required String expiryMarketId,
  required String wrapperId,
  required BigInt lowerTick,
  required BigInt higherTick,
  required BigInt maxCostRaw,
  required BigInt minQuantityRaw,
  required MarketFeeds feeds,
}) {
  return _liveTrade(
      config,
      expiryMarketId,
      feeds,
      (pricer) => withAuth(
          config,
          (auth) => expiry_market.mintExactCost(
                config: config,
                arguments: {
                  'market': expiryMarketId,
                  'wrapper': wrapperId,
                  'auth': auth,
                  'pricer': pricer,
                  'lowerTick': lowerTick,
                  'higherTick': higherTick,
                  'maxCost': maxCostRaw,
                  'minQuantity': minQuantityRaw,
                },
              )));
}