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

update uniswap-v3 strategy #1694

Merged
merged 4 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/strategies/uniswap-v3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ This strategy fetches the reserves of the user's positions in Uniswap V3.

## Params

|| **name** || **description** || **default** ||
|| tokenReserve || Token reserve to consider for scoring || ||
|| poolAddress || Pool address to fetch the positions from. || ||
|| subgraph || Subgraph URL to fetch the data from. || uniswap-v3 subgraph URL ||
| **name** | **description** | **default** |
| ---- | ---- | ---- |
| tokenReserve | Token reserve to consider for scoring | - |
| poolAddress | Pool address to fetch the positions from. | - |
| subgraph | Subgraph URL to fetch the data from. | uniswap-v3 subgraph URL |
4 changes: 3 additions & 1 deletion src/strategies/uniswap-v3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { subgraphRequest } from '../../utils';
import { getAllReserves } from './helper';

const UNISWAP_V3_SUBGRAPH_URL = {
'1': 'https://subgrapher.snapshot.org/subgraph/arbitrum/5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV'
'1': 'https://subgrapher.snapshot.org/subgraph/arbitrum/5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV',
'8453':
'https://subgrapher.snapshot.org/subgraph/arbitrum/43Hwfi3dJSoGpyas9VwNoDAv55yjgGrPpNSmbQZArzMG'
};

export const author = 'anassohail99';
Expand Down
Loading