Superteam Earn
Pyth Network

1

Abhishek

Developer | Add Methods to Parse Pyth Benchmark Prices on Aptos Contracts

by Pyth Network

|
|
1,000PYTH

Total Prizes

1,000

PYTH

1st

4

SUBMISSIONS

Syncing...

REMAINING

About the Bounty

Your Mission:

Benchmark prices can be verified and consumed on the EVM chain using the [parsePriceFeedUpdates](https://docs.pyth.network/price-feeds/api-reference/evm/parse-price-feed-updates) method. Implement a similar method to use Benchmark prices on Pyth’s Aptos contract.


Implementation Suggestion:

The source code of the Pyth Aptos contract lives here https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/aptos/contracts/sources/pyth.move . Your goal will be to add a new function to its public interface that parses and return benchmark prices.


Consult the EVM implementation of the same method for a hint on how to implement this:

https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol#L284


About:

The Pyth Network is a first-party financial data oracle network that delivers on-demand, low-latency price data for over 500 assets on nearly 50 EVM chains and another 10 non-EVM chains. As of today, there are about $5B in Total Value Secured by the Pyth Price Feeds and the latter has facilitated more than $400B in total trading volume across since inception.


Today's oracles are push oracles where the oracle operator is responsible for submitting price updates to the blockchain. Pyth is different: it is a pull oracle where anyone can update the on-chain price permissionless.


To learn more about Pyth, and Pull Oracles, please check the documentation here.


Submission Requirements:

  • A pull request containing the implementation of this new function on Superteam website.

Grading:

  • Douro Labs engineers (Pyth Network contributors) will review all codes submitted within five days of the submission deadline.

  • The winner of this bounty will be selected based on how elegant and secure the code.

Bounty Prizes:

  • The developer with the best/selected code will be rewarded 1,000 PYTH

Resources


Terms & Disclaimer:

Pyth Data Association ("PDA") is a nonprofit Swiss association whose mission is to support the independent growth and development of the Pyth Network. PDA has established the Pyth Ecosystem Grant Program (this "Program") to encourage independent contributions from new participants on the Pyth Network. Nothing in this Program, nor any related documentation or webpage, should be construed as establishing an employment, contractor, partnership, joint venture, legal or agency relationship for any purpose between PDA and any grantee or any of his or her personnel, agent, assigns or other representatives of any kind, and no authority to bind PDA shall be granted to anyone at any time whatsoever. The grantee will report to all applicable government agencies as income all compensation received by them pursuant to this Program. Grantee shall assign all title and interest in the deliverables (including all Intellectual Property Rights) to PDA; provided that, PDA shall irrevocably and perpetually grant to the general public, including the Pyth token holder community, all rights and licenses in and to the deliverables pursuant to the terms and conditions of the Apache 2.0 open source license. Furthermore, PDA reserves the right to conduct any and all compliance screenings, including but not limited to, checks against sanctions lists, identity verification processes, and other Anti-Money Laundering (AML) and Know Your Customer (KYC) procedures as mandated by applicable law and within the relevant legal framework. Such compliance measures may impact or impede the disbursement of any awards under this Program.


By accessing and using this website, including but not limited to participating in Pyth Ecosystem Grant Program, you acknowledge and agree to the terms outlined in Pyth Data Association's Privacy Policy, which can be reviewed at https://pythdataassociation.com/privacy-policy.


SKILLS NEEDED

Blockchain

CONTACT

Reach outif you have any questions about this initialBounty