Skip to content

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

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, so opening the app reads only price and duration again; measured at start, 224 chain reads became 140
  • A "no ENS name" some provider answered is kept for a day, and sync carries names only, so blanks are not resolved again after every merge
  • 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 null that only failures produced keeps the short TTL and is retried at start
- Sync carries names only, both ways: Android re-exports the nulls old web payloads left in its slice, and a remote one overwrote the null a provider had just confirmed here

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>
@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
p2p-public-chat Ready Ready Preview Oct 5, 2026 10:13pm UTC
pombo Ready Ready Preview Oct 5, 2026 10:13pm UTC

@Ocnrb
Ocnrb merged commit c7451fb into main Oct 5, 2026
3 checks passed

This branch was successfully deployed

2 active deployments
Preview – p2p-public-chat — 4352b396 Deployed Oct 5, 2026 by vercel[bot]
Preview – pombo — 4352b396 Deployed Oct 5, 2026 by vercel[bot]
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