AelinXYZ / aelin-frontend-v2

https://app.aelin.xyz
7 stars 12 forks source link

Synthetix lib is too big #255

Open luchobonatti opened 2 years ago

luchobonatti commented 2 years ago

useGasPriceUnitInUSD.tsx file use synthetix library to get the USD/ETH pair exchange rate.

This library is too big.

image

We should improve it.

nicosampler commented 2 years ago

@luchobonatti I've talked with @0xlinus and he is ok about looking for a better alternative.

Let's see if we can use the contract directly or we can use another provider to get the gasPrice. Note that we need to get the gasPrice in all thee networks.