{
  "address": "570d44f9c1574ecd2104fbdcdc9fce0f",
  "category": "other",
  "question": "Given 149.5 JPY per 1 USD and 0.783 GBP per 1 USD (dated 2026-09-30, sourced from Illustrative example rates for cross-rate arithmetic; replace rate_from, rate_to, rate_date, and rate_source with your own dated, cited quotes (for example the ECB euro reference rates page).), how much is 10000 JPY in GBP?",
  "answer": "52.37 GBP",
  "askedBy": {
    "kind": "guest",
    "display": "method deck",
    "stamped": false,
    "id": null
  },
  "answeredBy": "method",
  "madeAt": "2026-09-30T22:39:30.722Z",
  "validUntil": null,
  "validityClass": "forever",
  "sources": [
    {
      "label": "Cross Rate",
      "url": "https://www.investopedia.com/terms/c/crossrate.asp"
    }
  ],
  "supersedes": null,
  "supersededBy": null,
  "isSeed": false,
  "seedSource": null,
  "seedAttribution": null,
  "duplicateOfQid": null,
  "publishedAt": null,
  "unpublishedAt": null,
  "voteCount": 0,
  "queuedForSubstrate": false,
  "answerMethod": "method",
  "unsourced": false,
  "source": {
    "kind": "url",
    "value": "https://www.investopedia.com/terms/c/crossrate.asp",
    "retrieved_utc": "2026-09-30T19:29:48Z"
  },
  "qsha256": "9e65004cc8d5ca049dd9846d402620b7dfb3a083c361362761bb9209ef3d5edc",
  "runOne": null,
  "cardContractVersion": "card_contract/1",
  "deck_id": "method-deck",
  "deck_title": "Method Deck",
  "method": {
    "name": "Currency cross rate",
    "version": "1",
    "source_url_or_file": "methods/currency-cross-rate.cjs",
    "sha256_of_method_file": "b53c11ca67bc425d64cf1bf46e9efd80fe19aca01dc83f82091c5055ed18ae2a"
  },
  "receipt": {
    "inSubstrate": false,
    "local": true,
    "modelCallsAtMint": 0,
    "tokensAtMint": 0
  },
  "method_deck": {
    "inputs": [
      {
        "name": "amount",
        "type": "number",
        "required": true,
        "description": "The amount, in from_currency, to convert",
        "min": 0
      },
      {
        "name": "base_currency",
        "type": "string",
        "required": true,
        "description": "Label of the common base currency both rates are quoted against (e.g. \"USD\")"
      },
      {
        "name": "from_currency",
        "type": "string",
        "required": true,
        "description": "Label of the currency the amount is in (e.g. \"JPY\")"
      },
      {
        "name": "to_currency",
        "type": "string",
        "required": true,
        "description": "Label of the currency to convert into (e.g. \"GBP\")"
      },
      {
        "name": "rate_from",
        "type": "number",
        "required": true,
        "description": "Units of from_currency per 1 unit of base_currency",
        "min": 0
      },
      {
        "name": "rate_to",
        "type": "number",
        "required": true,
        "description": "Units of to_currency per 1 unit of base_currency",
        "min": 0
      },
      {
        "name": "rate_date",
        "type": "string",
        "unit": "ISO date",
        "required": true,
        "description": "The date rate_from and rate_to apply to; change it together with the rates to use a different day."
      },
      {
        "name": "rate_source",
        "type": "string",
        "required": true,
        "description": "Citation for where rate_from and rate_to came from; change it together with the rates and rate_date when using a different table."
      }
    ],
    "outputs": [
      {
        "name": "result",
        "description": "amount converted into to_currency"
      }
    ],
    "steps": [
      "Both input rates are quoted the same way: units of that currency per 1 unit of the common base_currency.",
      "The visitor supplies rate_from, rate_to, rate_date, and rate_source together; this method never looks up or fetches a rate itself, so any newer official table may be substituted for all four together.",
      "Compute the cross rate (units of to_currency per 1 unit of from_currency): cross_rate = rate_to / rate_from.",
      "Convert the amount: result = amount * cross_rate.",
      "Round result to 2 decimal places."
    ],
    "constants": [],
    "examples": [
      {
        "name": "worked example",
        "inputs": {
          "amount": 10000,
          "base_currency": "USD",
          "from_currency": "JPY",
          "to_currency": "GBP",
          "rate_from": 149.5,
          "rate_to": 0.783,
          "rate_date": "2026-09-30",
          "rate_source": "Illustrative example rates for cross-rate arithmetic; replace rate_from, rate_to, rate_date, and rate_source with your own dated, cited quotes (for example the ECB euro reference rates page)."
        },
        "expected": {
          "answer": "52.37 GBP"
        },
        "check": "By hand: cross_rate = 0.7830/149.50 = 0.0052366555...; 10000 JPY * 0.0052366555... = 52.366555..., rounded to 2 decimals is 52.37."
      },
      {
        "name": "test vector: USD/EUR to GBP cross",
        "inputs": {
          "amount": 100,
          "base_currency": "EUR",
          "from_currency": "USD",
          "to_currency": "GBP",
          "rate_from": 1.1,
          "rate_to": 0.86,
          "rate_date": "2026-09-30",
          "rate_source": "Illustrative example rates for cross-rate arithmetic; replace rate_from, rate_to, rate_date, and rate_source with your own dated, cited quotes (for example the ECB euro reference rates page)."
        },
        "expected": {
          "answer": "78.18 GBP"
        },
        "check": "By hand: cross_rate = 0.86/1.10 = 0.781818...; 100 * 0.781818... = 78.1818..., rounded to 2 decimals is 78.18."
      },
      {
        "name": "test vector: identical rates give a 1:1 cross rate",
        "inputs": {
          "amount": 250,
          "base_currency": "USD",
          "from_currency": "CAD",
          "to_currency": "AUD",
          "rate_from": 1.35,
          "rate_to": 1.35,
          "rate_date": "2026-09-30",
          "rate_source": "Illustrative example rates for cross-rate arithmetic; replace rate_from, rate_to, rate_date, and rate_source with your own dated, cited quotes (for example the ECB euro reference rates page)."
        },
        "expected": {
          "answer": "250.00 AUD"
        },
        "check": "By hand: cross_rate = 1.35/1.35 = 1 exactly, so result = amount unchanged = 250.00."
      }
    ],
    "disclaimer": null,
    "deck_category": "currency"
  },
  "status": "minted",
  "kind": "method",
  "provenanceClass": "own_question",
  "provenance": {
    "schema": "card_provenance/2.0.0",
    "chain": [
      {
        "source": {
          "kind": "url",
          "value": "https://www.investopedia.com/terms/c/crossrate.asp",
          "retrieved_utc": "2026-09-30T19:29:48Z"
        },
        "sha256": "4ea67e5d678d3de902c87ef47f4678f369e09ef3c16f4d27e0bc53d51435c165",
        "supersedes": null,
        "added_utc": "2026-09-30T22:39:30.722Z",
        "added_by": "method:Currency cross rate",
        "why": "the method that computed this answer",
        "check": null,
        "status_label": "pending",
        "signature": null
      }
    ]
  }
}
