-
Notifications
You must be signed in to change notification settings - Fork 85
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
Conversation
where: { | ||
block_gt: ${b_start}, | ||
block_lte: ${b_end}, | ||
pair_in: ["0xac9e186723cf9bc1efe7b3513be4bd2f17454e69", "0x3c0eec2bec278786114077c988511ce5a275c8a8", "0xed4a85ef3ccd896c75b227cbd3c0521443c90968", "0x9c90b4ee012d78938b48a8e56a79f4fabb3fb895", "0x7ca5d6c6bc4bfbb70a7848258d4f037bb29a8232", "0xdafbf93615352a34cd5d3f42fe4caac1f2d6846c"] |
There was a problem hiding this comment.
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?
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 |
There was a problem hiding this comment.
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?
hi @zuoye520 thanks for the PR. added some comments in. also, is pheasantswap a CPMM model (uniswap v2)? |
@zuoye520 please create new PR, we have added a new checklist workflow |
No description provided.