Skip to content

Commit

Permalink
Improve evaluateTransactionBalance documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Feb 24, 2022
1 parent 8635bec commit 57bc6fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/core/src/Cardano/Wallet/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,12 @@ data TransactionLayer k tx = TransactionLayer
-> UTxO
-> [(TxIn, TxOut, Maybe (Hash "Datum"))] -- Extra UTxO
-> Maybe Node.Value
-- ^ Evaluate the balance of a transaction using the ledger. A valid
-- transaction must be balanced.
-- ^ Evaluate the balance of a transaction using the ledger. The balance
-- can thought of as @Σ inputs - Σ outputs - fee@, but in reality
-- there are more features that can affect it, like minting, deposits,
-- and withdrawals. By relying on the calculation of the ledger, we
-- don't need to worry about getting all these details right. For a
-- transaction to be valid, it must have a balance of zero.
--
-- Note that the fee-field of the transaction affects the balance, and
-- is not automatically the minimum fee.
Expand Down

0 comments on commit 57bc6fa

Please sign in to comment.