TODO_TAGS_REVIEW

Valuation Double-Count / Decimal Linter

Lints Robinhood Chain stock-token USD valuation expressions for the double-count bug: the Chainlink price feed already includes corporate actions, so multiplying raw balance by price and then by uiMultiplier applies the same corporate action twice. Compares the tested valuation against the correct expression and flags the double-count when present, with the corrected formula returned. High hit-rate node for any developer writing a valuation path against 18-decimal stock tokens and an 8-decimal feed. Zero network, zero PII.

Tool URL: https://ainumbers.co/chaingraph/art-319-rhc-valuation-linter.html AP2/Policy Mandate export: yes

post/v1/tools/lint_stock_token_valuation

Request

  • Base URL: https://ainumbers.co
  • URL: https://ainumbers.co/v1/tools/lint_stock_token_valuation
  • Auth: none declared

Request body

applied_multiplier_in_expressionunknown
chainlink_price_usdunknown
computed_usd_value_under_testunknown
raw_balanceunknown
ui_multiplierunknown

Response

Successful tool execution result

computed_usd_value_under_testinteger
correct_valueinteger
corrected_expressionstring
deltainteger
discrepancystring
double_counted_valueinteger
verdictstring

Changes

No recorded changes to this operation across all 1 revision of this API.