Skip to content

Fix/multi network#9

Open
0xpApaSmURf wants to merge 5 commits into
mainfrom
fix/multi-network
Open

Fix/multi network#9
0xpApaSmURf wants to merge 5 commits into
mainfrom
fix/multi-network

Conversation

@0xpApaSmURf

@0xpApaSmURf 0xpApaSmURf commented Sep 13, 2023

Copy link
Copy Markdown
Contributor

Actually removes multinetwork support and splits deployments into two.

This repo is now responsible for mainnet deployments.
The phlox repo is now responsible for optimism-goerli deployments.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we need these tokens defined, do we?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We don't but every logical change I made seemed not to make any sense which is why I've rolled back to old subgraph stuff. Right now it works and there's no good reason why, so good reasons seem worth abandoning for now :)

Comment thread src/mappings/core.ts
updatePoolHourData(event)

// update token prices
if (!token0 || !token1) return

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we throw if it's falsy?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Same as above, this is code that currently works for Uniswap and for us, and that's a nice place to be 😅

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.

3 participants