For the complete documentation index, see llms.txt. This page is also available as Markdown.

LibSafeDowncast

Overview

License: Apache 2.0

library LibSafeDowncast

Functions info

downcastToUint96

function downcastToUint96(uint256 a) internal pure returns (uint96 b)

Safely downcasts to a uint96 Note that this reverts if the input value is too large.

downcastToUint64

function downcastToUint64(uint256 a) internal pure returns (uint64 b)

Safely downcasts to a uint64 Note that this reverts if the input value is too large.

Last updated