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 adapter for Reya #11140

Closed
wants to merge 1 commit into from
Closed

Conversation

rvaitkus23
Copy link

NOTE

Please enable "Allow edits by maintainers" while putting up the PR.


  • 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. 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
  4. 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
  5. 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
  6. 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):

Reya Network

Twitter Link:

https://x.com/reya_xyz

List of audit links if any:

https://docs.reya.network/more-resources/technical-resources

Website Link:

https://reya.network/

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

reya-xl

Current TVL:
Treasury Addresses (if the protocol has treasury)
Chain:

Reya

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):

Reya Network is the world's first trading-optimized modular Layer 2 solution, merging liquidity and offering exceptional speed and performance efficiency for DeFi trading. The network features advanced cross-margining for improved capital efficiency, a dynamic funding rate for market stability, and high-performance transaction capabilities with 100ms block times and 30K TPS. Reya DEX leverages this innovative network to provide unmatched trading conditions, making it the ideal platform for both retail and institutional traders.

Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one:

Dexes, Derivatives, Yield Aggregator, Liquidity manager, Synthetics, DEX Aggregator

Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):

Stork and Redstone

Implementation Details: Briefly describe how the oracle is integrated into your project:
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):

TVL is computed using fetch balances using network explorer

Github org/user (Optional, if your code is open source, we can track activity):

@llamatester
Copy link

The adapter at projects/reya exports TVL:

reya                      49.23 M

total                    49.23 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.

We track projects tvl and sum them up to compute chain tvl, not token supply.

We do track chain assets as a different metric, can you share the bridge address on other chains when tokens are bridged to yours?

@g1nt0ki g1nt0ki self-assigned this Jul 30, 2024
@rvaitkus23
Copy link
Author

Thank you for your feedback

We track projects tvl and sum them up to compute chain tvl, not token supply.

Can you help us to provide a suitable adapter?
Here is our address of core proxy 0xa763b6a5e09378434406c003dae6487fbbdc1a80
Using this API you can see balances for Wrapped Ether and Reya USD (it is a wrapper for USDC 1:1). As rUSD is not registered in coingecko not sure how to pass it as part of balance.

We do track chain assets as a different metric, can you share the bridge address on other chains when tokens are bridged to yours?

Sure, here it is:
usdc(.e) vaults:
ethereum: 0xdff78a949e47c1e90f3dd6dd7fe2fa72b42a75f7
optimism: 0x9239609eED7c40C6DDcEC25D247Ef205103590B6
polygon: 0xC0acBb471465FCf848746D1837d8358aB891546c
base: 0x77e61C6fcAEe80CA578B818DD583d2b78f99289C
arbitrum: 0xa0E9B6DA89BD0303A8163B81B8702388bE0Fde77

weth vaults:
ethereum: 0x64dF894688c5052BeAdC35371cF69151Ebc5D658
optimism: 0xAd7bdD85fdA879fe7771A2546939972F202C1BaE
polygon: 0x72384be7092144cD9a57526B486827E4eA632351
base: 0x2b3A8ABa1E055e879594cB2767259e80441E0497
arbitrum: 0xD7BBE2f6D1B52A27D2dAC28298DE3974a3d13047

@rvaitkus23
Copy link
Author

@g1nt0ki Can you help me set the adapter response using the information I have provided above?

@Define101
Copy link
Member

We made a few changes here #11172

@rvaitkus23
Copy link
Author

Thank you very much. Can we move forward with this adapter as the bridge adapter is added? 🙏

@g1nt0ki
Copy link
Member

g1nt0ki commented Aug 21, 2024

@g1nt0ki g1nt0ki closed this Aug 21, 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.

4 participants