Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create SOL price provider and integrate it with airdropper #338

Closed
ivandzen opened this issue Dec 1, 2021 · 0 comments
Closed

Create SOL price provider and integrate it with airdropper #338

ivandzen opened this issue Dec 1, 2021 · 0 comments
Assignees

Comments

@ivandzen
Copy link
Contributor

ivandzen commented Dec 1, 2021

Implement PriceProvider component to airdropper service.
PriceProvider must periodically fetch SOL price from pyth.network oracle contract and calculate airdrop amount in NEONs. Airdrop amount must be equal to half of account creation price (0.00472692 SOL) considering NEON price is $0.25

@ivandzen ivandzen self-assigned this Dec 1, 2021
s-medvedev pushed a commit that referenced this issue Dec 16, 2021
* cherrypick part of changes

* create indexer.py

* remove solana_receipts_update.py

* Cherry pick files from old branch

* add requirement

* fix refactoring issues

* Fix inspection issues

* fix last issue

* simplify tests

* add test

* add price provider

* fix PriceProvider, add test

* Add tests. Check worn on all nets

* refactoring

* integrate price_provider into airdropper

* integrate price provider

* use new faucet method

* add new parameter to airdropper main

* Test discriptions for airdropper

* Comments for price provider tests

* remove unnecessary comment

* fix error

* fix airdropper run

* remove duplicated code

Co-authored-by: ivanl <[email protected]>
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

No branches or pull requests

2 participants