Credit Card Pre-Auth as DeFi Collateral
Chromion Hackathon • Powered by Chainlink
One price spike = lose everything
Lock 150%+ just for basic leverage
Only crypto accepted as collateral
Need massive crypto holdings
DeFi needs traditional finance collateral integration
Turn your credit card into DeFi collateral
Bridge to Stripe API
Decentralized guardian
Tamper-proof data
Chainlink Functions → Stripe API → 150% credit hold created
Position opened with 2x-5x LINK exposure!
Chainlink Functions → Stripe API → Credit hold released
Remaining LINK returned to user
Chainlink Automation checks: block.timestamp >= preAuthExpiryTime
checkUpkeep() identifies expired pre-auth (7+ days)
DON executes payment capture via Stripe API
performUpkeep() calls Chainlink Functions with Stripe source
Pre-auth amount charged to user's credit card
User can still trade and close position normally
Chainlink Automation checks: position LTV > 65% threshold
checkUpkeep() identifies unsafe collateral ratio
Same flow as manual close - gets USDC to cover debt
performUpkeep() calls closeUnsafePositionPublic()
Aave debt repaid → LINK withdrawn → Flash loan repaid
Remaining LINK returned to user (protection, not liquidation)
Lines 578-589 → Stripe pre-auth requests
Lines 520-548 → Payment processing responses
Lines 649-688 → checkUpkeep() monitors positions
Lines 695-733 → performUpkeep() executes actions
Lines 606-620 → closeUnsafePositionPublic() protection
Lines 502-506 → Real-time LINK/USD price
Lines 756-770 → LTV risk calculations
Live demo: creditshaft-demo.vercel.app
Full Chainlink integration on Sepolia testnet