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 p2p pool tvl into wing project; #6155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ErickYangs
Copy link
Contributor

NOTE

  • If you would like to add a volume adapter please submit the PR here.
  • If you would like to add a liquidations adapter, please refer to this readme document for details.
  1. Once your adapter has been merged, it takes time to show on the UI. If more than 24 hours have passed, please let us know in Discord.
  2. Sorry, We no longer accept fetch adapter for new projects, we prefer the tvl to computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.
  3. The protocol is usually listed within 24 hours of merging the PR
  4. Please fill the form below only if the PR is for listing a new protocol else it can be ignored/replaced with reason/details about the PR
  5. For updating listing info It is a different repo, you can find your listing in this file: https://github.com/DefiLlama/defillama-server/blob/master/defi/src/protocols/data2.ts, you can edit it there and put up a PR
  6. Do not edit/push package-lock.json file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CI
  7. No need to go to our discord and announce that you've created a PR, we monitor all PRs and will review it asap

Name (to be shown on DefiLlama):
Twitter Link:
List of audit links if any:
Website Link:
Logo (High resolution, will be shown with rounded borders):
Current TVL:
Treasury Addresses (if the protocol has treasury)
Chain:
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
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)
Short Description (to be shown on DefiLlama):
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one:
Oracle used (Chainlink/Band/API3/TWAP or any other that you are using):
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):

@llamatester
Copy link

The adapter at projects/wing.js exports TVL:

ontology_evm-staking      74.15 k
ontology_evm-borrowed     7.70 M
bsc-staking               308.97 k
okexchain-borrowed        201.11 k
ethereum-borrowed         892.37 k
okexchain                 277.33 k
bsc-borrowed              17.00 M
bsc                       7.23 M
ontology-staking          557.20 k
ontology-borrowed         24.45 M
okexchain-staking         5.98 k
ethereum-staking          33.77 k
ontology_evm              2.38 M
ontology                  16.71 M
p2p-staking               0
p2p                       455.45 k
p2p-borrowed              1.16 M
ethereum                  1.17 M
staking                   980.07 k
borrowed                  51.40 M

total                    28.22 M 

@g1nt0ki
Copy link
Member

g1nt0ki commented May 4, 2023

@ErickYangs thanks for PR, but noticed that the code is opaque. I would lto refactor it to be on chain, can yo assist me, one issue I ran into in ethereum was, the code was not verified, can you share the contract abis?

@g1nt0ki g1nt0ki self-assigned this May 6, 2023
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.

None yet

3 participants