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

Add dyson finance adapter #46

Merged
merged 8 commits into from
Jun 6, 2024
Merged

Add dyson finance adapter #46

merged 8 commits into from
Jun 6, 2024

Conversation

ytwang00
Copy link
Contributor

No description provided.

0xroll
0xroll previously approved these changes Apr 16, 2024
@0xroll
Copy link
Contributor

0xroll commented Apr 16, 2024

@ytwang00 hi can you fix to pass the test check?

also when users deposit , are they given a receipt token? if yes we should also be tracking these in adapter

@ytwang00
Copy link
Contributor Author

@0xroll
I fixed the code.
And, we don't use receipt tokens in this protocol.

@ytwang00
Copy link
Contributor Author

@0xroll
The issue about number format was fixed.
Please check again, thank you.

@0xroll 0xroll self-requested a review June 5, 2024 07:40
@0xroll 0xroll dismissed their stale review June 5, 2024 07:40

pagination

@ytwang00
Copy link
Contributor Author

ytwang00 commented Jun 5, 2024

@0xroll
Pagination issue Fixed

DYSON_POSITIONS_QUERY => fetching all data with pagination
DYSON_POOLS_QUERY => We won't have more than 10 pools, no need to use pagination

Comment on lines 43 to 56
const DYSON_POSITIONS_QUERY = `
query DysonPositionsQuery($blockNumber: Int!) {
noteEntities(first: 1000, skip: 0, where: {isWithdrawed: false}, block: {number: $blockNumber}, orderBy: timestamp, orderDirection: desc) {
timestamp
user
pair
depositType
depositAmt
token0Amt
token1Amt
isWithdrawed
}
}
`;
Copy link
Contributor

Choose a reason for hiding this comment

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

you need to add in pagination so that we do not miss any active positions

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

May 5th and two days ago?
I must have missed that...

@0xroll 0xroll merged commit 28864bc into delta-hq:main Jun 6, 2024
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.

2 participants