-
Notifications
You must be signed in to change notification settings - Fork 6.7k
feat: add Obyte City #17119
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 Obyte City #17119
Conversation
|
The adapter at projects/city exports TVL: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a new TVL adapter for Obyte City, a community engagement platform where Obyte community members establish connections and receive rewards. The adapter calculates the total USD value of funds locked in the City platform's autonomous agent.
Key Changes
- New adapter for Obyte City using the Obyte chain helper utilities
- Implements TVL calculation by fetching balances from the City AA address and converting to USD using Oswap exchange rates
- Follows the standard Obyte adapter pattern with
timetravel: falseandmisrepresentedTokens: trueflags
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
projects/city/index.js
Outdated
| methodology: | ||
| "The TVL is the total USD-value of funds locked in the agent of the CITY platform", | ||
| obyte: { | ||
| tvl: totalTvl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please export totalTvl as staking and use tvl: () => ({}), as CITY is your own token
|
The adapter at projects/obyte-city exports TVL: |
NOTE
Please enable "Allow edits by maintainers" while putting up the PR.
package-lock.jsonfile as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CIName (to be shown on DefiLlama): City
Twitter Link: https://twitter.com/ObyteOrg
List of audit links if any:
Website Link: https://city.obyte.org/
Logo (High resolution, will be shown with rounded borders): https://city.obyte.org/logo.svg (black) https://city.obyte.org/logo-inv.svg (white)
Current TVL: 3.35k
Treasury Addresses (if the protocol has treasury)
Chain: Obyte
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): byteball
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): 1492
Short Description (to be shown on DefiLlama): A community engagement space where Obyte community members establish closer connections with each other and receive rewards after becoming neighbors in the City
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one: SoFi
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
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): The TVL is the total USD-value of funds locked in the agent of the CITY platform
Github org/user (Optional, if your code is open source, we can track activity): https://github.com/byteball/city-aa