Skip to content

Los magnificos hackathon 2026#111

Open
rodrigoioyz wants to merge 53 commits intopyth-network:mainfrom
rodrigoioyz:main
Open

Los magnificos hackathon 2026#111
rodrigoioyz wants to merge 53 commits intopyth-network:mainfrom
rodrigoioyz:main

Conversation

@rodrigoioyz
Copy link

Pyth Examples Contribution

Type of Contribution

  • New Example Project (Adding a new example to demonstrate Pyth integration)
  • Bug Fix (Fixing an issue in existing examples)
  • Documentation Update (Improving README, comments, or guides)
  • Enhancement (Improving existing functionality or adding features)
  • Hackathon Submission (Submitting a project from a hackathon)

Project Information

Project/Example Name:

Pyth Product Used:

  • Pyth Price Feeds
  • Pyth Entropy
  • Multiple Products
  • Other: ___________

Blockchain/Platform:

  • Ethereum/EVM
  • Solana
  • Aptos
  • Sui
  • Fuel
  • Starknet
  • TON
  • Other: ___________

Description

What does this contribution do?

How does it integrate with Pyth?

What problem does it solve or demonstrate?

Directory Structure (for new examples)

[product]/[example-name]/
├── contract/          # Smart contracts (if applicable)
├── app/              # Frontend application (if applicable)  
├── README.md         # Project documentation
└── ...

Testing & Verification

How to Test This Contribution

Prerequisites

  • Node.js version: ___
  • Other dependencies: ___

Setup & Run Instructions

# Add your setup and run commands here
cd [path-to-your-example]
npm install
# ... other commands

Deployment Information (if applicable)

Network:

Contract Address(es):

Demo URL:

Checklist

Code Quality

  • Code follows existing patterns in the repository
  • Proper error handling implemented
  • No hardcoded values (use environment variables where appropriate)

Testing

  • Tested locally and works as expected
  • All existing functionality still works (no breaking changes)

Additional Context

Related Issues

Fixes #

Screenshots/Demo (if applicable)

Notes for Reviewers


Thank you for contributing to Pyth Examples!

rodrigoioyz and others added 30 commits March 22, 2026 10:40
Updated contact email in README and added contribution types.
- lib/utils.ak: health_ratio, can_adjust, is_liquidatable, liquidator_payout, protocol_payout
- lib/types/cdp.ak: CdpDatum with ada_locked, minted_amount, owner
- validators/synth-dolar.ak: add Liquidate variant to Action type

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…compatibility (global, process, Buffer polyfills)
Restores the file to commit f999c63, removing Liquidate action variant
and parameter renaming changes made during this session.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 tests covering health_ratio, can_adjust, is_liquidatable,
liquidator_payout, protocol_payout and pow helper.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Forward direction ADA lovelaces → synth USD micro-tokens.
Includes 4 unit tests: 1 ADA, 2 ADA, 1.5 ADA and round-trip.
All 21 tests passing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 tests covering negative ADA values (Burn case):
burn_1_ada, burn_2_ada, burn_1_5_ada and mint_burn_symmetry.
All 25 tests passing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Covers: what Synth Peso is, mint/burn/liquidate flow, Pyth Lazer
integration details, build instructions and project structure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Burn computes synth_burned = ada_withdrawn * price (forward direction),
not ada_returned = synth_burned / price (reverse). Matches actual code.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Protocol parameters: collateral_ratio=150%, liquidation_threshold=120%
- Step-by-step user flow for mint, burn and liquidation
- Quality assurance: edge cases, oracle failure and price anomaly handling
- Business: target users, market need, competitive table, revenue, scalability

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
lordkhyron and others added 23 commits March 22, 2026 16:46
[Cardano][Pyth] Fullstack dashboard + backend price API integration
npm install + npm run dev for both frontend (Vite) and backend (ts-node-dev).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Documents 3 endpoints: get-adaprice, get-adaprice-history, get-adaprice-range.
Includes parameters, response schemas, error codes and TradingView compatibility note.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
pyth_policy_id: d799d287105dea9377cdf9ea8502a83d2b9eb2d2050a8aea800a21e6

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants