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

feat: add Panoptic adapter #12770

Closed
wants to merge 6 commits into from

Conversation

dyedm1
Copy link

@dyedm1 dyedm1 commented Dec 19, 2024

Name (to be shown on DefiLlama):

Panoptic

Twitter Link:

https://x.com/Panoptic_xyz

List of audit links if any:

List of audits: https://panoptic.xyz/docs/security/security_audits
Bug bounty: https://cantina.xyz/competitions/01da0370-eacb-48a2-a2df-3aa44f7bc838

Website Link:

https://panoptic.xyz

Logo (High resolution, will be shown with rounded borders):

PNG:
Panoptic Icon_secondary
SVG:
Panoptic Icon_secondary SVG

Current TVL:

~$113k

Treasury Addresses (if the protocol has treasury)

N/A

Chain:

Ethereum

Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)

N/A

Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)

N/A

Short Description (to be shown on DefiLlama):

Panoptic is the first on-chain, permissionless options protocol, revolutionizing trading and liquidity provision.

Token address and ticker if any:

N/A

Category (full list at https://defillama.com/categories) *Please choose only one:

Options

Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.): N/A
Implementation Details: Briefly describe how the oracle is integrated into your project: N/A
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage: N/A
forkedFrom (Does your project originate from another project): N/A
methodology (what is being counted as tvl, how is tvl being calculated):
  • Counts token0/token1 (of the underlying Uniswap pool) balances for each Panoptic Pool created by the canonical factory
  • Counts the computed token composition of Uniswap V3 liquidity held by Panoptic's SemiFungiblePositionManager at the current price in each Uniswap pool
Github org/user (Optional, if your code is open source, we can track activity):

panoptic-labs

@llamabutler
Copy link

Error while running adapter at :

Please revert changes to package.json / package-lock.json

@llamabutler
Copy link

Error while running adapter at :

Please revert changes to package.json / package-lock.json

@llamabutler
Copy link

The adapter at projects/panoptic exports TVL:

ethereum                  113.30 k

total                    113.30 k 

projects/panoptic/index.js Outdated Show resolved Hide resolved
@g1nt0ki g1nt0ki self-assigned this Dec 19, 2024
@dyedm1 dyedm1 marked this pull request as draft December 19, 2024 13:01
@dyedm1
Copy link
Author

dyedm1 commented Dec 19, 2024

Will pull liquidity data from a subgraph instead of indexing on events here.

@llamabutler
Copy link

The adapter at projects/panoptic exports TVL:

ethereum                  115.61 k

total                    115.61 k 

@dyedm1 dyedm1 requested a review from g1nt0ki December 19, 2024 18:20
@dyedm1 dyedm1 marked this pull request as ready for review December 19, 2024 18:22
@dyedm1
Copy link
Author

dyedm1 commented Dec 19, 2024

the lint errors are from a different project

@llamabutler
Copy link

The adapter at projects/panoptic exports TVL:

ethereum                  115.25 k

total                    115.25 k 

@llamabutler
Copy link

The adapter at projects/panoptic exports TVL:

ethereum                  139.64 k

total                    139.64 k 

Copy link
Member

@g1nt0ki g1nt0ki left a comment

Choose a reason for hiding this comment

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

hi @dyedm1 you can ignore the lint error, noticed that you added graph but the code still uses event logs?

@g1nt0ki
Copy link
Member

g1nt0ki commented Dec 20, 2024

ah, give me a second, I forgot to pull commits

g1nt0ki added a commit that referenced this pull request Dec 20, 2024
@g1nt0ki
Copy link
Member

g1nt0ki commented Dec 20, 2024

hi, the graph is good, updated code to use our library .

can you put up a volume & fee adapter here? https://github.com/DefiLlama/dimension-adapters unsure how to pull that info from the graph api

Thanks again for the PR

@g1nt0ki g1nt0ki closed this Dec 20, 2024
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