Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
Semantic versioning. While the LUD-25 draft is unmerged, `0.x` minor bumps
may carry breaking changes; pin an exact version.

## 0.1.2 - 2026-08-21

- `mintFeeBand` and `withinMintFeeBand`. LUD-25 states the mint fee as
`base_fee_msat` plus a ppm cut and says nothing about rounding, and the
two live implementations read that differently: dni's lnurl-mint - the
reference, and what every public mint on the awesome list except moneyer
runs - ceilings the fee to a whole sat on purpose so the mint is "never
short a sat", while moneyer withholds the msat-exact amount.
- So `applyMintFee` is right about exactly one of them, and a wallet
comparing a credited note against it warns spuriously against the other.
Measured on real sats: 40,000 msat at a 1000 + 1000 ppm mint credited
38,000, not the 38,960 the formula gives.
- `mintFeeBand` returns the range - the formula is the most a holder can be
credited, the sat-ceilinged fee the least - and `withinMintFeeBand` is
what a caller should compare against. `applyMintFee` is unchanged and
still means the formula; it is now documented as the generous edge rather
than the answer.
- Nothing here decides which reading is correct. That is a question for
lnurl/luds#301.

## 0.1.1 - 2026-08-20

- `fetchMintAddress` now populates `nodeCapacityMsat`. The wire field is
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lnurlcash-kit",
"version": "0.1.1",
"version": "0.1.2",
"description": "LNURLcash (LUD-25) bearer note client for TypeScript - mint, rotate, split, merge, melt, and verify offline",
"author": "TheCryptoDonkey",
"license": "MIT",
Expand Down