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

Transition panopticPool contract address to be variable #32

Merged
merged 6 commits into from
Sep 18, 2024

Conversation

ndeporzio
Copy link
Collaborator

The panopticPool contract address was previously hardcoded - it is made variable in this PR.

Closes #14

@ndeporzio ndeporzio added high priority High priority task to work on launch-blocking labels Sep 15, 2024
@ndeporzio ndeporzio self-assigned this Sep 15, 2024
Copy link
Collaborator

@flanagansteve flanagansteve left a comment

Choose a reason for hiding this comment

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

Nice!

@@ -49,6 +53,7 @@ export interface CalculateGammaResponse {

export interface GreekQueryRequest extends PanopticRequest {
address: string;
panopticPool?: string,
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like you could just have GreekQueryRequest extend PanopticPoolRequest like the others. But maybe this was intentional because we have the possibility of making it so the params here are a token pair instead of a PanopticPool?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The motivation for leaving this optional was to allow the possibility of using either the "internal" greek methods (no need for PanopticPool address), or the contract methods (need PanopticPool address). Easy enough to choose just one of the cases and change appropriately.

@ndeporzio ndeporzio merged commit d768747 into main Sep 18, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority High priority task to work on launch-blocking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove hardcoded T0/T1 testnet pool from methods
2 participants