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

Add Leveragex.trade #13158

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Add Leveragex.trade #13158

wants to merge 19 commits into from

Conversation

rogi-sh
Copy link
Contributor

@rogi-sh rogi-sh commented Jan 18, 2025

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

logo

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

@llamabutler
Copy link

The adapter at projects/javsphere exports TVL:

base-vesting              5.42 M
vesting                   5.42 M
base-staking              2.08 M
staking                   2.08 M
base                      389.63 k

total                    389.63 k 

@llamabutler
Copy link

The adapter at projects/leveragex exports TVL:

base                      390.14 k

total                    390.14 k 

@rogi-sh rogi-sh changed the title Add Leveragec to the platform Add Leveragex.trade Jan 18, 2025
@llamabutler
Copy link

The adapter at projects/javsphere exports TVL:

base-vesting              5.42 M
vesting                   5.42 M
base-staking              2.08 M
staking                   2.08 M
base                      389.61 k
defichain_evm             0
defichain_evm-staking     0
defichain                 0

total                    389.61 k 

@llamabutler
Copy link

The adapter at projects/leveragex exports TVL:

base                      389.61 k

total                    389.61 k 

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, })
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

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?

Copy link
Collaborator

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

Copy link
Contributor Author

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.

Copy link
Collaborator

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

@waynebruce0x waynebruce0x self-assigned this Jan 20, 2025
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