fix: read UPI creation rates from Polygon Chainlink - #77
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UPI estimates and deposit preparation queried an absent INR/USD feed in Ethereum's registry and failed live. Read the officially listed Polygon INR/USD proxy through a dedicated Polygon client, verify chain 137, and preserve inversion, upward maker-floor rounding, and the 24-hour freshness gate. Alipay/CNY keeps its existing Ethereum reader.
Adds optional
upiCreationRateRpcUrl/upiCreationRateTransportconfiguration, currency-correct errors, invalid-round and transport-isolation regressions, and reproducible live estimate guidance. Existing staging-only UPI gates, SDK 0.14.1, and package version are unchanged.Validation: frozen install and full
bun run cipassed, including 349 tests, audit, build, and packed ESM/CJS/TypeScript compatibility checks. Read-only live Polygon observation at block 93545501: decimals 8, answer 1050700, updatedAt 1788986145, age 37140 seconds; inverted rate 95.17464547444561 INR/USD. Official feed: https://data.chain.link/feeds/polygon/mainnet/inr-usd. No publication or funded transactions.