protofire / omen-exchange

Omen exchange
https://omen.eth.link/
GNU Affero General Public License v3.0
67 stars 78 forks source link

replace infura request by subgraph request #1346

Open altbee opened 4 years ago

altbee commented 4 years ago

We need to replace all infura requests by subgraph requests as many as possible.

This section is to get list of tokens from dxTCR. https://github.com/protofire/omen-exchange/blob/bc7aa2babe31353b587e7c2b69523489ea26a54c/app/src/hooks/useTokens.tsx#L23 I think we can move tokenList to subgraph.

This section is to get detailed market Info https://github.com/protofire/omen-exchange/blob/bc7aa2babe31353b587e7c2b69523489ea26a54c/app/src/hooks/useBlockchainMarketMakerData.tsx#L90 I think we can move these to subgraph: getTotalSupply, getCollectedFees, poolSharesTotalSupply, ...

pimato commented 4 years ago

this is the tokenlist contract with the list number 3: https://etherscan.io/address/0x93db90445b76329e9ed96ecd74e76d8fbf2590d8#readContract

Bildschirmfoto 2020-11-12 um 12 06 47
pimato commented 4 years ago

The token list has been added to the omen subgraph and @liaojikunwork has started work on implementing the necessary changes for the omen frontend which can be tracked here: https://github.com/protofire/omen-exchange/issues/1373

cag commented 3 years ago

Looks like that's done, and that https://github.com/protofire/omen-subgraph/issues/88 should be closed as well if I'm not mistaken...