Skip to content

feat: integrate Kong GraphQL API as single source of truth for strate… - #550

Merged
murderteeth merged 2 commits into
mainfrom
feat-kong-strategies
Nov 22, 2025
Merged

feat: integrate Kong GraphQL API as single source of truth for strate…#550
murderteeth merged 2 commits into
mainfrom
feat-kong-strategies

Conversation

@matheus1lva

Copy link
Copy Markdown
Collaborator

Integrates kong api data into ydaemon for strategies and debts.

image (left - localhost | right - prod)

@murderteeth murderteeth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strategies between dev and live are different for usdc-1
https://yearn.fi/v3/1/0xBe53A109B494E5c9f97b9Cd39Fe969BE68BF6204?tab=strategies

image

Comment thread internal/indexer/indexer.kong.go Outdated
- Add graceful handling when KONG_POSTGRES_DSN is not configured
- Remove Kong data refresh from metadata scheduler (APY data now stored during indexing)
- Clean up unused Kong data mutex code and fetchKongVaultDataFromDB function
- Add database connection checks to prevent panics when DB is unavailable
- Simplify debt assignment logic with cleaner if-else-if chain and early break
- Fix Kong TVL conversion to prevent precision loss for large values
- Optimize strategy processing by removing unnecessary error handling overhead

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@murderteeth
murderteeth self-requested a review November 22, 2025 01:16
@murderteeth
murderteeth merged commit a1d6095 into main Nov 22, 2025
3 checks passed
@murderteeth
murderteeth deleted the feat-kong-strategies branch November 22, 2025 01:31
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