Skip to content

About

Solidity library containing saturating math logic.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

rain.math.saturating

Math operations that clamp at the numeric bounds rather than error or wrap.

Install

Via soldeer:

forge soldeer install rain-math-saturating~<version>

Develop

This repo uses nix for its dev shell. The default shell is the slim sol-shell from rainix — no rust, node, or chromium.

nix develop          # enter the shell
forge soldeer install # install deps declared in foundry.toml
forge test

Use the nix-pinned forge for all development.

License

DecentraLicense 1.0 (DCL-1.0) — full text in LICENSES/.

This repo is REUSE 3.2 compliant.

Contributions

Welcome under the same license. Contributors warrant that their contributions are compliant.

About

Solidity library containing saturating math logic.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages