@poolzfinance/cooldown
v0.2.1
Published
The library converts the received data from the [`DelayVault` contract](https://bscscan.com/address/0x5eb57B1210338b13E3D5572d5e1670285Aa71702#readContract#F3) `GetDelayLimits` method:
Downloads
35
Keywords
Readme
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/cooldown
Yarn
yarn add @poolzfinance/cooldown
Pnpm
pnpm add @poolzfinance/cooldown
Usage
import { cooldownBlock } from "@poolzfinance/cooldown"
const result = cooldownBlock(delayLimits)