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

Pancakeswap: use DEX on-chain data #824

Open
bryanjowers opened this issue Aug 20, 2021 · 0 comments
Open

Pancakeswap: use DEX on-chain data #824

bryanjowers opened this issue Aug 20, 2021 · 0 comments

Comments

@bryanjowers
Copy link
Collaborator

We recently built an EA for Curve DEX (as the data source) to read price pair data on-chain.

This ticket: We should use the Curve EA as an example and create a new EA for Pancakeswap as the data source. This will be the 3rd DEX after Curve and #823 Uniswap.

Part of this ticket will be investigating Pancakeswap to design the implementation as it might be different than Curve's or require additional work. Specifically, Pancakeswap is on Binance

How we handled Curve DEX:
Curve has a single address provider, which gives us an exchange rate registry contract.
We can provide an input token address, an output token address, along with an amount (depth). It returns the pool used along with the price at that depth.

To note, similar to Amberdata, this requires a token address mapping, since the contract accepts addresses, not token names. Alternatively, you can provide the EA with the token address directly in the request.

@boxhock built Curve's new EA and can assist in answering questions around implementation, and for CR.

@lucaswxp lucaswxp mentioned this issue Dec 21, 2021
2 tasks
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 a pull request may close this issue.

1 participant