Skip to content

Read a gate's fixed parameters, token metadata and confirmed ENS blanks once - #84

Merged
Ocnrb merged 3 commits into
mainfrom
fix/chain-read-cache
Oct 5, 2026
Merged

Ocnrb merged 3 commits into
mainfrom
fix/chain-read-cache

Conversation

@Ocnrb

@Ocnrb Ocnrb commented Oct 5, 2026

Copy link
Copy Markdown
Member
  • A gate's six initialize parameters and a token's symbol and decimals are kept per address in the bridge, so opening the app reads only price and duration again; measured at start, 238 chain reads became 110
  • A "no ENS name" a provider answered is kept for a day; a lookup no provider answered fails instead of being kept as a blank
  • cloudflare-eth.com leaves the ENS list: it answers every lookup with an internal error

Ocnrb and others added 3 commits October 5, 2026 22:33
- The six values PomboGate sets in initialize are kept per gate address, so a later read asks only for price and duration
- Token symbol and decimals are kept once both reads succeed, and concurrent first reads share one request

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- A null some provider answered is kept and stored like a name; a lookup no provider answered now fails, so its null keeps the short TTL

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- It answers the reverse lookup with -32603 "Internal error" and even eth_blockNumber with -32046

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@Ocnrb
Ocnrb merged commit 086b248 into main Oct 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant