@reinis_frp/boba-tvl
v1.0.0
Published
Boba network TVL calculation script
Readme
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:
--ccyprovides TVL denomination currency, defaults to usd. This should matchvs_currencysupported by CoinGecko.--fromUNIX timestamp for the begining of TWAP calculation range.--toUNIX timestamp for the end of TWAP calculation range.--intervalinterval in seconds to split TWAP range for charting. This defaults to 1h if range is less than day or 1d for larger ranges.
