Giter Site home page Giter Site logo

Comments (6)

0xngmi avatar 0xngmi commented on July 17, 2024 1

sorry for lack of reply here, didnt see your messages

I've just pushed an update to most fantom dexs to price volume against FTM instead (and then we price FTM against coingecko). Haven't managed to match dexscreener volumes but dont see where the issue could be in our new methodology

As for wagmi, we'll completely delist it from fantom

from dimension-adapters.

0xngmi avatar 0xngmi commented on July 17, 2024 1

This was all fixed a week ago, so closing due to inactivity

from dimension-adapters.

0xngmi avatar 0xngmi commented on July 17, 2024

we set the price of all multichain assets to 0, although in some dexs these assets are priced by using the internal price against ftm

if you found a concrete case of mispricing related to this, could you point us to it?

from dimension-adapters.

ftm1337 avatar ftm1337 commented on July 17, 2024

@0xngmi here's what defillama volume (/dexs) board shows for fantom:
image

(starting with the first one as example)
the adapter for spooky uses https://api.thegraph.com/subgraphs/name/eerieeight/spookyswap , running a simple query on it gives
image
which is what defillama shows. (the $5.28m volume for yesterday).
if we compare it to other trackers, like gecko terminal
Screenshot_2023-07-29 Top SpookySwap Pools by 24h Transaction GeckoTerminal
or dexscreener
image
or dextools
image

then we get the number at around $1.1m,
and if we check the price of FTM, spooky's subgraph returns $1.29 = 1 FTM (i wish!)
image
the difference in prices is roughly the same 5x that USDC (multichain) has depegged to ($0.19 right now).

all of the other dexes that use subgraphs have similar issues.. with numbers being inflated about 5x. I'm not sure about wagmi's numbers though.. their site reports $30 while dexscreener says $25 (https://dexscreener.com/fantom/f:0xaf20f5f19698f1D19351028cd7103B63D30DE7d7).. meanwhile, on defillama we see $3m+ .. i'm guessing its because of something related to its CL math not sitting well with depegged token's prices in the subgraph.. idk tbh.

i tried writing adapters that would iterate over the "Swap" events (similar to equalizer's adapter), but get with an out-of-memory heap error on my local machine when i do the yarn test dexs spooky2.. i guess its probably because of the millions of swaps that spooky has had coupled with the smol ram i have available. so maybe someone else can give it a shot..

from dimension-adapters.

ftm1337 avatar ftm1337 commented on July 17, 2024

It has got worse now.. over-reporting numbers by 10x with anyswap's USDC depegged to $0.1 ๐Ÿ˜…
image
for example, spooky should have 600K volume, instead of 6M
image

from dimension-adapters.

ftm1337 avatar ftm1337 commented on July 17, 2024

thanks 0xngmi! the numbers look quite accurate now, similar to those reported at other sites. and the modified adapter is going to be quite useful if some other chain has a similar issue
there are still a few old ones with the wrong numbers on fantom.. i'll try to rewrite all those this week, and add the few missing ones (spirit v1, velocimeter)..

from dimension-adapters.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.