DevalGuard — Parametric devaluation insurance on Cardano#96
Open
qmarquez wants to merge 3 commits intopyth-network:mainfrom
Open
DevalGuard — Parametric devaluation insurance on Cardano#96qmarquez wants to merge 3 commits intopyth-network:mainfrom
qmarquez wants to merge 3 commits intopyth-network:mainfrom
Conversation
Aiken smart contracts + React frontend for automatic devaluation insurance using Pyth price feeds on Cardano. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Real CIP-30 wallet connection (Eternl/Nami) on PreProd - Pool init, deposit, and subscribe transactions on-chain - Live ADA/USD price from Pyth Hermes - Demo mode with simulated pool and manual price slider - Guided hints UI with step-by-step walkthrough - Policies read from blockchain, filtered by wallet - Parametrized config via .env for judges - Wallet setup instructions in README Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Team Information
Team Name: DevalGuard
Submission Name: DevalGuard
Team Members: Quimey Marquez (@qmarquez)
Contact: quimey.marquez@gmail.com
Type of Contribution
Project Information
Project/Example Name: DevalGuard
Pyth Product Used:
Blockchain/Platform:
Description
What does this contribution do?
DevalGuard is the first parametric devaluation insurance protocol on any blockchain. Users pay a small premium in ADA and choose a devaluation threshold (5-20%). If the exchange rate crosses that threshold during the coverage period, the smart contract automatically pays out — no claims process, no intermediaries.
The system includes:
@pythnetwork/pyth-lazer-cardano-jsHow does it integrate with Pyth?
Pyth is the heart of the protocol. Every core operation depends on Pyth's price feed:
Integration uses the withdraw-script verification pattern (Pyth Pro/Lazer on Cardano):
pyth-network/pyth-lazer-cardanoAiken library@pythnetwork/pyth-lazer-cardano-jsSDKd799d287105dea9377cdf9ea8502a83d2b9eb2d2050a8aea800a21e6What problem does it solve?
In Argentina, 1 in 3 people use crypto to hedge devaluation. But the only option is converting all savings to stablecoins. DevalGuard offers an insurance alternative — pay a small premium and get automatic coverage. No DeFi protocol on any chain offers this today.
Testing & Verification
Prerequisites
Setup & Run
Test Results
Checklist
Notes for Reviewers
This creates the first
/lazer/cardano/directory in the repository. The project demonstrates deep Pyth integration where the oracle is not just a "nice to have" — it's the core mechanism that drives the entire insurance protocol.