#contracts #increasing #curve #general #generally #range #wynd

wynd-utils

Utility functions used by multiple Wynd contracts

1 unstable release

0.4.1 Sep 19, 2022

#8 in #generally

Download history 299/week @ 2024-05-20 83/week @ 2024-05-27 153/week @ 2024-06-03 96/week @ 2024-06-10 175/week @ 2024-06-17 121/week @ 2024-06-24 169/week @ 2024-07-01 76/week @ 2024-07-08 496/week @ 2024-07-15 417/week @ 2024-07-22 344/week @ 2024-07-29 181/week @ 2024-08-05 674/week @ 2024-08-12 241/week @ 2024-08-19 39/week @ 2024-08-26 75/week @ 2024-09-02

1,051 downloads per month
Used in 6 crates (3 directly)

Apache-2.0

26KB
523 lines

Wynd Utils

This is a set of general utility functions to be used by mutliple contracts.

Curves

We provide some curve types that can be used for vesting or otheer cases. They are designed to generally be either monotonically increasing or monotonically decreasing withing a specified range.

While they are general functions in the form of f(x) = y, the main use case is with input of block time, eg. f(t) = y. When using for other domains, please review the assumptions and make any adjustments needed to generalize.

Dependencies

~3.5–5.5MB
~113K SLoC