Skip to content

[codex] Use websocket for morning soil refresh - #425

Merged
fr1jo merged 1 commit into
mainfrom
codex/ws-soil-refresh
May 8, 2026
Merged

[codex] Use websocket for morning soil refresh#425
fr1jo merged 1 commit into
mainfrom
codex/ws-soil-refresh

Conversation

@fr1jo

@fr1jo fr1jo commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • gate morning soil freshness work to only run when Pinto is below peg, Morning is active, and soil remains available
  • replace HTTP filter polling for Sow events with a dedicated websocket event watcher
  • keep a visible-tab 10 second polling fallback for missing or failed websocket connections

Root cause

The previous Wagmi event watcher used HTTP transports, so Viem created stateful RPC filters and polled them with eth_getFilterChanges. Those filters can expire or disappear at the provider, producing repeated filter not found errors.

Validation

  • yarn biome check src/state/protocol/field/field.updater.ts src/utils/wagmi/chains.ts
  • yarn build

Build still reports existing Rollup/large chunk warnings.

@netlify

netlify Bot commented May 8, 2026

Copy link
Copy Markdown

Deploy Preview for pintomoney ready!

Name Link
🔨 Latest commit ab63faa
🔍 Latest deploy log https://app.netlify.com/projects/pintomoney/deploys/69fe1943f259fa000870f8be
😎 Deploy Preview https://deploy-preview-425.preview.pinto.money
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@fr1jo
fr1jo marked this pull request as ready for review May 8, 2026 17:45
@fr1jo
fr1jo merged commit 7748bc8 into main May 8, 2026
6 checks 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.

2 participants