{
  "schema": "dn-research-method/v1",
  "commission": "N033",
  "version": "1.0.0",
  "checkedOn": "2026-12-04",
  "slug": "stablecoin-invoice-refund-token-fiat-value-2027",
  "title": "Refunding a Stablecoin Invoice in 2027: Agree Whether You Return Tokens or Fiat Value",
  "evidenceStatus": "Current primary provider documents reviewed; formulas and all example rates, tokens and events are original hypothetical DN work. No refund rights or execution result is inferred.",
  "sources": [
    {
      "title": "Stablecoin payments",
      "publisher": "Stripe",
      "url": "https://docs.stripe.com/payments/stablecoin-payments",
      "checkedOn": "2026-12-04",
      "supports": "Named Stripe flow: full and partial refund support and return as stablecoins to the original wallet; no universal refund-valuation rule."
    },
    {
      "title": "USDC Terms",
      "publisher": "Circle",
      "url": "https://www.circle.com/legal/usdc-terms",
      "updated": "2026-10-15",
      "checkedOn": "2026-12-04",
      "supports": "Terms scoped outside the EEA; qualified direct redemption and non-guaranteed third-party market price are distinct."
    },
    {
      "title": "USDC contract addresses",
      "publisher": "Circle",
      "url": "https://developers.circle.com/stablecoins/usdc-contract-addresses",
      "checkedOn": "2026-12-04",
      "supports": "Official identifiers are network-specific; supports the bounded asset/network verification context."
    }
  ],
  "method": [
    "Reconcile one eligible original invoice basis and its matched received token quantity outside the worksheet, including prior refunds and disputed allocations.",
    "Record one proposed proportional refund share and the applicable valuation rule reference, including the conversion event.",
    "Enter a documented hypothetical or independently obtained rate in fiat currency units per token and its source/time reference, or explicitly preserve unknown.",
    "Calculate both original-token and original-fiat scenarios; display the user-chosen scenario without treating selection as authority.",
    "Record reader-declared receipt, refund-authority, asset/network and destination evidence, plus a separate merchant-borne fee.",
    "Preserve null for unknown quantities and always keep refundAuthorised and transferInitiated false."
  ],
  "formulas": {
    "fiatBasis": "half-up-cent(original eligible fiat invoice value × refund percentage /100)",
    "tokenRuleQuantity": "half-up-to-six-decimals(original eligible received token units × refund percentage /100)",
    "fiatRuleQuantity": "ceil-to-six-decimals(rounded fiat basis / entered fiat-currency-units-per-token rate); null when rate unknown",
    "tokenRuleFiatValue": "half-up-cent(token-rule quantity × entered rate); null when rate unknown",
    "fiatRuleFiatValue": "half-up-cent(fiat-rule quantity × entered rate); null when rate unknown",
    "tokenDifference": "fiat-rule quantity minus original-token-rule quantity; signed, null when rate unknown",
    "fiatValueDifference": "fiat-rule reference value minus token-rule reference value; signed, null when rate unknown",
    "fiatRuleRoundingOverage": "displayed fiat-rule reference value minus rounded fiat basis",
    "merchantReferenceOutlay": "chosen scenario reference fiat value plus separate merchant-borne fee; null if rule, rate or fee unknown",
    "reviewState": "conflict if any evidence status conflicts; otherwise unresolved if any required status is unknown; otherwise recorded declarations, never transfer approval"
  },
  "inputBounds": {
    "fiatPrecision": 2,
    "tokenPrecision": 6,
    "ratePrecision": 8,
    "percentagePrecision": 2,
    "originalFiat": {
      "minimumExclusive": "0",
      "maximum": "100000000"
    },
    "originalTokens": {
      "minimumExclusive": "0",
      "maximum": "1000000000"
    },
    "refundPercent": {
      "minimum": "0",
      "maximum": "100"
    },
    "rate": {
      "minimumExclusive": "0",
      "maximum": "1000000"
    },
    "merchantFee": {
      "minimum": "0",
      "maximum": "100000000"
    },
    "calculatedFiatRuleQuantityMaximum": "1000000000",
    "referenceTextMaximumCharacters": 240,
    "format": "DOM values must be strings. Unsigned ordinary decimals only, without grouping commas or exponents; blank required known values reject."
  },
  "workedExample": {
    "inputsFile": "example.json",
    "handCalculated": true,
    "fictionalToken": "DEMOUSD",
    "originalFiat": "1000.00",
    "originalTokens": "1000.000000",
    "refundPercent": "25.00",
    "hypotheticalFiatPerToken": "0.80",
    "fiatBasis": "250.00",
    "tokenRuleQuantity": "250.000000",
    "tokenRuleFiatValue": "200.00",
    "fiatRuleQuantity": "312.500000",
    "fiatRuleFiatValue": "250.00",
    "tokenDifference": "62.500000",
    "fiatValueDifference": "50.00",
    "separateMerchantFee": "10.00",
    "chosenRule": "fiat",
    "merchantReferenceOutlay": "260.00",
    "destinationStatus": "unknown",
    "reviewState": "unresolved",
    "refundAuthorised": false,
    "transferInitiated": false
  },
  "independentChangedExamples": [
    {
      "change": "Hypothetical rate 1.25, destination review declared recorded",
      "fiatRuleQuantity": "200.000000",
      "tokenRuleFiatValue": "312.50",
      "tokenDifference": "-50.000000",
      "fiatValueDifference": "-62.50",
      "merchantReferenceOutlay": "260.00"
    },
    {
      "change": "Choose token rule at the default hypothetical 0.80 rate",
      "chosenTokenQuantity": "250.000000",
      "chosenFiatReferenceValue": "200.00",
      "merchantReferenceOutlay": "210.00"
    },
    {
      "change": "One-cent fiat basis at rate3",
      "fiatRuleQuantity": "0.003334",
      "fiatRuleFiatValue": "0.01"
    },
    {
      "change": "One-cent fiat basis at rate1000000",
      "fiatRuleQuantity": "0.000001",
      "fiatRuleFiatValue": "1.00",
      "fiatRuleRoundingOverage": "0.99"
    }
  ],
  "unknownPolicy": "Explicit unknown rate, rule and fee states ignore stale associated input fields and preserve null. Rate-unknown original-token quantity remains known; fiat conversion, fiat values and reference outlay remain null. Rule-unknown preserves both comparison scenarios but chosen quantity and outlay are null. Unknown fee preserves scenario quantities but outlay is null. Evidence unknown/conflict does not erase conditional arithmetic or authorize action.",
  "limits": [
    "One matched original payment basis and one proportional adjustment; no cumulative refund ledger or duplicate-payment protection.",
    "No determination of legal rights, contractual consent, tax, invoice ownership, provider eligibility or supported refund quantity.",
    "No live quotes, par guarantee, guaranteed execution price, liquidity check, acquisition-cost model or network query.",
    "All verification statuses are reader declarations; no actual destination or wallet address is accepted.",
    "Two-decimal fiat and six-decimal token conventions are this model only; actual currency, token and provider precision can differ.",
    "Reference outlay uses the entered valuation plus a separate merchant fee; no fee is deducted from the customer token quantity.",
    "No transfer, refund instruction, approval, persistence or authentication occurs."
  ],
  "validation": {
    "command": "node --test tests.mjs",
    "testGroups": 11,
    "expectedAnswers": "Independently hand-computed before calculator execution.",
    "browserCases": "browser-cases.json supplies default, changed, unknown, conflict, semantic-invalid and blank-invalid cases to the shared frontend lifecycle harness."
  },
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "licenseScope": "Original DN compilation, method, software and fictional examples only; linked third-party works retain their rights."
}
