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 GLUE blockchain #13678

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Add GLUE blockchain #13678

wants to merge 2 commits into from

Conversation

0xbrax
Copy link

@0xbrax 0xbrax commented Feb 26, 2025

Name (to be shown on DefiLlama):

Glue

Twitter Link:

https://twitter.com/GlueNet

List of audit links if any:
Website Link:

https://glue.net

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

https://copper-key-raccoon-515.mypinata.cloud/ipfs/QmRPBdzXX433zTD8zLjFu9uYYq16aLz1Pu1xCjJZYMP4wE

Current TVL:

$135.57k

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

glue

Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed):

glue

Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed):
Short Description (to be shown on DefiLlama):

Glue - The Blockchain Built for Everyone, Bringing the Next 100 Million Users On-Chain.

Token address and ticker if any:

0x840b20fa3d48ac709fd841fcd878c3e8aabd7087
GLUE

Category (full list at https://defillama.com/categories) *Please choose only one:

Dexs

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

TVL is the number of tokens staked in locked pools. To unstake their tokens, the token depositor must request a withdrawal and then wait for the completion of cooldown period of 21 days.

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

0xbrax and others added 2 commits February 26, 2025 14:40
Introduces a TVL adapter for the Glue protocol, leveraging pool data to calculate token balances. Updates the chains list to include Glue, enabling its integration into the project.
@llamabutler
Copy link

The adapter at projects/glue exports TVL:

base                      135.57 k

total                    135.57 k 

@0xbrax 0xbrax marked this pull request as draft February 26, 2025 04:59
@0xbrax 0xbrax changed the title Add Glue blockchain Add GLUE blockchain Feb 26, 2025
@0xbrax
Copy link
Author

0xbrax commented Feb 26, 2025

Test failed due to errors not related with this PR

@0xbrax 0xbrax marked this pull request as ready for review February 26, 2025 05:54
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.

why are you trying to count uniswap v3 pool as your tvl, glue is not a chain?

@g1nt0ki g1nt0ki self-assigned this Feb 26, 2025
@0xbrax 0xbrax marked this pull request as draft February 27, 2025 00:53
@0xbrax
Copy link
Author

0xbrax commented Feb 27, 2025

why are you trying to count uniswap v3 pool as your tvl, glue is not a chain?

To get the correct TVL, it is possible to install the packages @polkadot/api and @polkadot/wasm-crypto ?

@g1nt0ki
Copy link
Member

g1nt0ki commented Feb 27, 2025

hi @0xbrax sorry, glue is a evm chain, I see now, but the adapter code threw me off.

What is the dex this LP belong to? https://explorer.glue.net/address/0xDaf334a000141668030f30B22f4552758995dA00

and why do you need polkadot lib?

@bazmatic
Copy link

bazmatic commented Mar 3, 2025

Hi @g1nt0ki and the DefiLlama team,

Glue is based on Polkadot. It has a Relay Chain, which is considered the L1 and is where the Glue token resides. It also has a Parachain, which is a L2 EVM chain. Glue can be "teleported" from the Relay Chain to the Parachain by locking it in the Relay Chain and incrementing the balance of the corresponding wallet in the Parachain.

In our project, Glue can be deposited into contracts in the Relay Chain, where it is locked up for a period of time. The deposits will yield a reward at various APYs depending on the contract.

To get the total amounts locked in these "vesting" contracts, we must make a call to the Relay Chain. This is normally done with the Polkadot API, which is a Web3 library designed for communicating with Polkadot (Substrate) chains rather than EVM chains.

If we are not able to use the Polkadot API do this, we would be have to write our own Websocket RPC client to do it, which is not a simple task owing to the sophisticated transports used by Polkadot.

Would the DefiLlama team be willing to look into permitting the use of this fundamental low-level library, which would otherwise prevent projects utilising Polkadot tech from joining DefiLlama?

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