Skip to content

feat: add daily APY snapshot bot for X and Farcaster#229

Open
samsonmbah002 wants to merge 1 commit into
Dgetsylver:mainfrom
samsonmbah002:main
Open

feat: add daily APY snapshot bot for X and Farcaster#229
samsonmbah002 wants to merge 1 commit into
Dgetsylver:mainfrom
samsonmbah002:main

Conversation

@samsonmbah002
Copy link
Copy Markdown

Summary

Adds a daily snapshot bot (scripts/daily_post.ts) that:

  • Fetches live APY rates for all pools/assets on Etherfuse and Fixed pools
  • Computes net APY at standard leverage brackets (2x, 3x, 5x, 8x, 10x)
  • Formats and posts a readable snapshot to X (Twitter) and Farcaster
  • Logs failures gracefully without crashing
  • Stores credentials securely via environment variables

Related Issue

Closes #92

Checks

  • Script follows existing patterns in scripts/ directory
  • Uses existing Stellar SDK dependency for on-chain data
  • Env-based credential storage (no secrets in code)
  • Failure to post logs error but does not crash the process

Notes

Run with: npx tsx scripts/daily_post.ts

Required env vars:

  • X_API_KEY, X_API_SECRET, X_ACCESS_TOKEN, X_ACCESS_SECRET — Twitter API v2 credentials
  • NEYNAR_API_KEY, NEYNAR_SIGNER_UUID — Neynar Farcaster API credentials

…ost.ts)

Implements issue Dgetsylver#92 - a script that fetches live APY rates for all pools/assets,
computes net APY at standard leverage brackets, and posts a formatted snapshot
to X (Twitter) and Farcaster. Credentials configured via env vars.
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

@samsonmbah002 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

I3: Twitter / Farcaster daily-rates bot

2 participants