aboutsummaryrefslogtreecommitdiffstats
path: root/src/concord.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-24 20:40:38 -0700
committerAdam Soltys <[email protected]>2026-06-24 20:40:38 -0700
commitae62886bb3a7fe72a3828089c58205662696bca9 (patch)
treeb31d8e07e6cae91db5ed2057b3d5f2c22002ec07 /src/concord.js
parenta6bfb5bd4429cf7069a5d0c5e61cb5873ddd8230 (diff)
downloadcoinosv3-ae62886bb3a7fe72a3828089c58205662696bca9.tar.gz
coinosv3-ae62886bb3a7fe72a3828089c58205662696bca9.zip
Minimize gift lock-up: best-fit coins + optional pre-split
Gift coin selection now picks the smallest single coin that covers the gift (was largest-first), locking the least value until claim. When no near-exact coin exists, offer to pre-split: broadcast a self-send carving out a gift+dust coin so the gift later locks only ~the gift amount. The split is only offered when the liquidity it frees (lock - gift - dust) exceeds the split's own fee, so it never costs more than it regains. Decision is surfaced as an interstitial on Create, since a full re-render drops input focus and a live preview isn't viable. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/concord.js')
0 files changed, 0 insertions, 0 deletions
it/commit/package.json?h=ecash&id=011ec3a04729104d5d765a868dcbdd5ce1b03916'>011ec3a0 ^
09f5730f


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27















                                                                    
                                 





                                                   
                                


                        
{
	"name": "my-app",
	"version": "0.0.1",
	"scripts": {
		"dev": "vite dev",
		"build": "vite build",
		"package": "svelte-kit package",
		"preview": "vite preview",
		"prepare": "svelte-kit sync",
		"lint": "prettier --check --plugin-search-dir=. .",
		"format": "prettier --write --plugin-search-dir=. ."
	},
	"devDependencies": {
		"@sveltejs/adapter-auto": "next",
		"@sveltejs/kit": "next",
		"autoprefixer": "^10.4.7",
		"got": "^12.2.0",
		"postcss": "^8.4.14",
		"prettier": "^2.6.2",
		"prettier-plugin-svelte": "^2.7.0",
		"svelte": "^3.44.0",
		"svelte-preprocess": "^4.10.7",
		"tailwindcss": "^3.1.6",
		"vite": "^3.0.0"
	},
	"type": "module"
}