@starlay-finance/math-utils
v0.0.20
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
139
Readme
@starlay-finance/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.
STARLAY 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, starlay offers a set of contract helpers to query aggregated on-chain data.
The @starlay-finance/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 @starlay-finance/math-utils
// with yarn
yarn add @starlay-finance/math-utils