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

pheasantswap adapter #32

Closed
wants to merge 2 commits into from
Closed

pheasantswap adapter #32

wants to merge 2 commits into from

Conversation

zuoye520
Copy link

No description provided.

where: {
block_gt: ${b_start},
block_lte: ${b_end},
pair_in: ["0xac9e186723cf9bc1efe7b3513be4bd2f17454e69", "0x3c0eec2bec278786114077c988511ce5a275c8a8", "0xed4a85ef3ccd896c75b227cbd3c0521443c90968", "0x9c90b4ee012d78938b48a8e56a79f4fabb3fb895", "0x7ca5d6c6bc4bfbb70a7848258d4f037bb29a8232", "0xdafbf93615352a34cd5d3f42fe4caac1f2d6846c"]
Copy link
Contributor

Choose a reason for hiding this comment

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

just wondering on this filter, what happens when there are new pools added?

Comment on lines +108 to +119
userPositionSnapshotsAtBlockData.push({
user_address: positionSnapshot.user.id,
timestamp: new Date(positionSnapshot.timestamp * 1000).toISOString(),
token_address: positionSnapshot.pair.id,
block_number: snapshotBlockNumber,
token_symbol: `${positionSnapshot.pair.token0.symbol}/${positionSnapshot.pair.token1.symbol} LP`,
token_balance: positionSnapshot.liquidityTokenBalance,
usd_price: '0'
})
})
}))
return userPositionSnapshotsAtBlockData
Copy link
Contributor

Choose a reason for hiding this comment

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

does this capture positions that are staked in farming pools? with the correct owner

also does it capture transfers from user A -> user B?

@0xroll
Copy link
Contributor

0xroll commented Apr 16, 2024

hi @zuoye520 thanks for the PR.

added some comments in.

also, is pheasantswap a CPMM model (uniswap v2)?

@0xroll
Copy link
Contributor

0xroll commented Jun 26, 2024

@zuoye520 please create new PR, we have added a new checklist workflow

@0xroll 0xroll closed this Jun 26, 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