Skip to content

Conversation

@Monarch717
Copy link

Fixed type issues and testing passed

TheNationToken and others added 28 commits July 30, 2025 22:14
…x to upstream; re-add nato-uniswap-v3 registration
✅ Updated examples.json exactly to match the style in the reference example (erc20-balance-of).

Added network as a top-level param.

Structure now identical to what reviewer requested.

Please re-run the workflow when possible 🙏
@Monarch717
Copy link
Author

Hi @ChaituVR, Please check our PR here.

@Monarch717
Copy link
Author

Hi @ChaituVR Is there any update?

@Monarch717
Copy link
Author

Hi @ChaituVR . Please check and approve our PR.

@ChaituVR ChaituVR changed the title TheNationToken PR [nato-uniswapv3-voting] TheNationToken PR Oct 6, 2025
@Monarch717
Copy link
Author

Hi @ChaituVR , everything is good now?

Comment on lines +11 to +12
export const author = 'vitalii';
export const version = '0.1.0';
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export const author = 'vitalii';
export const version = '0.1.0';

Copy link
Author

Choose a reason for hiding this comment

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

"author": "TheNationToken", this is correct one

Copy link
Author

Choose a reason for hiding this comment

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

Hi @ChaituVR, the last time, you want me to change it to "TheNationToken"

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

image

@ChaituVR Is this not correct?

Comment on lines +126 to +135
try {
rawData = await subgraphRequest(
options.subgraph || UNISWAP_V3_SUBGRAPH_URL[network],
params
);
} catch (error) {
console.error('Subgraph request failed:', error);
// Return zero scores for all addresses if subgraph fails
return Object.fromEntries(addresses.map(address => [address, 0]));
}
Copy link
Member

Choose a reason for hiding this comment

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

Hi @Monarch717 adding a try catch can cause wrong voting power even if there is a network issue

Suggested change
try {
rawData = await subgraphRequest(
options.subgraph || UNISWAP_V3_SUBGRAPH_URL[network],
params
);
} catch (error) {
console.error('Subgraph request failed:', error);
// Return zero scores for all addresses if subgraph fails
return Object.fromEntries(addresses.map(address => [address, 0]));
}
rawData = await subgraphRequest(
options.subgraph || UNISWAP_V3_SUBGRAPH_URL[network],
params
);

The correct solution is to deploy a new subgraph on base network

Copy link
Author

Choose a reason for hiding this comment

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

Hi @ChaituVR , Do you want me to deploy our own subgraph?

Copy link
Member

Choose a reason for hiding this comment

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

I think thats the best solution considering the issue with current subgraph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants