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

fix: update SyncSwap adapter #51 #59

Merged
merged 4 commits into from
Apr 25, 2024
Merged

Conversation

amedrontadora
Copy link
Contributor

No description provided.

@@ -3,5 +3,5 @@ export const enum CHAINS{
}

export const SUBGRAPH_URLS = {
[CHAINS.LINEA]: "https://api.studio.thegraph.com/query/62864/syncswap-graph-linea/v1.4.1.4"
[CHAINS.LINEA]: "https://gateway-arbitrum.network.thegraph.com/api/ce0ba3625ebbbd3c4b5a2af394dc8e47/subgraphs/id/3xpZFx5YNWzqemwdtRhyaTXVidKNnjY19XAWoHtvR6Lh"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amedrontadora is the usage of arbitrum network intentional here. We need the liquidity on Linea. Please confirm if that will be received from this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the address provided by the graph service provider, which can obtain linea data.


export const getUserTVLByBlock = async (blocks: BlockData) => {
const { blockNumber, blockTimestamp } = blocks
return await getSyncSwapPositionsForAddressByPoolAtBlock(blockNumber)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amedrontadora can you please change the timestamp field to number in the schema of returned object.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, updated

@RamonReis
Copy link
Contributor

image
The package.json file seems to be missing

@amedrontadora
Copy link
Contributor Author

image The package.json file seems to be missing

@RamonReis Can you work on the test files? This PR only modified the file and did not add the file. It seems that the added step in the Extract folder name is empty.

@nitish-91 nitish-91 merged commit b1f48a1 into delta-hq:main Apr 25, 2024
1 check failed
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 this pull request may close these issues.

3 participants