Closed divine-comedian closed 9 months ago
Fetching latest token prices https://www.quicknode.com/guides/solana-development/3rd-party-integrations/pyth-price-feeds
Fetching latest token prices https://www.quicknode.com/guides/solana-development/3rd-party-integrations/pyth-price-feeds
I see this protocol requires some development in Rust.. Is this the only option or is there easier options for our team that are available in JS?
Thanks @divine-comedian . Some options in Typescript APIs are https://coinmarketcap.com/api/documentation/v1/#operation/getV2CryptocurrencyQuotesLatest, https://docs.moralis.io/web3-data-api/solana/reference/get-sol-token-price?network=mainnet&address=SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt, https://docs.birdeye.so/reference/get_public-price,
@jainkrati @aminlatifi @MoeNick @divine-comedian We have the codebase for coingecko, if the plans are ok we can use it for Solana tokens prices https://www.coingecko.com/en/api
@jainkrati @aminlatifi @MoeNick @divine-comedian We have the codebase for coingecko, if the plans are ok we can use it for Solana tokens prices https://www.coingecko.com/en/api
We only use coingecko for ETC and Solana in the future, so a free plan would be enough for us!
@mohammadranjbarz @aminlatifi Is there any progress here on prices and donation verification? is that the issue I should track?
@mohammadranjbarz @aminlatifi Is there any progress here on prices and donation verification? is that the issue I should track?
@mohammadranjbarz Is working on donation verification and @CarlosQ96 takes care of donation saving and price fetching.
@divine-comedian @MoeNick
Can you give me a simple token transfer for each token we want to support ( I looked in block explorer but all of them that I checked were batch transfer not a single transfer) I need it to write test cases
I put this in progress.
@divine-comedian @MoeNick
Can you give me a simple token transfer for each token we want to support ( I looked in block explorer but all of them that I checked were batch transfer not a single transfer) I need it to write test cases
I think this is related @mohammadranjbarz https://github.com/Giveth/impact-graph/issues/1172
I did the price fetch for Solana token and updating the price with a function. This works with a coingeckoId, we should be good now.
Not sure it requires a more robust implementation. Ill move to QA
Should we make a migration to add the rest of the tokens or is that in another phase? @mohammadranjbarz @MoeNick
Should we make a migration to add the rest of the tokens or is that in another phase? @mohammadranjbarz @MoeNick
Yeah I agree with you
Can you provide the estimatios? @CarlosQ96
@CarlosQ96 You can add all the tokens in your migration, because now we can verify spl-token transfer on solana (It's almost done, but I'm refactoring to push after that)
Half a day, I'll continue on it today.
Added the tokens from mainnet migration to Mohammads PR as they touched similar changes. Coingecko returns all those tokens easily as they are supported in their API
- 0xaec945e04baf28b135fa7c640f624f8d90f1c3a6
@divine-comedian The address you had entered for coin98 is an evm one, we used this address instead C98A4nkJXhpVZNAZdHUA95RpTF3T4whtQubL3YobiUX9
Tokens will be
mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R
bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1
9LzCMqDgTKYz9Drzqnpgee3SGa89up3a247ypMj2xrqM
MangoCzJ36AjZyKwVj3VnYU4GTonjfVEnJmvvWaxLac
0xaec945e04baf28b135fa7c640f624f8d90f1c3a6
WDYT @jainkrati ?
We should figure out if we are getting these from APIs (which could be expensive) or if we want to use a solution similar to what we have with the monoswap repo pricing @mateodaza and @mohammadranjbarz handles most of this.
Here's the repo https://github.com/Giveth/monoswap