cost property

double cost
final

All-in account debit: premium + (trading − subsidy) + builder + penalty

  • inventoryImpact — exactly what the chain withdraws (the deployed compute_mint_quote's all_in_cost); pass this (plus your buffer) as maxCost.

Implementation

final double cost;