Skip to content

Instantly share code, notes, and snippets.

View mbukeRepo's full-sized avatar
🔨
founder-mode

Ishimwe Prince mbukeRepo

🔨
founder-mode
  • Ancapistan
View GitHub Profile
@mbukeRepo
mbukeRepo / gist.md
Created April 23, 2026 10:44
Cross-Chain Liquidation Guard

Cross-Chain Liquidation Guard: Architecture Deep Dive

How lzRead makes it possible to watch your collateral across every chain — and save it before the market does.


The Problem: Your Health Factor Lives on Five Different Chains

DeFi power users don't keep all their collateral in one place. They might have ETH locked in Aave on Ethereum mainnet, WBTC supplied on Radiant on Arbitrum, and a stablecoin borrow open on Morpho on Base — all at the same time.

@mbukeRepo
mbukeRepo / rag.sql
Last active December 4, 2024 20:49
supabase document retrieval query optimization
CREATE INDEX IF NOT EXISTS idx_documents_embedding
ON documents USING ivfflat (embedding vector_cosine_ops);
CREATE INDEX IF NOT EXISTS idx_documents_metadata
ON documents USING GIN (metadata);
CREATE OR REPLACE FUNCTION match_documents (
query_embedding vector(1536),
match_count int DEFAULT null,
filter jsonb DEFAULT '{}'