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

Added EOS xSat EVM adapter #12408

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

Added EOS xSat EVM adapter #12408

wants to merge 2 commits into from

Conversation

nsjames
Copy link

@nsjames nsjames commented Nov 22, 2024

Name (to be shown on DefiLlama):

EOS XSAT EVM

Twitter Link:

https://x.com/exsatnetwork

Website Link:

https://exsat.network/

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

ep6sQ44w_400x400

Current TVL:

$27.45m

Chain:

EOS

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

eos

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

1765

Short Description (to be shown on DefiLlama):

The amount of BTC that has been bridged over to the EOS network via the xSat BTC EVM.

Token address and ticker if any:

btc.xsat
BTC

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

15 Cross Chain

methodology (what is being counted as tvl, how is tvl being calculated):

EOS ExSAT EVM TVL is achieved by querying the total available supply from the [btc.xsat] account. This supply fluctuates as users deposit and withdraw funds from the ExSAT EVM.

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

https://github.com/exsat-network/contract-of-consensus

@llamatester
Copy link

The adapter at projects/eos-exsat-evm exports TVL:

eos                       27.42 M

total                    27.42 M 

@nsjames
Copy link
Author

nsjames commented Nov 22, 2024

Please let me know if there is any additional information that needs to be provided, or if I need to add anything to the icons or server repos.

Thanks!

@g1nt0ki
Copy link
Member

g1nt0ki commented Nov 22, 2024

@nsjames thanks for the PR, can you instead return a list of btc addresses with at least 0.001 BTC and compute tvl using sumTokens method, also, can you place the address fetcher code here: https://github.com/seancheen/DefiLlama-Adapters/blob/pr/seancheen/12406/projects/helper/bitcoin-book/fetchers.js#L9

the adapter code would be something like this: https://github.com/seancheen/DefiLlama-Adapters/blob/pr/seancheen/12406/projects/lombard/index.js#L13

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.

.

@g1nt0ki g1nt0ki self-assigned this Nov 22, 2024
@llamatester
Copy link

The adapter at projects/eos-exsat-evm exports TVL:

eos                       26.82 M

total                    26.82 M 

@nsjames
Copy link
Author

nsjames commented Nov 25, 2024

@g1nt0ki thanks for the info

I see there's already another implementation of the exsat bridge calculation in fetchers however it's attributing the TVL to bitcoin via the exsat adapter. It would be preferable to display that TVL on EOS instead as that is where those BTC effectively are now.

I've modified the adapter to use that same code to attribute the TVL to EOS, but am unsure how you'd like to handle this.

@g1nt0ki
Copy link
Member

g1nt0ki commented Nov 26, 2024

hi @nsjames for bridge protocols, we count the tokens deposited on the source chain, so counting bitcoin on bitcoin chain is the correct approach.

I would also like to mention that, these bridge tvl would not be counted towards either source or destination chain tvl. #435

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.

3 participants