-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add Leveragex.trade #13158
base: main
Are you sure you want to change the base?
Add Leveragex.trade #13158
Conversation
The adapter at projects/javsphere exports TVL:
|
The adapter at projects/leveragex exports TVL:
|
The adapter at projects/javsphere exports TVL:
|
The adapter at projects/leveragex exports TVL:
|
async function tvl(api) { | ||
const config = await api.fetchList({ lengthAbi: 'tokensCount', itemAbi: "function tokens(uint256) view returns (address asset, bytes32 priceFeed, uint256 targetWeightage, bool isActive)", target: LEVERAGEX_BASE_EARN }) | ||
const tokens = config.map(i => i.asset) | ||
return api.sumTokens({ owners: [LEVERAGEX_BASE_EARN, LEVERAGEX_BASE_DIAMOND], tokens, }) |
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.
it seems like this counts exactly the same thing as the javsphere adapter?
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.
Yes i removed the javsphere part so we only have LeverageX.
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.
so what is the purpose of this change? do you want to change the metadata displayed on the UI?
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.
this can be done seperately if you give us the details of the new metadata that you want
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.
No the idea is ti have the product leveragex like other platforms as a separat project on defillama. Sonce javsphere has also the token, staking and freezer, leveragex only focus on decentralized leverage trading. People want just to know more about Leveragex and not about javsphere as a hole, and for this ist the best way to have a new page for leveragex.
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.
in that case you need to remove this TVL from the javsphere adapter since we cant count it for both protocols
NOTE
Please enable "Allow edits by maintainers" while putting up the PR.
Name (to be shown on DefiLlama):
LeverageX
Twitter Link:
https://x.com/Javsphere
List of audit links if any:
Website Link:
https://leveragex.trade
Logo (High resolution, will be shown with rounded borders):
Current TVL:
395k
Chain:
BASE
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):
Decentralized Leverage Trading with up to 150x on stocks, crypto, forex, and more. Trade directly from your wallet
without middlemen, ensuring maximum security.
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one:
Derivates
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Pyth
Implementation Details: Briefly describe how the oracle is integrated into your project:
Oracle is used for all the trades workflow like open, closing trades.
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
https://docs.javsphere.com/products/leveragex
forkedFrom (Does your project originate from another project):
Gains
methodology (what is being counted as tvl, how is tvl being calculated):
TVL of LeverageX Trading platform leveragex.trade (LPs and Traders).
Github org/user (Optional, if your code is open source, we can track activity):
https://github.com/Javsphere/contracts