CRE Workflow
Overview
Workflow Steps
Step 1: fetch_eth_price → Chainlink Data Feed (ETH/USD)
Step 2: fetch_lido_tvl → DeFiLlama HTTP API
Step 3: fetch_aave_tvl → DeFiLlama HTTP API
Step 4: fetch_maker_tvl → DeFiLlama HTTP API
Step 5: compute_systemic_risk → JavaScript (weighted score)
Step 6: write_risk_score → eth-transaction (setRiskScore)
Step 7: log_result → JavaScript (console debug)Step 1 — ETH/USD from Chainlink Data Feed
Steps 2–4 — Protocol TVL from DeFiLlama
Step 5 — Compute Systemic Risk Index
Risk Factors & Weights
Factor
Weight
Baseline
Score Formula
Final Score
Example Output
Step 6 — Write Score On-Chain
Environment Variables
Variable
Description
Console Log Output (Step 7)
Simulating the Workflow Locally
Last updated