Boba network TVL calculation script
Installing
Install dependencies by running yarn
from the root of the repo.
Running
Provide Ethereum mainnet node RPC as NODE_URL_CHAIN_1
environment variable.
Run the script with node ./index.js
by providing following optional arguments:
-
--ccy
provides TVL denomination currency, defaults to usd. This should matchvs_currency
supported by CoinGecko. -
--from
UNIX timestamp for the begining of TWAP calculation range. -
--to
UNIX timestamp for the end of TWAP calculation range. -
--interval
interval in seconds to split TWAP range for charting. This defaults to 1h if range is less than day or 1d for larger ranges.