@grofi/math-utils
v0.0.1
Published
**disclaimer**: this package is highly unstable. Once we reach a certain level of stability, we'll bump the version to 1.x and add appropriate documentation.
Downloads
1
Readme
@grofi/math-utils
disclaimer: this package is highly unstable. Once we reach a certain level of stability, we'll bump the version to 1.x and add appropriate documentation.
Grofi aggregates on-chain protocol data into a variety of different subgraphs on TheGraph which can be queried directly using the playground and integrated into applications directly via TheGraph API.
In addition to the subgraphs, grofi offers a set of contract helpers to query aggregated on-chain data.
The @grofi/math-utils
data formatting methods act as a layer on top of the
chain data. The use-cases range from "human readable formatting" to
"approximating accrual over time".
Installation
Install the package in your project directory with:
// with npm
npm install @grofi/math-utils
// with yarn
yarn add @grofi/math-utils