DefiLlama / DefiLlama-Adapters

861 stars 4.92k forks source link

XY Finance: Add STUCK token config #11090

Closed coolryanc closed 1 month ago

coolryanc commented 1 month ago

Hi DL team @g1nt0ki , we would like to add STUCK token config, could you please help review the PR. Many thanks 🙏

llamatester commented 1 month ago

The adapter at projects/xy-finance exports TVL:

optimism                  781.17 k
bsc                       777.26 k
era                       758.35 k
ethereum                  744.68 k
arbitrum                  446.87 k
polygon                   371.10 k
linea                     321.73 k
taiko                     305.15 k
mantle                    280.46 k
cronos                    278.81 k
polygon_zkevm             244.70 k
scroll                    220.75 k
blast                     187.38 k
xlayer                    148.76 k
avax                      70.10 k
kcc                       47.73 k
astar                     17.43 k
moonriver                 51
klaytn                    32
thundercore               15
base                      14
ox_chain                  0
fantom                    0
wemix                     0

total                    6.00 M 
g1nt0ki commented 1 month ago

hi, the STUCK in base, how is it bridged in the first place? or is it locked on cronos and minted on base through xy contract?

coolryanc commented 1 month ago

Hi @g1nt0ki, thanks for asking 🙏 Exactly, it locked on cronos and minted on base through our contract Let's say a user does the cross-chain swap from Cronos $STUCK ->Base $STUCK, it actually locks $STUCK on Cronos and then mints $STUCK on Base.

g1nt0ki commented 1 month ago

hmm, then we cant count it on base side, can you go through the config and remove similar tokens? :pray:

the reason is, we are already counting the token on source chain

g1nt0ki commented 1 month ago

merged here: https://github.com/DefiLlama/DefiLlama-Adapters/pull/11224