mintExactCost function
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,
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,
},
)));
}