@pwngh/economy-lab
    Preparing search index...

    Function credit

    • Builds a credit leg for one account. Pass the amount positive; it is stored negated, following the ledger's debit-positive convention. A credit raises credit-normal accounts, such as a user's spendable balance, and lowers debit-normal ones. See debit for the balanced-pair example.

      Parameters

      Returns Leg