Skip to content

Instantly share code, notes, and snippets.

View patcito's full-sized avatar

Patrick Aljord patcito

View GitHub Profile

RPC Semaphore - Grafana Queries

Current Utilization (%)

rpc_semaphore_utilization

503 Rejections Rate

rate(rpc_semaphore_total_rejections[5m])
@patcito
patcito / gist:be55946cc48cc300560b320881e87da7
Created January 26, 2026 18:01
PUT Dashboard APY Fields - Frontend Guide
# PUT Dashboard APY Fields
## Endpoint
```
GET https://api.flyingtulip.com/status/put/dashboard
```
## Where to find APY
@patcito
patcito / gist:faf2b20cc2863e73e5df0426e2ce00e9
Last active January 26, 2026 13:55
PUT Dashboard API - Raw USD Values Documentation
# PUT Dashboard API - USD Field Naming
## Field Naming Convention
For each USD value, there are now two fields:
- `*Usd` - Raw decimal value with 2 decimal places (e.g., `"28870000.00"`)
- `*UsdFormatted` - Formatted with K/M/B suffixes (e.g., `"28.87M"`)
This follows the existing pattern used throughout the API: `deployed` / `deployedFormatted`.
# API Fixes for Decimals and Yield Endpoints
## Summary
Two fixes have been deployed to address issues with yield data and USD conversion in the API.
---
## Fix 1: Weekly Yield USD Conversion and Decimals Handling
@patcito
patcito / gist:c138f0dcbed5b357e08d6cf6efa11c52
Created January 24, 2026 13:18
PUT Dashboard API: Global Circuit Breaker Time to Reset
# PUT Dashboard API Change: Global Circuit Breaker Time to Reset
## Endpoint
`GET /status/put/dashboard`
## Change
Added two new fields to the chain-level `circuitBreaker` object:
| Field | Type | Description |
|-------|------|-------------|
@patcito
patcito / ftusd-dashboard-api.md
Created January 23, 2026 12:26
ftUSD Dashboard API - Consolidated Endpoint Documentation

ftUSD Dashboard API - Consolidated Endpoint

Overview

The /status/ftusd/dashboard endpoint has been updated to consolidate all ftUSD dashboard data into a single request. This provides:

  1. Chain-specific contract data (ftUSD token, MintAndRedeem, StakingVault)
  2. Per-chain metrics with 24h change percentages
  3. Historical series data (supply, price, backing, APY)
  4. Recent events (mints, redeems, staking activity)
@patcito
patcito / put-dashboard-api.md
Last active January 23, 2026 11:13
PUT Dashboard API - Consolidated Endpoint Documentation

PUT Dashboard API - Consolidated Endpoint

Overview

The /status/put/dashboard endpoint has been updated to consolidate all PUT dashboard data into a single request. This replaces the previous pattern where frontend had to:

  1. Fetch /tge/metrics to discover strategies
  2. Fetch /tge/metrics/series per strategy in parallel
  3. Fetch /tge/yield for yield data
  4. Process and convert all data to USD client-side
@patcito
patcito / ftusd-session-preview-guide.md
Created January 22, 2026 11:42
ftUSD Session & Preview API Guide for Frontend Developers

ftUSD Session & Preview API Guide

This guide covers the ftUSD preview endpoints for simulating operations and session management endpoints for session key delegation.

Base URL

Production: https://api.flyingtulip.com (or your configured API URL)


Preview Endpoints

@patcito
patcito / ftusd-dashboard-guide.md
Created January 22, 2026 11:42
ftUSD Dashboard API Guide for Frontend Developers

ftUSD Dashboard API Guide

This guide covers the ftUSD dashboard endpoints for displaying user positions, stats, and historical events.

Base URL

Production: https://api.flyingtulip.com (or your configured API URL)

Endpoints

1. Get ftUSD Status

@patcito
patcito / ft-api-endpoints-docs.md
Last active January 21, 2026 20:57
Flying Tulip API - Strategy Info & Time Series Endpoints Documentation

Flying Tulip API - Endpoints Documentation

TL;DR - What Each Metric Means

Metric What It Is Endpoint Field
Total FT Value FT currently held in PUTs, in USD GET /tge/metrics data.ft_allocation.chains[].value_usd
Total Investment Sum of all collateral tokens currently invested GET /tge/metrics data.collateral_supply.chains[].assets[].value_usd
All Time Yield Cumulative yield claimed from strategies (ever) GET /tge/metrics data.strategy_allocation.entries[].yield_claimed