Guard your functions.
require(x > 0
must be positive
uint256(x)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; contract Guard { function onlyPositive(int256 x) external pure returns (uint256) { // TODO require + cast } }