Deviant BCH wallet — CashTokens + covenants (Katalogos v1 · chipnet)
Three joined fixes from user feedback:
1. Balance total was inflated by MBA backing.
The Balances view summed BCH + every MBA's redeem value into one
figure ("Total holdings value = 0.5467 BCH") — but a claimed MBA
does NOT give the user more spendable BCH; the backing is locked
in the covenant until redeem. The number read as if the user had
more BCH than they actually did, especially confusing right after
a claim: spent 0.2 BCH, got 200K ASM, saw the "total" unchanged
because the ASM's 0.2-BCH backing quietly replaced the spent BCH
in the sum.
Fix: the top figure is now labelled "Spendable BCH" and includes
the BCH row ONLY (0.2899 BCH in the verified live snapshot).
MBA backing is broken out under it as an informational line:
"+ backed in MBAs · 0.1058 BCH (redeemable via Potidaea)".
The line hides itself when no MBAs are held.
Terminal panel's ≈ $X header (odTotalUsd) uses the same
spendable-only rule so both surfaces agree.
2. "Redeem + claim" UI wording dropped.
The review sheet's Route row, the pending-broadcast subtitle, and
the Settlement info panel all said "redeem + claim · 1 tx" — but a
BCH → ASM buy is a claim only (no redeem), and the string was
misleading during broadcast. All three now read:
Route → "covenant swap · 1 tx"
Pending sub → "Building the swap transaction"
Neutral, accurate for both directions, and no user-facing "claim"
/ "redeem" jargon (those stay in code comments + tx-log kind).
Verified live:
Spendable BCH → 0.2899 BCH ($71.73)
Backed in MBAs → 0.1058 BCH (ASM 0.0718 + ASM2 0.0015 + DEA 0.0325)
Pending sheet → "Building the swap transaction"
No "redeem + claim" text anywhere in the DOM.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
||
|---|---|---|
| .claude | ||
| brand | ||
| contracts | ||
| design | ||
| docs | ||
| KnowledgeBase | ||
| Parameters | ||
| public | ||
| scripts | ||
| services | ||
| shells | ||
| site/deviant | ||
| snapshots | ||
| spike | ||
| src | ||
| telegram-orderbook | ||
| test | ||
| wiki | ||
| .calibration-sweep.json | ||
| .catalytic-sweep.json | ||
| .env.example | ||
| .gitignore | ||
| .kac-extract.txt | ||
| .sim-athenae.json | ||
| adaptive-data.json | ||
| bch-history.json | ||
| bch-market.json | ||
| BCH_Token_Economy_Concept_Paper.md | ||
| bch_wallet_architecture.svg | ||
| CLAUDE.md | ||
| deviant_technical_spec_v2.7.md | ||
| package-lock.json | ||
| package.json | ||
| project-context.md | ||
| README.md | ||
| tsconfig.json | ||
| usdm-historical.json | ||
Deviant
BCH two-tier token economy platform. Pre-implementation. See BCH_Token_Economy_Concept_Paper.md for the full design.
Status
Bootstrap snapshot — protocol swap mechanism is the validation target.
Project map
| Path | Purpose |
|---|---|
BCH_Token_Economy_Concept_Paper.md |
Architecture spec, all [PROPOSED] claims |
CLAUDE.md |
Working agreement for Claude sessions |
src/ |
TypeScript wallet + token logic |
contracts/ |
CashScript source for Architecture A contracts |
test/ |
Unit tests (regtest) + integration plan (chipnet, mainnet) |
scripts/ |
Code-scan, snapshot, compile helpers |
wiki/ |
Living docs: architecture, decisions, testing strategy, code map |
snapshots/ |
Numbered progress snapshots |
Quickstart
npm install
npm run compile:contracts # produces artifacts from contracts/*.cash
npm run test:regtest # runs regtest suite
npm run scan # regenerates wiki/code-map.md
npm run snapshot # appends a new snapshot
Build priorities (active)
- Protocol swap mechanism — most novel claim, needs validation first.
- CashScript enforcement on mainnet — not just theoretical verification.
- tokenId correlation across A/B tiers — edge cases expected.
See wiki/testing-strategy.md for the staged regtest → chipnet → mainnet plan.