#contracts #curve #increasing #type #utility #range #wynd

wynd-utils

Utility functions used by multiple Wynd contracts

1 unstable release

0.4.1 Sep 19, 2022

#6 in #increasing

Download history 198/week @ 2023-11-20 192/week @ 2023-11-27 129/week @ 2023-12-04 123/week @ 2023-12-11 222/week @ 2023-12-18 84/week @ 2023-12-25 101/week @ 2024-01-01 107/week @ 2024-01-08 15/week @ 2024-01-15 88/week @ 2024-01-22 118/week @ 2024-01-29 183/week @ 2024-02-05 101/week @ 2024-02-12 62/week @ 2024-02-19 136/week @ 2024-02-26 86/week @ 2024-03-04

396 downloads per month
Used in 5 crates (2 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

~4–5.5MB
~125K SLoC