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

Soroswap: Add prices of tokens in USD for every event #54

Open
4 tasks
esteblock opened this issue Dec 12, 2024 · 24 comments
Open
4 tasks

Soroswap: Add prices of tokens in USD for every event #54

esteblock opened this issue Dec 12, 2024 · 24 comments
Assignees

Comments

@esteblock
Copy link
Member

esteblock commented Dec 12, 2024

On every event we want o be able to calculate the price of every token in USD in order to:

  • On the Swap events table, calculate the volume in USD for that swap
  • For every sync event, calculate the TVL of the pair of the moment
  • And more...

  • test it locally

Reference
https://github.com/Uniswap/info/blob/a668245cfcb786f57af67fb5e6d999d7b11b1f05/src/apollo/queries.js#L394C7-L394C17
https://github.com/Uniswap/v2-subgraph/blob/9d8a918bfecc2310337a917919c3ad56c5071d87/src/mappings/core.ts#L244
https://github.com/Uniswap/v2-subgraph/blob/9d8a918bfecc2310337a917919c3ad56c5071d87/src/mappings/pricing.ts#L77
https://dune.com/queries/4341139/7289745

@emarc99
Copy link

emarc99 commented Dec 12, 2024

I have worked on Uniswap v2/v3 projects, so I understand the basics.
So, I will study the code base, implement prices of token as requested and run tests.

@FrankiePower
Copy link

I am Super Franky, a frontend developer and recent graduate from web3bridge africa, the premier and biggest blockhain developer community in Africa. I can handle this task properly. l start out with studying the code base, look at the uniswap v2 documentation and then proceed to implement it.
ETA: 2 Days

@FrankiePower
Copy link

I am Super Franky, a frontend developer and recent graduate from web3bridge africa, the premier and biggest blockhain developer community in Africa. I can handle this task properly. l start out with studying the code base, look at the uniswap v2 documentation and then proceed to implement it.
ETA: 3-5 Days

@mimisavage
Copy link

I'd love to give this a go.

@PrincesoDan
Copy link

Let me handle this issue!

@BrunoAmbricca
Copy link

I would like to work on this issue

@khayss
Copy link

khayss commented Dec 12, 2024

Can I attempt this issue?

I will get the data emitted from every event, work with the necessary API to provide the token value in USD.

@DuendexCR
Copy link

Let me try this one!

@DanielVillatoro
Copy link

Hi, assign this to me.
I have experience working with token pricing and event calculations, and I can implement the USD pricing for swaps and sync events efficiently.

ETA: 1.5-2 Days

@Jagadeeshftw
Copy link

Hi @esteblock, I’d love to work on this issue as I have strong experience in building and managing APIs, handling server-side operations, and ensuring robust back-end performance. I’ve developed secure and efficient smart contracts, blockchain integrations, and high-performance backend systems.

My approach:

  1. I’ll integrate token price calculations in USD for every relevant event using pricing data fetched from a reliable on-chain oracle. 2. The Swap events table will include USD volume calculations and sync events will compute TVL dynamically based on token reserves.

If assigned, I’ll ensure that I deliver a robust and high-quality PR within 12-24 hours.

@greatest0falltime
Copy link

Hi @esteblock , I’d be thrilled to work on this issue as I have extensive experience in back-end development, including API integration, database optimization, and building scalable server-side solutions.

My Plan:

  1. To implement this, I’ll first integrate a price feed mechanism (e.g., using an oracle) to fetch USD prices for tokens.
  2. Then, I’ll update the event handling logic to calculate and store the token prices in USD for each event.
  3. Finally, I’ll ensure these updates reflect correctly in the Swap and Sync events with appropriate tests.

ETA:
I expect to have a working solution ready within the next 24 hours. Kindly let me know if I can proceed!

Looking forward to contributing!

@ShantelPeters
Copy link

Is it okay if I take this?

@blessingbytes
Copy link

I'd like to handle this task.

@Nityam573
Copy link

May I take this issue on?
My approach:

  1. I’ll integrate token price calculations in USD for every relevant event using pricing data fetched from a reliable on-chain oracle.
  2. The Swap events table will include USD volume calculations and sync events will compute TVL dynamically based on token reserves.

@NueloSE
Copy link

NueloSE commented Dec 13, 2024

Can I handle this task?

@Pvsaint
Copy link

Pvsaint commented Dec 13, 2024

Could I grab this task? I'm Victor, a full stack developer with many years of experience.

@Judah04
Copy link

Judah04 commented Dec 13, 2024

@esteblock I'd love to work on this issue, I can integrate token price calculations in USD so they can be used where necessary.

@ekumamatthew
Copy link

I’d love to work on this task.

@ooochoche
Copy link

Gm Gm, I am a SC developer. I have gone through the description and also seen the reference and would love to be assigned to this since it falls within my expertise.

@jaykayudo
Copy link

Can i handle this task?

@Supa-mega
Copy link

I’m interested in this one.

@Amarjeet325
Copy link

I an a full-stack developer is skilled in both frontend and backend development,
handling the complete application stack..Can i handle this task? Thank you.

@olisaagbafor
Copy link

I'd like to handle this task.

@Dorcas18
Copy link

Could I take over this issue?

@mira4sol
Copy link

Can I work on this, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests