0.2.1 • Published 3 years ago
@poolzfinance/cooldown v0.2.1
The CoolDown lib
The library converts the received data from the DelayVault contract GetDelayLimits method:
interface IGetDelayLimits {
Amounts: string[]
StartDelays: string[]
CliffDelays: string[]
FinishDelays: string[]
}The results of the conversion, see the tests
Installation
You can install the package either using NPM or using Yarn
Using NPM
npm install @poolzfinance/cooldownYarn
yarn add @poolzfinance/cooldownPnpm
pnpm add @poolzfinance/cooldownUsage
import { cooldownBlock } from "@poolzfinance/cooldown"
const result = cooldownBlock(delayLimits)