Variables

Git Source

Inherits: Imports

This variables contract has all the custom variables for the SimpleSwap contract.

State Variables

s_creator

address internal s_creator;

s_contractAddresses

mapping(string => address) internal s_contractAddresses;

s_tokenAddresses

mapping(string => address) internal s_tokenAddresses;

s_uniswapV3Pools

mapping(string => UniswapV3Pool) internal s_uniswapV3Pools;

s_eventBlockNumbers

uint64[] internal s_eventBlockNumbers;

s_slippageTolerance

uint16 internal s_slippageTolerance;

VERSION

The current contract version.

string internal constant VERSION = "0.0.1";

OWNER_ROLE

The role hashes for the contract.

bytes32 internal constant OWNER_ROLE = keccak256("OWNER_ROLE");

SLIPPAGE_TOLERANCE_MAXIMUM

The maximum Slippage Tolerance.

The value is hardcoded in the contract to prevent terrible trades from occurring due to a high slippage tolerance. A contract upgrade is required to change this value.

uint16 internal constant SLIPPAGE_TOLERANCE_MAXIMUM = 100;