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 polynomial liquidity layer tvl #11670

Merged
merged 7 commits into from
Sep 20, 2024
Merged

Conversation

Aniket965
Copy link
Contributor

Name (to be shown on DefiLlama):

Polynomial

Chain:

Polynomial

@llamatester
Copy link

The adapter at projects/polynomial-liquidity-layer exports TVL:

polynomial                1.84 M

total                    1.84 M 

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.

what is this product? what are you counting as tvl here? are you counting all bridged tokens as tvl?

@g1nt0ki g1nt0ki self-assigned this Sep 18, 2024
@Aniket965
Copy link
Contributor Author

Hey @g1nt0ki this is our liquidity layer, (which is lp side of our trade product) it is total of amount staked by each account currently. not the bridged tvl

@g1nt0ki
Copy link
Member

g1nt0ki commented Sep 18, 2024

Hey @g1nt0ki this is our liquidity layer, (which is lp side of our trade product) it is total of amount staked by each account currently. not the bridged tvl

can we compute this on chain?

@Aniket965
Copy link
Contributor Author

we can compute this off chain but this will keep on changing as we add collaterals to deposit in which will require us to make changes to this repo quite often @g1nt0ki and the speed of computing will slow down as we add more collaterals

@g1nt0ki
Copy link
Member

g1nt0ki commented Sep 18, 2024

yes, but at the moment it is complete blackbox, we have no idea what is counted towards tvl, if it is the right methodology or how to fix it if the api goes down

@llamatester
Copy link

The adapter at projects/polynomial-liquidity-layer exports TVL:

polynomial                0

total                    0 

@Aniket965
Copy link
Contributor Author

Hey @g1nt0ki i found a easier way to calc just by having balances of tokens on the contract, i used same method as other projects where using am i missing something its not showing balance

https://polynomialscan.io/address/0xc133983D6d9140923b5eaE52664221d9099cf119 this contract have balances

@llamatester
Copy link

The adapter at projects/polynomial-liquidity-layer exports TVL:

polynomial                1.95 M

total                    1.95 M 

@g1nt0ki
Copy link
Member

g1nt0ki commented Sep 20, 2024

@Aniket965 thanks for the update. We didnt have the token mapping, I fixed it.

@g1nt0ki g1nt0ki merged commit 4a3ef4a into DefiLlama:main Sep 20, 2024
1 check passed
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