#contracts #increasing #curve #range #cases #wynd

wynd-utils

Utility functions used by multiple Wynd contracts

1 unstable release

0.4.1 Sep 19, 2022

#8 in #increasing

Download history 146/week @ 2024-07-25 350/week @ 2024-08-01 475/week @ 2024-08-08 483/week @ 2024-08-15 36/week @ 2024-08-22 50/week @ 2024-08-29 128/week @ 2024-09-05 160/week @ 2024-09-12 106/week @ 2024-09-19 64/week @ 2024-09-26 41/week @ 2024-10-03 129/week @ 2024-10-10 170/week @ 2024-10-17 38/week @ 2024-10-24 255/week @ 2024-10-31 81/week @ 2024-11-07

578 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