Module

Cardano.Transaction.Balancer.MinFee

#calculateMinFee

calculateMinFee :: forall (r :: Row Type). CalculateMinFeeData r -> Transaction -> UtxoMap -> UInt -> Aff Coin

Calculate the minimum transaction fee.

#CalculateMinFeeData

type CalculateMinFeeData :: Row Type -> Typetype CalculateMinFeeData (r :: Row Type) = { ownAddrs :: Array Address, protocolParameters :: Record (BalancerProtocolParameters r), provider :: Provider }

#getMaximumSigners

getMaximumSigners :: Set Ed25519KeyHash -> NativeScript -> Int

Used for fee calculation. We try to calculate maximum number of signers from the script itself, following its logic. But we must not count requiredSigners and selfSigners as signers from native scripts twice, because that would lead to excessive fees. Hence we accept a set of already known signers to be ignored in this function.

Modules