[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FXF1AZ7F4RGMRM6XW78TSZ":3,"skill-same:01M6FXF1AZ7F4RGMRM6XW78TSZ":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M6FXF1AZ7F4RGMRM6XW78TSZ","jb-cash-out-curve",null,"Juicebox V5 cash out redemption calculations using the bonding curve formula.\nUse when: (1) displaying cash out values in UI, (2) explaining redemption amounts\nto users, (3) calculating what percentage of treasury a cash out returns.\nThe simple \"X% of proportional share\" is WRONG - must use bonding curve formula.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmejango\u002Fjuicy\u002Fjb-cash-out-curve\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"jb cash out curve","share","ui","returns","redemption","use","formula","simple","users","juicebox v5","2026-11-10 10:12:30",false,"---\nname: jb-cash-out-curve\ndescription: |\n  Juicebox V5 cash out redemption calculations using the bonding curve formula.\n  Use when: (1) displaying cash out values in UI, (2) explaining redemption amounts\n  to users, (3) calculating what percentage of treasury a cash out returns.\n  The simple \"X% of proportional share\" is WRONG - must use bonding curve formula.\n---\n\n# Juicebox V5 Cash Out Bonding Curve\n\n## Problem\n\nWhen displaying cash out \u002F redemption values in Juicebox V5 UIs, it's tempting to show\na simple message like \"Cashing out returns 90% of proportional treasury share\" (for a\n10% tax rate). This is **incorrect** and misleading to users.\n\nThe actual redemption amount depends on a bonding curve formula where the percentage\nof supply being cashed out affects the return.\n\n## Context \u002F Trigger Conditions\n\n- Building UI that shows cash out \u002F redemption values\n- Explaining to users what they'll receive when cashing out\n- Any display of `cashOutTaxRate` impact on redemptions\n- When you see code like `retainedPercent = 100 - cashOutTax` - this is WRONG\n\n## Solution\n\n### The Bonding Curve Formula\n\n```\nreclaimAmount = (x * s \u002F y) * ((1 - r) + (r * x \u002F y))\n```\n\nWhere:\n- `x` = number of tokens being cashed out\n- `s` = surplus (treasury overflow available for redemption)\n- `y` = total token supply\n- `r` = cash out tax rate as decimal (0 to 1, where 0.1 = 10%)\n\n### Normalized Form\n\nWhen working with fractions (what % of supply is being cashed out):\n\n```\nLet f = x\u002Fy (fraction of supply being cashed out)\nreclaimFraction = f * ((1 - r) + (r * f))\n```\n\nWhere `reclaimFraction` is the fraction of surplus received.\n\n### Key Insight\n\nThe return depends on HOW MUCH of the supply is being cashed out, not just the tax rate.\nCashing out a larger percentage of supply returns proportionally less per token.\n\n### Example Calculation\n\nWith 10% cash out tax rate (`r = 0.1`), cashing out 10% of supply (`f = 0.1`):\n\n```javascript\nreclaimFraction = 0.1 * ((1 - 0.1) + (0.1 * 0.1))\nreclaimFraction = 0.1 * (0.9 + 0.01)\nreclaimFraction = 0.1 * 0.91\nreclaimFraction = 0.091  \u002F\u002F 9.1% of surplus\n```\n\nSo cashing out 10% of the supply gets ~9.1% of the surplus (not 9% as simple math would suggest).\n\n### Code Implementation\n\n```typescript\n\u002F\u002F WRONG - Don't do this:\nconst retainedPercent = 100 - (cashOutTaxRate \u002F 100)\nmessage = `Cashing out returns ${retainedPercent}% of proportional treasury share`\n\n\u002F\u002F CORRECT - Use bonding curve:\nfunction calculateCashOutReturn(\n  tokensToRedeem: number,\n  totalSupply: number,\n  surplus: number,\n  cashOutTaxRate: number \u002F\u002F 0-10000 basis points\n): number {\n  const r = cashOutTaxRate \u002F 10000  \u002F\u002F Convert basis points to 0-1\n  const x = tokensToRedeem\n  const y = totalSupply\n  const s = surplus\n\n  \u002F\u002F Bonding curve formula\n  return (x * s \u002F y) * ((1 - r) + (r * x \u002F y))\n}\n\n\u002F\u002F For UI display with example percentage:\nconst r = cashOutTaxRate \u002F 10000\nconst exampleFraction = 0.1  \u002F\u002F 10% of supply\nconst returnFraction = exampleFraction * ((1 - r) + (r * exampleFraction))\nconst returnPercent = (returnFraction * 100).toFixed(1)\nmessage = `Cashing out 10% of ${tokenSymbol} gets ~${returnPercent}% of treasury`\n```\n\n## Verification\n\nTest with known values:\n- `r = 0` (no tax): `reclaimFraction = f` (linear, full proportional return)\n- `r = 1` (100% tax): `reclaimFraction = f * f` (quadratic, harsh penalty)\n- `r = 0.1, f = 0.1`: `reclaimFraction = 0.091` (9.1%)\n- `r = 0.1, f = 0.5`: `reclaimFraction = 0.5 * (0.9 + 0.05) = 0.475` (47.5%)\n\n## Example\n\nIn the RulesetSchedule component's Juicy Summary:\n\n```typescript\n\u002F\u002F Cash out - redemption value using bonding curve formula\nconst cashOutTaxRate = ruleset.cashOutTaxRate \u002F 10000\nif (cashOutTaxRate >= 1) {\n  actionItems.push({ action: 'caution', message: 'Cash outs disabled' })\n} else if (cashOutTaxRate > 0) {\n  const x = 0.1 \u002F\u002F 10% of supply\n  const y = x * ((1 - cashOutTaxRate) + (cashOutTaxRate * x))\n  const returnPercent = (y * 100).toFixed(1)\n  actionItems.push({\n    action: 'cash-out',\n    message: `Cashing out 10% of ${tokenSymbol} gets ~${returnPercent}% of treasury`,\n  })\n}\n```\n\n## Notes\n\n- The `cashOutTaxRate` in Juicebox V5 is stored in basis points (0-10000)\n- A rate of 10000 (100%) means cash outs are effectively disabled\n- The formula assumes the treasury \"overflow\" is the redeemable amount\n- This bonding curve incentivizes holding - early\u002Fsmall cash outs get better rates\n- The CashOutCurve visualization component can show this graphically\n\n## References\n\n- Juicebox V5 JBRulesets contract\n- Cash out bonding curve formula: `y = (o * x \u002F s) * ((1 - r) + (r * x \u002F s))`\n  - Normalized to: `y = x * ((1 - r) + (r * x))` where x is fraction of supply\n","# Juicebox V5 Cash Out Bonding Curve\n\n## Problem\n\nWhen displaying cash out \u002F redemption values in Juicebox V5 UIs, it's tempting to show\na simple message like \"Cashing out returns 90% of proportional treasury share\" (for a\n10% tax rate). This is **incorrect** and misleading to users.\n\nThe actual redemption amount depends on a bonding curve formula where the percentage\nof supply being cashed out affects the return.\n\n## Context \u002F Trigger Conditions\n\n- Building UI that shows cash out \u002F redemption values\n- Explaining to users what they'll receive when cashing out\n- Any display of `cashOutTaxRate` impact on redemptions\n- When you see code like `retainedPercent = 100 - cashOutTax` - this is WRONG\n\n## Solution\n\n### The Bonding Curve Formula\n\n```\nreclaimAmount = (x * s \u002F y) * ((1 - r) + (r * x \u002F y))\n```\n\nWhere:\n- `x` = number of tokens being cashed out\n- `s` = surplus (treasury overflow available for redemption)\n- `y` = total token supply\n- `r` = cash out tax rate as decimal (0 to 1, where 0.1 = 10%)\n\n### Normalized Form\n\nWhen working with fractions (what % of supply is being cashed out):\n\n```\nLet f = x\u002Fy (fraction of supply being cashed out)\nreclaimFraction = f * ((1 - r) + (r * f))\n```\n\nWhere `reclaimFraction` is the fraction of surplus received.\n\n### Key Insight\n\nThe return depends on HOW MUCH of the supply is being cashed out, not just the tax rate.\nCashing out a larger percentage of supply returns proportionally less per token.\n\n### Example Calculation\n\nWith 10% cash out tax rate (`r = 0.1`), cashing out 10% of supply (`f = 0.1`):\n\n```javascript\nreclaimFraction = 0.1 * ((1 - 0.1) + (0.1 * 0.1))\nreclaimFraction = 0.1 * (0.9 + 0.01)\nreclaimFraction = 0.1 * 0.91\nreclaimFraction = 0.091  \u002F\u002F 9.1% of surplus\n```\n\nSo cashing out 10% of the supply gets ~9.1% of the surplus (not 9% as simple math would suggest).\n\n### Code Implementation\n\n```typescript\n\u002F\u002F WRONG - Don't do this:\nconst retainedPercent = 100 - (cashOutTaxRate \u002F 100)\nmessage = `Cashing out returns ${retainedPercent}% of proportional treasury share`\n\n\u002F\u002F CORRECT - Use bonding curve:\nfunction calculateCashOutReturn(\n  tokensToRedeem: number,\n  totalSupply: number,\n  surplus: number,\n  cashOutTaxRate: number \u002F\u002F 0-10000 basis points\n): number {\n  const r = cashOutTaxRate \u002F 10000  \u002F\u002F Convert basis points to 0-1\n  const x = tokensToRedeem\n  const y = totalSupply\n  const s = surplus\n\n  \u002F\u002F Bonding curve formula\n  return (x * s \u002F y) * ((1 - r) + (r * x \u002F y))\n}\n\n\u002F\u002F For UI display with example percentage:\nconst r = cashOutTaxRate \u002F 10000\nconst exampleFraction = 0.1  \u002F\u002F 10% of supply\nconst returnFraction = exampleFraction * ((1 - r) + (r * exampleFraction))\nconst returnPercent = (returnFraction * 100).toFixed(1)\nmessage = `Cashing out 10% of ${tokenSymbol} gets ~${returnPercent}% of treasury`\n```\n\n## Verification\n\nTest with known values:\n- `r = 0` (no tax): `reclaimFraction = f` (linear, full proportional return)\n- `r = 1` (100% tax): `reclaimFraction = f * f` (quadratic, harsh penalty)\n- `r = 0.1, f = 0.1`: `reclaimFraction = 0.091` (9.1%)\n- `r = 0.1, f = 0.5`: `reclaimFraction = 0.5 * (0.9 + 0.05) = 0.475` (47.5%)\n\n## Example\n\nIn the RulesetSchedule component's Juicy Summary:\n\n```typescript\n\u002F\u002F Cash out - redemption value using bonding curve formula\nconst cashOutTaxRate = ruleset.cashOutTaxRate \u002F 10000\nif (cashOutTaxRate >= 1) {\n  actionItems.push({ action: 'caution', message: 'Cash outs disabled' })\n} else if (cashOutTaxRate > 0) {\n  const x = 0.1 \u002F\u002F 10% of supply\n  const y = x * ((1 - cashOutTaxRate) + (cashOutTaxRate * x))\n  const returnPercent = (y * 100).toFixed(1)\n  actionItems.push({\n    action: 'cash-out',\n    message: `Cashing out 10% of ${tokenSymbol} gets ~${returnPercent}% of treasury`,\n  })\n}\n```\n\n## Notes\n\n- The `cashOutTaxRate` in Juicebox V5 is stored in basis points (0-10000)\n- A rate of 10000 (100%) means cash outs are effectively disabled\n- The formula assumes the treasury \"overflow\" is the redeemable amount\n- This bonding curve incentivizes holding - early\u002Fsmall cash outs get better rates\n- The CashOutCurve visualization component can show this graphically\n\n## References\n\n- Juicebox V5 JBRulesets contract\n- Cash out bonding curve formula: `y = (o * x \u002F s) * ((1 - r) + (r * x \u002F s))`\n  - Normalized to: `y = x * ((1 - r) + (r * x))` where x is fraction of supply\n",{"name":5,"description":7},"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fmejango\u002Fjuicy\u002Fjb-cash-out-curve",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add kbarbel640-del\u002Fskills --skill jb-cash-out-curve",{"tool":46,"command":47},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill jb-cash-out-curve",{"tool":49,"command":50},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill jb-cash-out-curve","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmejango\u002Fjuicy\u002Fjb-cash-out-curve\u002FSKILL.md",true,[],[55,81,104,122,127,147],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":28},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":28},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[88,64,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,69,23],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":28},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[111,112,113,114,115,116,117,65,118,102,23,119,64,120,121],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":123,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":28},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[114,113,112,111,121,116,117,65,115,102,23,118,119,64,120],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":28},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[134,135,136,137,138,139,140,141,142,143,144,145,146],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":28},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[154,155,156,157,65,158,159,33,160,119,161,162,163,164,165,78,166,167,168],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]