ERC-20
Overview
Max Total Supply
1,000,000,000 AMG
Holders
19
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
583,124.372896014445770338 AMGValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
AMG
Compiler Version
v0.8.20+commit.a1b79de6
ZkSolc Version
v1.5.12
Optimization Enabled:
Yes with Mode 3
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // ██╗ ██╗ █████╗ ███╗ ███╗ ██████╗ // ██╗ ██╗ ██╔══██╗████╗ ████║██╔════╝ // ██╗ ██╗ ███████║██╔████╔██║██║ ███╗ // ██╗ ██╗ ██╔══██║██║╚██╔╝██║██║ ██║ // ██╗ ██╗ ██║ ██║██║ ╚═╝ ██║╚██████╔╝ // ██╗ ██╗ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; contract AMG is IERC20, IERC20Metadata, Ownable { using Address for address; // Token basic info string private constant _name = "Abstract Money Glitch"; string private constant _symbol = "AMG"; uint8 private constant _decimals = 18; // Supply configuration uint256 private constant _tTotal = 1000000000 * 10**18; // 1B total tokens uint256 private constant MAX = type(uint256).max; uint256 private _rTotal = (MAX - (MAX % _tTotal)); // Reflection fee: 5% on every tx uint256 private constant _taxFee = 50; uint256 private constant _taxDenominator = 1000; // Dual accounting system - normal balances & reflection space mapping(address => uint256) private _rOwned; // reflection space balances mapping(address => uint256) private _tOwned; // real balances for excluded mapping(address => mapping(address => uint256)) private _allowances; // Exclusion system mapping(address => bool) private _isExcluded; address[] private _excluded; // Running fee total uint256 private _tFeeTotal; // Owner gets initial supply constructor() Ownable(msg.sender) { _rOwned[msg.sender] = _rTotal; emit Transfer(address(0), msg.sender, _tTotal); } // ERC20 standard view functions function name() public pure override returns (string memory) { return _name; } function symbol() public pure override returns (string memory) { return _symbol; } function decimals() public pure override returns (uint8) { return _decimals; } function totalSupply() public pure override returns (uint256) { return _tTotal; } // Balance can be in reflection space or token space function balanceOf(address account) public view override returns (uint256) { if (_isExcluded[account]) return _tOwned[account]; return tokenFromReflection(_rOwned[account]); } // Standard transfer but with reflection mechanism applied function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } // Standard allowance check function allowance(address owner, address spender) public view override returns (uint256) { return _allowances[owner][spender]; } // Standard approval function function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } // Standard transferFrom with allowance handling function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } // Helper to increase allowance function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } // Helper to decrease allowance with underflow check function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } // Check if address is excluded from reflections function isExcluded(address account) public view returns (bool) { return _isExcluded[account]; } // Get total fees collected since contract creation function totalFees() public view returns (uint256) { return _tFeeTotal; } // Manually burn tokens with reflection effect function reflect(uint256 tAmount) public { address sender = _msgSender(); require(!_isExcluded[sender], "Excluded addresses cannot call this function"); require(tAmount <= balanceOf(sender), "Amount must be less than or equal to balance"); uint256 currentRate = _getRate(); uint256 rAmount = tAmount * currentRate; _rOwned[sender] = _rOwned[sender] - rAmount; _rTotal = _rTotal - rAmount; _tFeeTotal = _tFeeTotal + tAmount; } // Utility: Convert token amount to reflection amount function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns (uint256) { require(tAmount <= _tTotal, "Amount must be less than total supply"); uint256 currentRate = _getRate(); if (!deductTransferFee) { return tAmount * currentRate; } else { uint256 tFee = (tAmount * _taxFee) / _taxDenominator; uint256 tTransferAmount = tAmount - tFee; return tTransferAmount * currentRate; } } // Utility: Convert reflection amount to token amount function tokenFromReflection(uint256 rAmount) public view returns (uint256) { require(rAmount <= _rTotal, "Amount must be less than total reflections"); uint256 currentRate = _getRate(); return rAmount / currentRate; } // Owner can exclude address from auto-rewards function excludeFromReward(address account) public onlyOwner { require(!_isExcluded[account], "Account is already excluded"); if (_rOwned[account] > 0) { _tOwned[account] = tokenFromReflection(_rOwned[account]); } _isExcluded[account] = true; _excluded.push(account); } // Owner can re-include previously excluded address function includeInReward(address account) public onlyOwner { require(_isExcluded[account], "Account is already included"); for (uint256 i = 0; i < _excluded.length; i++) { if (_excluded[i] == account) { _excluded[i] = _excluded[_excluded.length - 1]; _rOwned[account] = _tOwned[account] * _getRate(); _tOwned[account] = 0; _isExcluded[account] = false; _excluded.pop(); break; } } } // Internal approval logic function _approve(address owner, address spender, uint256 amount) private { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } // Core transfer logic with reflection mechanism function _transfer(address sender, address recipient, uint256 amount) private { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater than zero"); // Use specialized transfer function based on accounts' excluded status if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && _isExcluded[recipient]) { _transferToExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && !_isExcluded[recipient]) { _transferStandard(sender, recipient, amount); } else if (_isExcluded[sender] && _isExcluded[recipient]) { _transferBothExcluded(sender, recipient, amount); } } // Regular transfer between two normal accounts function _transferStandard(address sender, address recipient, uint256 tAmount) private { uint256 currentRate = _getRate(); // Apply 5% fee uint256 tFee = (tAmount * _taxFee) / _taxDenominator; uint256 tTransferAmount = tAmount - tFee; // Convert to reflection space values uint256 rAmount = tAmount * currentRate; uint256 rFee = tFee * currentRate; uint256 rTransferAmount = rAmount - rFee; // Update balances _rOwned[sender] -= rAmount; _rOwned[recipient] += rTransferAmount; // Apply fee to all holders through reflection _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } // Transfer from normal to excluded account function _transferToExcluded(address sender, address recipient, uint256 tAmount) private { uint256 currentRate = _getRate(); // Apply 5% fee uint256 tFee = (tAmount * _taxFee) / _taxDenominator; uint256 tTransferAmount = tAmount - tFee; // Convert to reflection values uint256 rAmount = tAmount * currentRate; uint256 rFee = tFee * currentRate; uint256 rTransferAmount = rAmount - rFee; // Update in both spaces since recipient is excluded _rOwned[sender] -= rAmount; _tOwned[recipient] += tTransferAmount; // Track in real token space _rOwned[recipient] += rTransferAmount; // Also track in reflection space _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } // Transfer from excluded to normal account function _transferFromExcluded(address sender, address recipient, uint256 tAmount) private { uint256 currentRate = _getRate(); // Apply fee uint256 tFee = (tAmount * _taxFee) / _taxDenominator; uint256 tTransferAmount = tAmount - tFee; // Convert to reflection space uint256 rAmount = tAmount * currentRate; uint256 rFee = tFee * currentRate; uint256 rTransferAmount = rAmount - rFee; // Update balances in both spaces since sender is excluded _tOwned[sender] -= tAmount; _rOwned[sender] -= rAmount; _rOwned[recipient] += rTransferAmount; _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } // Transfer between two excluded accounts function _transferBothExcluded(address sender, address recipient, uint256 tAmount) private { uint256 currentRate = _getRate(); // Apply fee uint256 tFee = (tAmount * _taxFee) / _taxDenominator; uint256 tTransferAmount = tAmount - tFee; // Convert to reflection values uint256 rAmount = tAmount * currentRate; uint256 rFee = tFee * currentRate; uint256 rTransferAmount = rAmount - rFee; // Both accounts track in both spaces _tOwned[sender] -= tAmount; _rOwned[sender] -= rAmount; _tOwned[recipient] += tTransferAmount; _rOwned[recipient] += rTransferAmount; _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } // Update global values to reflect fee distribution function _reflectFee(uint256 rFee, uint256 tFee) private { _rTotal -= rFee; _tFeeTotal += tFee; } // Get current rate between reflection and token spaces function _getRate() private view returns (uint256) { (uint256 rSupply, uint256 tSupply) = _getCurrentSupply(); return rSupply / tSupply; } // Calculate current supply adjusted for excluded accounts function _getCurrentSupply() private view returns (uint256, uint256) { uint256 rSupply = _rTotal; uint256 tSupply = _tTotal; // Exclude all excluded accounts from circulating supply calculation for (uint256 i = 0; i < _excluded.length; i++) { if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) { return (_rTotal, _tTotal); // Prevent math errors } rSupply -= _rOwned[_excluded[i]]; tSupply -= _tOwned[_excluded[i]]; } // Handle potential precision issues if (rSupply < _rTotal / _tTotal) { return (_rTotal, _tTotal); } return (rSupply, tSupply); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.2.0) (utils/Address.sol) pragma solidity ^0.8.20; import {Errors} from "./Errors.sol"; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert Errors.InsufficientBalance(address(this).balance, amount); } (bool success, bytes memory returndata) = recipient.call{value: amount}(""); if (!success) { _revert(returndata); } } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {Errors.FailedCall} error. * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert Errors.InsufficientBalance(address(this).balance, value); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case * of an unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {Errors.FailedCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly ("memory-safe") { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert Errors.FailedCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC-20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol) pragma solidity ^0.8.20; import {Panic} from "../Panic.sol"; import {SafeCast} from "./SafeCast.sol"; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Return the 512-bit addition of two uint256. * * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low. */ function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) { assembly ("memory-safe") { low := add(a, b) high := lt(low, a) } } /** * @dev Return the 512-bit multiplication of two uint256. * * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low. */ function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) { // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = high * 2²⁵⁶ + low. assembly ("memory-safe") { let mm := mulmod(a, b, not(0)) low := mul(a, b) high := sub(sub(mm, low), lt(mm, low)) } } /** * @dev Returns the addition of two unsigned integers, with a success flag (no overflow). */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { uint256 c = a + b; success = c >= a; result = c * SafeCast.toUint(success); } } /** * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow). */ function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { uint256 c = a - b; success = c <= a; result = c * SafeCast.toUint(success); } } /** * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow). */ function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { uint256 c = a * b; assembly ("memory-safe") { // Only true when the multiplication doesn't overflow // (c / a == b) || (a == 0) success := or(eq(div(c, a), b), iszero(a)) } // equivalent to: success ? c : 0 result = c * SafeCast.toUint(success); } } /** * @dev Returns the division of two unsigned integers, with a success flag (no division by zero). */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { success = b > 0; assembly ("memory-safe") { // The `DIV` opcode returns zero when the denominator is 0. result := div(a, b) } } } /** * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero). */ function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { success = b > 0; assembly ("memory-safe") { // The `MOD` opcode returns zero when the denominator is 0. result := mod(a, b) } } } /** * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing. */ function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) { (bool success, uint256 result) = tryAdd(a, b); return ternary(success, result, type(uint256).max); } /** * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing. */ function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) { (, uint256 result) = trySub(a, b); return result; } /** * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing. */ function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) { (bool success, uint256 result) = tryMul(a, b); return ternary(success, result, type(uint256).max); } /** * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. * * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute * one branch when needed, making this function more expensive. */ function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) { unchecked { // branchless ternary works because: // b ^ (a ^ b) == a // b ^ 0 == b return b ^ ((a ^ b) * SafeCast.toUint(condition)); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(a > b, a, b); } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(a < b, a, b); } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. Panic.panic(Panic.DIVISION_BY_ZERO); } // The following calculation ensures accurate ceiling division without overflow. // Since a is non-zero, (a - 1) / b will not overflow. // The largest possible result occurs when (a - 1) / b is type(uint256).max, // but the largest value we can obtain is type(uint256).max - 1, which happens // when a = type(uint256).max and b = 1. unchecked { return SafeCast.toUint(a > 0) * ((a - 1) / b + 1); } } /** * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { (uint256 high, uint256 low) = mul512(x, y); // Handle non-overflow cases, 256 by 256 division. if (high == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return low / denominator; } // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0. if (denominator <= high) { Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW)); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [high low]. uint256 remainder; assembly ("memory-safe") { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. high := sub(high, gt(remainder, low)) low := sub(low, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly ("memory-safe") { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [high low] by twos. low := div(low, twos) // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from high into low. low |= high * twos; // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv ≡ 1 mod 2⁴. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2⁸ inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶ inverse *= 2 - denominator * inverse; // inverse mod 2³² inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴ inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸ inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶ // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high // is no longer required. result = low * inverse; return result; } } /** * @dev Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0); } /** * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256. */ function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) { unchecked { (uint256 high, uint256 low) = mul512(x, y); if (high >= 1 << n) { Panic.panic(Panic.UNDER_OVERFLOW); } return (high << (256 - n)) | (low >> n); } } /** * @dev Calculates x * y >> n with full precision, following the selected rounding direction. */ function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) { return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0); } /** * @dev Calculate the modular multiplicative inverse of a number in Z/nZ. * * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0. * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible. * * If the input value is not inversible, 0 is returned. * * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}. */ function invMod(uint256 a, uint256 n) internal pure returns (uint256) { unchecked { if (n == 0) return 0; // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version) // Used to compute integers x and y such that: ax + ny = gcd(a, n). // When the gcd is 1, then the inverse of a modulo n exists and it's x. // ax + ny = 1 // ax = 1 + (-y)n // ax ≡ 1 (mod n) # x is the inverse of a modulo n // If the remainder is 0 the gcd is n right away. uint256 remainder = a % n; uint256 gcd = n; // Therefore the initial coefficients are: // ax + ny = gcd(a, n) = n // 0a + 1n = n int256 x = 0; int256 y = 1; while (remainder != 0) { uint256 quotient = gcd / remainder; (gcd, remainder) = ( // The old remainder is the next gcd to try. remainder, // Compute the next remainder. // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd // where gcd is at most n (capped to type(uint256).max) gcd - remainder * quotient ); (x, y) = ( // Increment the coefficient of a. y, // Decrement the coefficient of n. // Can overflow, but the result is casted to uint256 so that the // next value of y is "wrapped around" to a value between 0 and n - 1. x - y * int256(quotient) ); } if (gcd != 1) return 0; // No inverse exists. return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative. } } /** * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`. * * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that * `a**(p-2)` is the modular multiplicative inverse of a in Fp. * * NOTE: this function does NOT check that `p` is a prime greater than `2`. */ function invModPrime(uint256 a, uint256 p) internal view returns (uint256) { unchecked { return Math.modExp(a, p - 2, p); } } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m) * * Requirements: * - modulus can't be zero * - underlying staticcall to precompile must succeed * * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make * sure the chain you're using it on supports the precompiled contract for modular exponentiation * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, * the underlying function will succeed given the lack of a revert, but the result may be incorrectly * interpreted as 0. */ function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) { (bool success, uint256 result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m). * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying * to operate modulo 0 or if the underlying precompile reverted. * * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack * of a revert, but the result may be incorrectly interpreted as 0. */ function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) { if (m == 0) return (false, 0); assembly ("memory-safe") { let ptr := mload(0x40) // | Offset | Content | Content (Hex) | // |-----------|------------|--------------------------------------------------------------------| // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x60:0x7f | value of b | 0x<.............................................................b> | // | 0x80:0x9f | value of e | 0x<.............................................................e> | // | 0xa0:0xbf | value of m | 0x<.............................................................m> | mstore(ptr, 0x20) mstore(add(ptr, 0x20), 0x20) mstore(add(ptr, 0x40), 0x20) mstore(add(ptr, 0x60), b) mstore(add(ptr, 0x80), e) mstore(add(ptr, 0xa0), m) // Given the result < m, it's guaranteed to fit in 32 bytes, // so we can use the memory scratch space located at offset 0. success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20) result := mload(0x00) } } /** * @dev Variant of {modExp} that supports inputs of arbitrary length. */ function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) { (bool success, bytes memory result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Variant of {tryModExp} that supports inputs of arbitrary length. */ function tryModExp( bytes memory b, bytes memory e, bytes memory m ) internal view returns (bool success, bytes memory result) { if (_zeroBytes(m)) return (false, new bytes(0)); uint256 mLen = m.length; // Encode call args in result and move the free memory pointer result = abi.encodePacked(b.length, e.length, mLen, b, e, m); assembly ("memory-safe") { let dataPtr := add(result, 0x20) // Write result on top of args to avoid allocating extra memory. success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen) // Overwrite the length. // result.length > returndatasize() is guaranteed because returndatasize() == m.length mstore(result, mLen) // Set the memory pointer after the returned data. mstore(0x40, add(dataPtr, mLen)) } } /** * @dev Returns whether the provided byte array is zero. */ function _zeroBytes(bytes memory byteArray) private pure returns (bool) { for (uint256 i = 0; i < byteArray.length; ++i) { if (byteArray[i] != 0) { return false; } } return true; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * This method is based on Newton's method for computing square roots; the algorithm is restricted to only * using integer operations. */ function sqrt(uint256 a) internal pure returns (uint256) { unchecked { // Take care of easy edge cases when a == 0 or a == 1 if (a <= 1) { return a; } // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between // the current value as `ε_n = | x_n - sqrt(a) |`. // // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is // bigger than any uint256. // // By noticing that // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)` // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar // to the msb function. uint256 aa = a; uint256 xn = 1; if (aa >= (1 << 128)) { aa >>= 128; xn <<= 64; } if (aa >= (1 << 64)) { aa >>= 64; xn <<= 32; } if (aa >= (1 << 32)) { aa >>= 32; xn <<= 16; } if (aa >= (1 << 16)) { aa >>= 16; xn <<= 8; } if (aa >= (1 << 8)) { aa >>= 8; xn <<= 4; } if (aa >= (1 << 4)) { aa >>= 4; xn <<= 2; } if (aa >= (1 << 2)) { xn <<= 1; } // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1). // // We can refine our estimation by noticing that the middle of that interval minimizes the error. // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2). // This is going to be our x_0 (and ε_0) xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2) // From here, Newton's method give us: // x_{n+1} = (x_n + a / x_n) / 2 // // One should note that: // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a // = ((x_n² + a) / (2 * x_n))² - a // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²) // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²) // = (x_n² - a)² / (2 * x_n)² // = ((x_n² - a) / (2 * x_n))² // ≥ 0 // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n // // This gives us the proof of quadratic convergence of the sequence: // ε_{n+1} = | x_{n+1} - sqrt(a) | // = | (x_n + a / x_n) / 2 - sqrt(a) | // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) | // = | (x_n - sqrt(a))² / (2 * x_n) | // = | ε_n² / (2 * x_n) | // = ε_n² / | (2 * x_n) | // // For the first iteration, we have a special case where x_0 is known: // ε_1 = ε_0² / | (2 * x_0) | // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2))) // ≤ 2**(2*e-4) / (3 * 2**(e-1)) // ≤ 2**(e-3) / 3 // ≤ 2**(e-3-log2(3)) // ≤ 2**(e-4.5) // // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n: // ε_{n+1} = ε_n² / | (2 * x_n) | // ≤ (2**(e-k))² / (2 * 2**(e-1)) // ≤ 2**(2*e-2*k) / 2**e // ≤ 2**(e-2*k) xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5 xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9 xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18 xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36 xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72 // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either // sqrt(a) or sqrt(a) + 1. return xn - SafeCast.toUint(xn > a / xn); } } /** * @dev Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 x) internal pure returns (uint256 r) { // If value has upper 128 bits set, log2 result is at least 128 r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7; // If upper 64 bits of 128-bit half set, add 64 to result r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6; // If upper 32 bits of 64-bit half set, add 32 to result r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5; // If upper 16 bits of 32-bit half set, add 16 to result r |= SafeCast.toUint((x >> r) > 0xffff) << 4; // If upper 8 bits of 16-bit half set, add 8 to result r |= SafeCast.toUint((x >> r) > 0xff) << 3; // If upper 4 bits of 8-bit half set, add 4 to result r |= SafeCast.toUint((x >> r) > 0xf) << 2; // Shifts value right by the current result and use it as an index into this lookup table: // // | x (4 bits) | index | table[index] = MSB position | // |------------|---------|-----------------------------| // | 0000 | 0 | table[0] = 0 | // | 0001 | 1 | table[1] = 0 | // | 0010 | 2 | table[2] = 1 | // | 0011 | 3 | table[3] = 1 | // | 0100 | 4 | table[4] = 2 | // | 0101 | 5 | table[5] = 2 | // | 0110 | 6 | table[6] = 2 | // | 0111 | 7 | table[7] = 2 | // | 1000 | 8 | table[8] = 3 | // | 1001 | 9 | table[9] = 3 | // | 1010 | 10 | table[10] = 3 | // | 1011 | 11 | table[11] = 3 | // | 1100 | 12 | table[12] = 3 | // | 1101 | 13 | table[13] = 3 | // | 1110 | 14 | table[14] = 3 | // | 1111 | 15 | table[15] = 3 | // // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes. assembly ("memory-safe") { r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000)) } } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 x) internal pure returns (uint256 r) { // If value has upper 128 bits set, log2 result is at least 128 r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7; // If upper 64 bits of 128-bit half set, add 64 to result r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6; // If upper 32 bits of 64-bit half set, add 32 to result r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5; // If upper 16 bits of 32-bit half set, add 16 to result r |= SafeCast.toUint((x >> r) > 0xffff) << 4; // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8 return (r >> 3) | SafeCast.toUint((x >> r) > 0xff); } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol) pragma solidity ^0.8.20; /** * @dev Collection of common custom errors used in multiple contracts * * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library. * It is recommended to avoid relying on the error API for critical functionality. * * _Available since v5.1._ */ library Errors { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error InsufficientBalance(uint256 balance, uint256 needed); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedCall(); /** * @dev The deployment failed. */ error FailedDeployment(); /** * @dev A necessary precompile is missing. */ error MissingPrecompile(address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol) pragma solidity ^0.8.20; /** * @dev Helper library for emitting standardized panic codes. * * ```solidity * contract Example { * using Panic for uint256; * * // Use any of the declared internal constants * function foo() { Panic.GENERIC.panic(); } * * // Alternatively * function foo() { Panic.panic(Panic.GENERIC); } * } * ``` * * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil]. * * _Available since v5.1._ */ // slither-disable-next-line unused-state library Panic { /// @dev generic / unspecified error uint256 internal constant GENERIC = 0x00; /// @dev used by the assert() builtin uint256 internal constant ASSERT = 0x01; /// @dev arithmetic underflow or overflow uint256 internal constant UNDER_OVERFLOW = 0x11; /// @dev division or modulo by zero uint256 internal constant DIVISION_BY_ZERO = 0x12; /// @dev enum conversion error uint256 internal constant ENUM_CONVERSION_ERROR = 0x21; /// @dev invalid encoding in storage uint256 internal constant STORAGE_ENCODING_ERROR = 0x22; /// @dev empty array pop uint256 internal constant EMPTY_ARRAY_POP = 0x31; /// @dev array out of bounds access uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32; /// @dev resource error (too large allocation or too large array) uint256 internal constant RESOURCE_ERROR = 0x41; /// @dev calling invalid internal function uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51; /// @dev Reverts with a panic code. Recommended to use with /// the internal constants with predefined codes. function panic(uint256 code) internal pure { assembly ("memory-safe") { mstore(0x00, 0x4e487b71) mstore(0x20, code) revert(0x1c, 0x24) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol) // This file was procedurally generated from scripts/generate/templates/SafeCast.js. pragma solidity ^0.8.20; /** * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeCast { /** * @dev Value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value); /** * @dev An int value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedIntToUint(int256 value); /** * @dev Value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedIntDowncast(uint8 bits, int256 value); /** * @dev An uint value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedUintToInt(uint256 value); /** * @dev Returns the downcasted uint248 from uint256, reverting on * overflow (when the input is greater than largest uint248). * * Counterpart to Solidity's `uint248` operator. * * Requirements: * * - input must fit into 248 bits */ function toUint248(uint256 value) internal pure returns (uint248) { if (value > type(uint248).max) { revert SafeCastOverflowedUintDowncast(248, value); } return uint248(value); } /** * @dev Returns the downcasted uint240 from uint256, reverting on * overflow (when the input is greater than largest uint240). * * Counterpart to Solidity's `uint240` operator. * * Requirements: * * - input must fit into 240 bits */ function toUint240(uint256 value) internal pure returns (uint240) { if (value > type(uint240).max) { revert SafeCastOverflowedUintDowncast(240, value); } return uint240(value); } /** * @dev Returns the downcasted uint232 from uint256, reverting on * overflow (when the input is greater than largest uint232). * * Counterpart to Solidity's `uint232` operator. * * Requirements: * * - input must fit into 232 bits */ function toUint232(uint256 value) internal pure returns (uint232) { if (value > type(uint232).max) { revert SafeCastOverflowedUintDowncast(232, value); } return uint232(value); } /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { if (value > type(uint224).max) { revert SafeCastOverflowedUintDowncast(224, value); } return uint224(value); } /** * @dev Returns the downcasted uint216 from uint256, reverting on * overflow (when the input is greater than largest uint216). * * Counterpart to Solidity's `uint216` operator. * * Requirements: * * - input must fit into 216 bits */ function toUint216(uint256 value) internal pure returns (uint216) { if (value > type(uint216).max) { revert SafeCastOverflowedUintDowncast(216, value); } return uint216(value); } /** * @dev Returns the downcasted uint208 from uint256, reverting on * overflow (when the input is greater than largest uint208). * * Counterpart to Solidity's `uint208` operator. * * Requirements: * * - input must fit into 208 bits */ function toUint208(uint256 value) internal pure returns (uint208) { if (value > type(uint208).max) { revert SafeCastOverflowedUintDowncast(208, value); } return uint208(value); } /** * @dev Returns the downcasted uint200 from uint256, reverting on * overflow (when the input is greater than largest uint200). * * Counterpart to Solidity's `uint200` operator. * * Requirements: * * - input must fit into 200 bits */ function toUint200(uint256 value) internal pure returns (uint200) { if (value > type(uint200).max) { revert SafeCastOverflowedUintDowncast(200, value); } return uint200(value); } /** * @dev Returns the downcasted uint192 from uint256, reverting on * overflow (when the input is greater than largest uint192). * * Counterpart to Solidity's `uint192` operator. * * Requirements: * * - input must fit into 192 bits */ function toUint192(uint256 value) internal pure returns (uint192) { if (value > type(uint192).max) { revert SafeCastOverflowedUintDowncast(192, value); } return uint192(value); } /** * @dev Returns the downcasted uint184 from uint256, reverting on * overflow (when the input is greater than largest uint184). * * Counterpart to Solidity's `uint184` operator. * * Requirements: * * - input must fit into 184 bits */ function toUint184(uint256 value) internal pure returns (uint184) { if (value > type(uint184).max) { revert SafeCastOverflowedUintDowncast(184, value); } return uint184(value); } /** * @dev Returns the downcasted uint176 from uint256, reverting on * overflow (when the input is greater than largest uint176). * * Counterpart to Solidity's `uint176` operator. * * Requirements: * * - input must fit into 176 bits */ function toUint176(uint256 value) internal pure returns (uint176) { if (value > type(uint176).max) { revert SafeCastOverflowedUintDowncast(176, value); } return uint176(value); } /** * @dev Returns the downcasted uint168 from uint256, reverting on * overflow (when the input is greater than largest uint168). * * Counterpart to Solidity's `uint168` operator. * * Requirements: * * - input must fit into 168 bits */ function toUint168(uint256 value) internal pure returns (uint168) { if (value > type(uint168).max) { revert SafeCastOverflowedUintDowncast(168, value); } return uint168(value); } /** * @dev Returns the downcasted uint160 from uint256, reverting on * overflow (when the input is greater than largest uint160). * * Counterpart to Solidity's `uint160` operator. * * Requirements: * * - input must fit into 160 bits */ function toUint160(uint256 value) internal pure returns (uint160) { if (value > type(uint160).max) { revert SafeCastOverflowedUintDowncast(160, value); } return uint160(value); } /** * @dev Returns the downcasted uint152 from uint256, reverting on * overflow (when the input is greater than largest uint152). * * Counterpart to Solidity's `uint152` operator. * * Requirements: * * - input must fit into 152 bits */ function toUint152(uint256 value) internal pure returns (uint152) { if (value > type(uint152).max) { revert SafeCastOverflowedUintDowncast(152, value); } return uint152(value); } /** * @dev Returns the downcasted uint144 from uint256, reverting on * overflow (when the input is greater than largest uint144). * * Counterpart to Solidity's `uint144` operator. * * Requirements: * * - input must fit into 144 bits */ function toUint144(uint256 value) internal pure returns (uint144) { if (value > type(uint144).max) { revert SafeCastOverflowedUintDowncast(144, value); } return uint144(value); } /** * @dev Returns the downcasted uint136 from uint256, reverting on * overflow (when the input is greater than largest uint136). * * Counterpart to Solidity's `uint136` operator. * * Requirements: * * - input must fit into 136 bits */ function toUint136(uint256 value) internal pure returns (uint136) { if (value > type(uint136).max) { revert SafeCastOverflowedUintDowncast(136, value); } return uint136(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { if (value > type(uint128).max) { revert SafeCastOverflowedUintDowncast(128, value); } return uint128(value); } /** * @dev Returns the downcasted uint120 from uint256, reverting on * overflow (when the input is greater than largest uint120). * * Counterpart to Solidity's `uint120` operator. * * Requirements: * * - input must fit into 120 bits */ function toUint120(uint256 value) internal pure returns (uint120) { if (value > type(uint120).max) { revert SafeCastOverflowedUintDowncast(120, value); } return uint120(value); } /** * @dev Returns the downcasted uint112 from uint256, reverting on * overflow (when the input is greater than largest uint112). * * Counterpart to Solidity's `uint112` operator. * * Requirements: * * - input must fit into 112 bits */ function toUint112(uint256 value) internal pure returns (uint112) { if (value > type(uint112).max) { revert SafeCastOverflowedUintDowncast(112, value); } return uint112(value); } /** * @dev Returns the downcasted uint104 from uint256, reverting on * overflow (when the input is greater than largest uint104). * * Counterpart to Solidity's `uint104` operator. * * Requirements: * * - input must fit into 104 bits */ function toUint104(uint256 value) internal pure returns (uint104) { if (value > type(uint104).max) { revert SafeCastOverflowedUintDowncast(104, value); } return uint104(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { if (value > type(uint96).max) { revert SafeCastOverflowedUintDowncast(96, value); } return uint96(value); } /** * @dev Returns the downcasted uint88 from uint256, reverting on * overflow (when the input is greater than largest uint88). * * Counterpart to Solidity's `uint88` operator. * * Requirements: * * - input must fit into 88 bits */ function toUint88(uint256 value) internal pure returns (uint88) { if (value > type(uint88).max) { revert SafeCastOverflowedUintDowncast(88, value); } return uint88(value); } /** * @dev Returns the downcasted uint80 from uint256, reverting on * overflow (when the input is greater than largest uint80). * * Counterpart to Solidity's `uint80` operator. * * Requirements: * * - input must fit into 80 bits */ function toUint80(uint256 value) internal pure returns (uint80) { if (value > type(uint80).max) { revert SafeCastOverflowedUintDowncast(80, value); } return uint80(value); } /** * @dev Returns the downcasted uint72 from uint256, reverting on * overflow (when the input is greater than largest uint72). * * Counterpart to Solidity's `uint72` operator. * * Requirements: * * - input must fit into 72 bits */ function toUint72(uint256 value) internal pure returns (uint72) { if (value > type(uint72).max) { revert SafeCastOverflowedUintDowncast(72, value); } return uint72(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { if (value > type(uint64).max) { revert SafeCastOverflowedUintDowncast(64, value); } return uint64(value); } /** * @dev Returns the downcasted uint56 from uint256, reverting on * overflow (when the input is greater than largest uint56). * * Counterpart to Solidity's `uint56` operator. * * Requirements: * * - input must fit into 56 bits */ function toUint56(uint256 value) internal pure returns (uint56) { if (value > type(uint56).max) { revert SafeCastOverflowedUintDowncast(56, value); } return uint56(value); } /** * @dev Returns the downcasted uint48 from uint256, reverting on * overflow (when the input is greater than largest uint48). * * Counterpart to Solidity's `uint48` operator. * * Requirements: * * - input must fit into 48 bits */ function toUint48(uint256 value) internal pure returns (uint48) { if (value > type(uint48).max) { revert SafeCastOverflowedUintDowncast(48, value); } return uint48(value); } /** * @dev Returns the downcasted uint40 from uint256, reverting on * overflow (when the input is greater than largest uint40). * * Counterpart to Solidity's `uint40` operator. * * Requirements: * * - input must fit into 40 bits */ function toUint40(uint256 value) internal pure returns (uint40) { if (value > type(uint40).max) { revert SafeCastOverflowedUintDowncast(40, value); } return uint40(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { if (value > type(uint32).max) { revert SafeCastOverflowedUintDowncast(32, value); } return uint32(value); } /** * @dev Returns the downcasted uint24 from uint256, reverting on * overflow (when the input is greater than largest uint24). * * Counterpart to Solidity's `uint24` operator. * * Requirements: * * - input must fit into 24 bits */ function toUint24(uint256 value) internal pure returns (uint24) { if (value > type(uint24).max) { revert SafeCastOverflowedUintDowncast(24, value); } return uint24(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { if (value > type(uint16).max) { revert SafeCastOverflowedUintDowncast(16, value); } return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits */ function toUint8(uint256 value) internal pure returns (uint8) { if (value > type(uint8).max) { revert SafeCastOverflowedUintDowncast(8, value); } return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { if (value < 0) { revert SafeCastOverflowedIntToUint(value); } return uint256(value); } /** * @dev Returns the downcasted int248 from int256, reverting on * overflow (when the input is less than smallest int248 or * greater than largest int248). * * Counterpart to Solidity's `int248` operator. * * Requirements: * * - input must fit into 248 bits */ function toInt248(int256 value) internal pure returns (int248 downcasted) { downcasted = int248(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(248, value); } } /** * @dev Returns the downcasted int240 from int256, reverting on * overflow (when the input is less than smallest int240 or * greater than largest int240). * * Counterpart to Solidity's `int240` operator. * * Requirements: * * - input must fit into 240 bits */ function toInt240(int256 value) internal pure returns (int240 downcasted) { downcasted = int240(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(240, value); } } /** * @dev Returns the downcasted int232 from int256, reverting on * overflow (when the input is less than smallest int232 or * greater than largest int232). * * Counterpart to Solidity's `int232` operator. * * Requirements: * * - input must fit into 232 bits */ function toInt232(int256 value) internal pure returns (int232 downcasted) { downcasted = int232(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(232, value); } } /** * @dev Returns the downcasted int224 from int256, reverting on * overflow (when the input is less than smallest int224 or * greater than largest int224). * * Counterpart to Solidity's `int224` operator. * * Requirements: * * - input must fit into 224 bits */ function toInt224(int256 value) internal pure returns (int224 downcasted) { downcasted = int224(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(224, value); } } /** * @dev Returns the downcasted int216 from int256, reverting on * overflow (when the input is less than smallest int216 or * greater than largest int216). * * Counterpart to Solidity's `int216` operator. * * Requirements: * * - input must fit into 216 bits */ function toInt216(int256 value) internal pure returns (int216 downcasted) { downcasted = int216(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(216, value); } } /** * @dev Returns the downcasted int208 from int256, reverting on * overflow (when the input is less than smallest int208 or * greater than largest int208). * * Counterpart to Solidity's `int208` operator. * * Requirements: * * - input must fit into 208 bits */ function toInt208(int256 value) internal pure returns (int208 downcasted) { downcasted = int208(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(208, value); } } /** * @dev Returns the downcasted int200 from int256, reverting on * overflow (when the input is less than smallest int200 or * greater than largest int200). * * Counterpart to Solidity's `int200` operator. * * Requirements: * * - input must fit into 200 bits */ function toInt200(int256 value) internal pure returns (int200 downcasted) { downcasted = int200(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(200, value); } } /** * @dev Returns the downcasted int192 from int256, reverting on * overflow (when the input is less than smallest int192 or * greater than largest int192). * * Counterpart to Solidity's `int192` operator. * * Requirements: * * - input must fit into 192 bits */ function toInt192(int256 value) internal pure returns (int192 downcasted) { downcasted = int192(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(192, value); } } /** * @dev Returns the downcasted int184 from int256, reverting on * overflow (when the input is less than smallest int184 or * greater than largest int184). * * Counterpart to Solidity's `int184` operator. * * Requirements: * * - input must fit into 184 bits */ function toInt184(int256 value) internal pure returns (int184 downcasted) { downcasted = int184(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(184, value); } } /** * @dev Returns the downcasted int176 from int256, reverting on * overflow (when the input is less than smallest int176 or * greater than largest int176). * * Counterpart to Solidity's `int176` operator. * * Requirements: * * - input must fit into 176 bits */ function toInt176(int256 value) internal pure returns (int176 downcasted) { downcasted = int176(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(176, value); } } /** * @dev Returns the downcasted int168 from int256, reverting on * overflow (when the input is less than smallest int168 or * greater than largest int168). * * Counterpart to Solidity's `int168` operator. * * Requirements: * * - input must fit into 168 bits */ function toInt168(int256 value) internal pure returns (int168 downcasted) { downcasted = int168(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(168, value); } } /** * @dev Returns the downcasted int160 from int256, reverting on * overflow (when the input is less than smallest int160 or * greater than largest int160). * * Counterpart to Solidity's `int160` operator. * * Requirements: * * - input must fit into 160 bits */ function toInt160(int256 value) internal pure returns (int160 downcasted) { downcasted = int160(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(160, value); } } /** * @dev Returns the downcasted int152 from int256, reverting on * overflow (when the input is less than smallest int152 or * greater than largest int152). * * Counterpart to Solidity's `int152` operator. * * Requirements: * * - input must fit into 152 bits */ function toInt152(int256 value) internal pure returns (int152 downcasted) { downcasted = int152(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(152, value); } } /** * @dev Returns the downcasted int144 from int256, reverting on * overflow (when the input is less than smallest int144 or * greater than largest int144). * * Counterpart to Solidity's `int144` operator. * * Requirements: * * - input must fit into 144 bits */ function toInt144(int256 value) internal pure returns (int144 downcasted) { downcasted = int144(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(144, value); } } /** * @dev Returns the downcasted int136 from int256, reverting on * overflow (when the input is less than smallest int136 or * greater than largest int136). * * Counterpart to Solidity's `int136` operator. * * Requirements: * * - input must fit into 136 bits */ function toInt136(int256 value) internal pure returns (int136 downcasted) { downcasted = int136(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(136, value); } } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits */ function toInt128(int256 value) internal pure returns (int128 downcasted) { downcasted = int128(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(128, value); } } /** * @dev Returns the downcasted int120 from int256, reverting on * overflow (when the input is less than smallest int120 or * greater than largest int120). * * Counterpart to Solidity's `int120` operator. * * Requirements: * * - input must fit into 120 bits */ function toInt120(int256 value) internal pure returns (int120 downcasted) { downcasted = int120(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(120, value); } } /** * @dev Returns the downcasted int112 from int256, reverting on * overflow (when the input is less than smallest int112 or * greater than largest int112). * * Counterpart to Solidity's `int112` operator. * * Requirements: * * - input must fit into 112 bits */ function toInt112(int256 value) internal pure returns (int112 downcasted) { downcasted = int112(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(112, value); } } /** * @dev Returns the downcasted int104 from int256, reverting on * overflow (when the input is less than smallest int104 or * greater than largest int104). * * Counterpart to Solidity's `int104` operator. * * Requirements: * * - input must fit into 104 bits */ function toInt104(int256 value) internal pure returns (int104 downcasted) { downcasted = int104(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(104, value); } } /** * @dev Returns the downcasted int96 from int256, reverting on * overflow (when the input is less than smallest int96 or * greater than largest int96). * * Counterpart to Solidity's `int96` operator. * * Requirements: * * - input must fit into 96 bits */ function toInt96(int256 value) internal pure returns (int96 downcasted) { downcasted = int96(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(96, value); } } /** * @dev Returns the downcasted int88 from int256, reverting on * overflow (when the input is less than smallest int88 or * greater than largest int88). * * Counterpart to Solidity's `int88` operator. * * Requirements: * * - input must fit into 88 bits */ function toInt88(int256 value) internal pure returns (int88 downcasted) { downcasted = int88(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(88, value); } } /** * @dev Returns the downcasted int80 from int256, reverting on * overflow (when the input is less than smallest int80 or * greater than largest int80). * * Counterpart to Solidity's `int80` operator. * * Requirements: * * - input must fit into 80 bits */ function toInt80(int256 value) internal pure returns (int80 downcasted) { downcasted = int80(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(80, value); } } /** * @dev Returns the downcasted int72 from int256, reverting on * overflow (when the input is less than smallest int72 or * greater than largest int72). * * Counterpart to Solidity's `int72` operator. * * Requirements: * * - input must fit into 72 bits */ function toInt72(int256 value) internal pure returns (int72 downcasted) { downcasted = int72(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(72, value); } } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits */ function toInt64(int256 value) internal pure returns (int64 downcasted) { downcasted = int64(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(64, value); } } /** * @dev Returns the downcasted int56 from int256, reverting on * overflow (when the input is less than smallest int56 or * greater than largest int56). * * Counterpart to Solidity's `int56` operator. * * Requirements: * * - input must fit into 56 bits */ function toInt56(int256 value) internal pure returns (int56 downcasted) { downcasted = int56(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(56, value); } } /** * @dev Returns the downcasted int48 from int256, reverting on * overflow (when the input is less than smallest int48 or * greater than largest int48). * * Counterpart to Solidity's `int48` operator. * * Requirements: * * - input must fit into 48 bits */ function toInt48(int256 value) internal pure returns (int48 downcasted) { downcasted = int48(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(48, value); } } /** * @dev Returns the downcasted int40 from int256, reverting on * overflow (when the input is less than smallest int40 or * greater than largest int40). * * Counterpart to Solidity's `int40` operator. * * Requirements: * * - input must fit into 40 bits */ function toInt40(int256 value) internal pure returns (int40 downcasted) { downcasted = int40(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(40, value); } } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits */ function toInt32(int256 value) internal pure returns (int32 downcasted) { downcasted = int32(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(32, value); } } /** * @dev Returns the downcasted int24 from int256, reverting on * overflow (when the input is less than smallest int24 or * greater than largest int24). * * Counterpart to Solidity's `int24` operator. * * Requirements: * * - input must fit into 24 bits */ function toInt24(int256 value) internal pure returns (int24 downcasted) { downcasted = int24(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(24, value); } } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits */ function toInt16(int256 value) internal pure returns (int16 downcasted) { downcasted = int16(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(16, value); } } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits */ function toInt8(int256 value) internal pure returns (int8 downcasted) { downcasted = int8(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(8, value); } } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive if (value > uint256(type(int256).max)) { revert SafeCastOverflowedUintToInt(value); } return int256(value); } /** * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump. */ function toUint(bool b) internal pure returns (uint256 u) { assembly ("memory-safe") { u := iszero(iszero(b)) } } }
{ "optimizer": { "enabled": true, "mode": "3" }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "abi" ] } }, "detectMissingLibraries": false, "forceEVMLA": false, "enableEraVMExtensions": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"}],"name":"reflect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"},{"internalType":"bool","name":"deductTransferFee","type":"bool"}],"name":"reflectionFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b000000000000000000000000000000000000000000000000000000000000000001000343106deae94d98a22114db85ec23604973f6ddbbbf4944ddab4c2bbd2800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x000b000000000002000000000301034f0000008001000039000000400010043f0000000100200190000000260000c13d0000006001300270000002ed01100197000000040010008c000004330000413d000000000203043b000000e002200270000002f80020009c000000680000a13d000002f90020009c000000790000a13d000002fa0020009c000000c10000213d000002fe0020009c0000015e0000613d000002ff0020009c0000016f0000613d000003000020009c000004330000c13d000000440010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000201043b000002ef0020009c000004330000213d0000002401300370000000000301043b00000000010004110bb006630000040f000002e90000013d0000000001000416000000000001004b000004330000c13d0000000006000411000000000006004b000000310000c13d0000031601000041000000800010043f000000840000043f000003150100004100000bb200010430000000000100041a000002ee02100197000000000262019f000000000020041b0000000002000414000002ef05100197000002ed0020009c000002ed02008041000000c001200210000002f0011001c70000800d020000390000000303000039000002f1040000410bb00ba60000040f0000000100200190000004330000613d000002f2020000410000000101000039000000000021041b0000000001000411000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000002f202000041000000000021041b000002f401000041000000800010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f5011001c70000800d020000390000000303000039000002f604000041000000000500001900000000060004110bb00ba60000040f0000000100200190000004330000613d000000200100003900000100001004430000012000000443000002f70100004100000bb10001042e000003070020009c000000890000213d0000030e0020009c000000e30000a13d0000030f0020009c000001a10000613d000003100020009c000001ae0000613d000003110020009c000004330000c13d0000000001000416000000000001004b000004330000c13d000002f401000041000000800010043f000003170100004100000bb10001042e000003010020009c000000f00000a13d000003020020009c000001b60000613d000003030020009c000001c10000613d000003040020009c000004330000c13d0000000001000416000000000001004b000004330000c13d000000000100041a000002ef01100197000000800010043f000003170100004100000bb10001042e000003080020009c000001510000a13d000003090020009c000001d90000613d0000030a0020009c000001e00000613d0000030b0020009c000004330000c13d000000440010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000101043b000900000001001d000002ef0010009c000004330000213d0000000001000411000000000010043f0000000401000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c7000080100200003900080000000303530bb00bab0000040f000000080300035f0000000100200190000004330000613d000000000101043b0000000902000029000000000020043f000000200010043f0000002401300370000000000101043b000800000001001d0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000101041a0000000802000029000000000021001a000003ca0000413d0000000003210019000002e60000013d000002fb0020009c000002040000613d000002fc0020009c0000021a0000613d000002fd0020009c000004330000c13d000000240010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000601043b000002ef0060009c000004330000213d000000000100041a000002ef021001970000000005000411000000000052004b000002bd0000c13d000000000006004b0000002c0000613d000002ee01100197000000000161019f000000000010041b0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f0011001c70000800d020000390000000303000039000002f104000041000001d40000013d000003120020009c000002350000613d000003130020009c000004330000c13d0000000001000416000000000001004b000004330000c13d000000c001000039000000400010043f0000001502000039000000800020043f0000032c02000041000001660000013d000003050020009c0000025c0000613d000003060020009c000004330000c13d000000240010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000101043b000900000001001d000002ef0010009c000004330000213d000000000100041a000002ef021001970000000001000411000000000012004b000002c20000c13d0000000901000029000000000010043f0000000501000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000101041a000000ff001001900000038a0000c13d0000000901000029000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000101041a000000000001004b000001370000613d0bb005410000040f0000000902000029000000000020043f0000000302000039000000200020043f000800000001001d0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b0000000802000029000000000021041b0000000501000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000201041a000003320220019700000001022001bf000000000021041b0000000602000039000000000102041a000003210010009c000004350000413d0000032201000041000000000010043f0000004101000039000000040010043f000003230100004100000bb2000104300000030c0020009c000002820000613d0000030d0020009c000004330000c13d000000240010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000101043b0bb005410000040f000002ea0000013d0000000001000416000000000001004b000004330000c13d000000c001000039000000400010043f0000000302000039000000800020043f0000031d02000041000000a00020043f00000080020000390bb0044f0000040f000000c00110008a000002ed0010009c000002ed0100804100000060011002100000031e011001c700000bb10001042e000000440010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000101043b000900000001001d000002ef0010009c000004330000213d0000002401300370000000000101043b000800000001001d0000000001000411000000000010043f0000000401000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000101041a000000080310006c000002e60000813d000000400100043d00000064021000390000031903000041000000000032043500000044021000390000031a03000041000002740000013d000000440010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000201043b000002ef0020009c000004330000213d0000002401300370000000000301043b0000000001000411000002e80000013d0000000001000416000000000001004b000004330000c13d0000000701000039000000000101041a000000800010043f000003170100004100000bb10001042e000000240010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000101043b000002ef0010009c000004330000213d0bb004640000040f000002ea0000013d0000000001000416000000000001004b000004330000c13d000000000100041a000002ef021001970000000005000411000000000052004b000002bd0000c13d000002ee01100197000000000010041b0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f0011001c70000800d020000390000000303000039000002f10400004100000000060000190bb00ba60000040f0000000100200190000004330000613d000000000100001900000bb10001042e0000000001000416000000000001004b000004330000c13d0000001201000039000000800010043f000003170100004100000bb10001042e000000240010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000301043b000002ef0030009c000004330000213d000000000100041a000002ef021001970000000001000411000000000012004b000002c20000c13d000000000030043f0000000501000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c70000801002000039000900000003001d0bb00bab0000040f00000009060000290000000100200190000004330000613d000000000101043b000000000101041a000000ff001001900000039b0000c13d000000400100043d000000440210003900000329030000410000038d0000013d000000240010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000101043b000002ef0010009c000004330000213d000000000010043f0000000501000039000000200010043f000000400200003900000000010000190bb00b910000040f000000000101041a000000ff001001900000000001000039000000010100c039000000800010043f000003170100004100000bb10001042e000000440010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000101043b000002ef0010009c000004330000213d0000002402300370000000000202043b000900000002001d000002ef0020009c000004330000213d000000000010043f0000000401000039000000200010043f000000400200003900000000010000190bb00b910000040f0000000902000029000000000020043f000000200010043f000000000100001900000040020000390bb00b910000040f000001b20000013d000000240010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000101043b000900000001001d0000000001000411000000000010043f0000000501000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000101041a000000ff00100190000002c70000c13d00000000010004110bb004640000040f000000090010006b000002f10000a13d000000400100043d00000064021000390000033003000041000000000032043500000044021000390000033103000041000000000032043500000024021000390000002c03000039000002770000013d000000440010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000002401300370000000000201043b000000000002004b0000000001000039000000010100c039000400000002001d000000000012004b000004330000c13d0000000401300370000000000301043b0000000001000415000003240030009c000002d30000413d000000400100043d0000006402100039000003260300004100000000003204350000004402100039000003270300004100000000003204350000002402100039000000250300003900000000003204350000031b020000410000000000210435000000040210003900000020030000390000000000320435000002ed0010009c000002ed0100804100000040011002100000031c011001c700000bb200010430000000640010008c000004330000413d0000000001000416000000000001004b000004330000c13d0000000401300370000000000101043b000900000001001d000002ef0010009c000004330000213d0000002401300370000000000201043b000002ef0020009c000004330000213d0000004401300370000000000301043b0000000901000029000800000003001d0bb006630000040f0000000901000029000000000010043f0000000401000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b0000000002000411000000000020043f000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000101041a000000080310006c000003d60000813d000000400100043d00000064021000390000032a03000041000000000032043500000044021000390000032b03000041000000000032043500000024021000390000002803000039000002770000013d0000031401000041000000800010043f000000840050043f000003150100004100000bb2000104300000031402000041000000800020043f000000840010043f000003150100004100000bb2000104300000031b01000041000000800010043f0000002001000039000000840010043f0000002c01000039000000a40010043f0000032d01000041000000c40010043f0000032e01000041000000e40010043f0000032f0100004100000bb200010430000300000001001d000002f40500004100000000020004150000000b0220008a00000005022002100000000101000039000000000401041a0000000601000039000000000101041a000500000001001d000000000001004b000002fa0000c13d00000000015400d90000000502200270000000000201001f000000040000006b000003780000c13d000000000003004b0000037a0000013d000000000100041100000009020000290bb0060c0000040f0000000101000039000000400200043d0000000000120435000002ed0020009c000002ed02008041000000400120021000000318011001c700000bb10001042e0bb00b070000040f000000000002004b000003ab0000c13d0000032201000041000000000010043f0000001201000039000000040010043f000003230100004100000bb200010430000200000003001d000602f4000000450000000002000019000100000004001d000700000004001d0000000601000039000000000101041a000000000021004b000003d00000a13d000900000002001d000003250120009a000800000001001d000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d00000000020004150000000b0220008a0000000502200210000000000101043b000000000101041a000000070010006c000003d90000213d0000000601000039000000000101041a000000090010006c000003d00000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d00000000020004150000000b0220008a0000000502200210000000000101043b000000000101041a000000060010006c000003d90000213d0000000601000039000000000101041a000000090010006c000003d00000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000101041a0007000700100073000003ca0000413d0000000601000039000000000101041a000000090010006c000003d00000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000101041a0006000600100073000003ca0000413d00000009020000290000000102200039000000050020006c000002ff0000413d00000000020004150000000b0220008a00000005022002100000000104000029000002f40140012a000000070010006b0000000203000029000002f405000041000002df0000413d00000000020004150000000a0220008a00000005022002100000000605000029000000000005004b0000000704000029000002df0000c13d000002f40000013d000000140230011a000000000323004b0000000002000019000003800000613d00000000023100a900000000033200d9000000000013004b000003ca0000c13d000000000100041500000003011000690000000001000002000000400100043d0000000000210435000002ed0010009c000002ed01008041000000400110021000000318011001c700000bb10001042e000000400100043d00000044021000390000031f03000041000000000032043500000024021000390000001b0300003900000000003204350000031b020000410000000000210435000000040210003900000020030000390000000000320435000002ed0010009c000002ed01008041000000400110021000000320011001c700000bb2000104300000000601000039000000000101041a000000000001004b000001d70000613d0000000602000039000000000020043f0000000002000019000003250320009a000000000403041a000002ef05400197000000000065004b000003dd0000613d0000000102200039000000000012004b000003a20000413d000001d70000013d00000000012100d900000009031000b9000000090000006b000003b20000613d00000009023000fa000000000012004b000003ca0000c13d000800000003001d0000000001000411000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000201041a0000000803000029000000000232004b000003ca0000413d000000000021041b0000000101000039000000000201041a000000000232004b0000043c0000813d0000032201000041000000000010043f0000001101000039000000040010043f000003230100004100000bb2000104300000032201000041000000000010043f0000003201000039000000040010043f000003230100004100000bb20001043000000009010000290000000002000411000002e80000013d00000002030000290000000104000029000002f405000041000002df0000013d000002ee02400197000003280110009a000000000101041a000002ef01100197000000000121019f000000000013041b000000000060043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000101041a000800000001001d0bb00b070000040f000000000002004b000002f40000613d00000000012100d900070008001000bd000000080000006b000003fd0000613d000000080300002900000007023000f9000000000012004b000003ca0000c13d0000000901000029000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b0000000702000029000000000021041b0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000001041b0000000501000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000004330000613d000000000101043b000000000201041a0000033202200197000000000021041b0000000601000039000000000101041a000000000001004b000004450000c13d0000032201000041000000000010043f0000003101000039000000040010043f000003230100004100000bb200010430000000000100001900000bb2000104300000000103100039000000000032041b0bb005f10000040f00000009030000290bb005ff0000040f000000000100001900000bb10001042e000000000021041b0000000701000039000000000201041a000000090020002a000003ca0000413d0000000902200029000000000021041b000000000100001900000bb10001042e0000000604000039000000000040043f000003280210009a000000000302041a000002ee03300197000000000032041b000000010110008a000000000014041b000000000100001900000bb10001042e00000020030000390000000004310436000000003202043400000000002404350000004001100039000000000002004b0000045e0000613d000000000400001900000000054100190000000006430019000000000606043300000000006504350000002004400039000000000024004b000004570000413d000000000321001900000000000304350000001f0220003900000333022001970000000001210019000000000001042d0007000000000002000002ef01100197000000000010043f0000000501000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f00000001002001900000051f0000613d000000000101043b000000000101041a000000ff00100190000004840000613d0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f00000001002001900000051f0000613d000000000101043b000000000101041a000000000001042d0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f00000001002001900000051f0000613d0000000102000039000000000202041a000000000101043b000000000101041a000200000002001d000000000012004b0000052d0000413d0000000602000039000000000202041a000300000002001d000000000002004b000100000001001d0000050e0000613d000402f4000000450000000002000019000500020000002d0000000601000039000000000101041a000000000021004b000005210000a13d000700000002001d000003250120009a000600000001001d000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f00000001002001900000051f0000613d000002f404000041000000000101043b000000000101041a000000050010006c0000050f0000213d0000000601000039000000000101041a000000070010006c000005210000a13d0000000601000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f00000001002001900000051f0000613d000000000101043b000000000101041a000000040010006c000005150000213d0000000601000039000000000101041a000000070010006c000005210000a13d0000000601000029000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f00000001002001900000051f0000613d000000000101043b000000000101041a0005000500100073000005270000413d0000000601000039000000000101041a000000070010006c000005210000a13d0000000601000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f00000001002001900000051f0000613d000000000101043b000000000101041a0004000400100073000005270000413d00000007020000290000000102200039000000030020006c0000049f0000413d0000000202000029000002f40120012a0000000503000029000000000013004b0000000001020019000002f404000041000005100000413d0000000404000029000000000004004b0000000001030019000005100000c13d000005190000013d000002f4040000410000000201000029000000000014004b000005190000213d00000000014100d900000001011000f9000000000001042d0000000201000029000002f404000041000000000014004b000005120000a13d0000032201000041000000000010043f0000001201000039000000040010043f000003230100004100000bb200010430000000000100001900000bb2000104300000032201000041000000000010043f0000003201000039000000040010043f000003230100004100000bb2000104300000032201000041000000000010043f0000001101000039000000040010043f000003230100004100000bb200010430000000400100043d00000064021000390000033403000041000000000032043500000044021000390000033503000041000000000032043500000024021000390000002a0300003900000000003204350000031b020000410000000000210435000000040210003900000020030000390000000000320435000002ed0010009c000002ed0100804100000040011002100000031c011001c700000bb20001043000070000000000020000000102000039000000000202041a000200000001001d000000000012004b000005d70000413d00000000010200190000000602000039000000000202041a000300000002001d000000000002004b000005c30000613d000402f4000000450000000002000019000100000001001d000500000001001d0000000601000039000000000101041a000000000021004b000005c90000a13d000700000002001d000003250120009a000600000001001d000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000005cf0000613d000002f404000041000000000101043b000000000101041a000000050010006c000005c00000213d0000000601000039000000000101041a000000070010006c000005c90000a13d0000000601000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000005cf0000613d000000000101043b000000000101041a000000040010006c000005c20000213d0000000601000039000000000101041a000000070010006c000005c90000a13d0000000601000029000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000005cf0000613d000000000101043b000000000101041a0005000500100073000005d10000413d0000000601000039000000000101041a000000070010006c000005c90000a13d0000000601000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f0000000100200190000005cf0000613d000000000101043b000000000101041a0004000400100073000005d10000413d00000007020000290000000102200039000000030020006c000005510000413d0000000102000029000002f40120012a0000000503000029000000000013004b0000000001020019000002f404000041000005c40000413d0000000404000029000000000004004b0000000001030019000005c40000c13d000005eb0000013d0000000101000029000005c40000013d0000000101000029000002f404000041000000000014004b000005eb0000213d00000000014100d900000002011000f9000000000001042d0000032201000041000000000010043f0000003201000039000000040010043f000003230100004100000bb200010430000000000100001900000bb2000104300000032201000041000000000010043f0000001101000039000000040010043f000003230100004100000bb200010430000000400100043d00000064021000390000033403000041000000000032043500000044021000390000033503000041000000000032043500000024021000390000002a0300003900000000003204350000031b020000410000000000210435000000040210003900000020030000390000000000320435000002ed0010009c000002ed0100804100000040011002100000031c011001c700000bb2000104300000032201000041000000000010043f0000001201000039000000040010043f000003230100004100000bb2000104300000000602000039000000000302041a000000000013004b000005f90000a13d000000000020043f000003250110009a0000000002000019000000000001042d0000032201000041000000000010043f0000003201000039000000040010043f000003230100004100000bb2000104300000000302200210000002ef0420021f000000010500008a000000ff0020008c000000000554a13f000002ef0330019700000000022301cf0000000002002019000000000301041a000000000353016f000000000223019f000000000021041b000000000001042d0003000000000002000002ef01100198000006450000613d000200000003001d000302ef0020019c0000064f0000613d000100000001001d000000000010043f0000000401000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f00000001002001900000000303000029000006430000613d000000000101043b000000000030043f000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f00000003060000290000000100200190000006430000613d000000000101043b0000000202000029000000000021041b000000400100043d0000000000210435000002ed0010009c000002ed0100804100000040011002100000000002000414000002ed0020009c000002ed02008041000000c002200210000000000112019f00000336011001c70000800d020000390000000303000039000003370400004100000001050000290bb00ba60000040f0000000100200190000006430000613d000000000001042d000000000100001900000bb200010430000000400100043d00000064021000390000033a03000041000000000032043500000044021000390000033b03000041000000000032043500000024021000390000002403000039000006580000013d000000400100043d0000006402100039000003380300004100000000003204350000004402100039000003390300004100000000003204350000002402100039000000220300003900000000003204350000031b020000410000000000210435000000040210003900000020030000390000000000320435000002ed0010009c000002ed0100804100000040011002100000031c011001c700000bb2000104300011000000000002000400000003001d000702ef0010019c00000adf0000613d000302ef0020019c00000ae90000613d000000040000006b00000af30000613d0000000701000029000000000010043f0000000501000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000000ff001001900000068b0000613d0000000301000029000000000010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000000ff00100190000007f70000613d0000000701000029000000000010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000000ff001001900000075f0000613d0000000701000029000000000010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000000ff00100190000006b80000c13d0000000301000029000000000010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000000ff00100190000008800000613d0000000701000029000000000010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000000ff0010019000000ad00000613d0000000301000029000000000010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000000ff0010019000000ad00000613d0000000002000415000000110220008a00000005022002100000000101000039000000000101041a0000000603000039000000000303041a000200000003001d000000000003004b0000097b0000613d000502f4000000450000000002000019000100000001001d000600000001001d0000000601000039000000000101041a000000000021004b00000ad30000a13d000900000002001d000003250120009a000800000001001d000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000002f4050000410000000002000415000000110220008a0000000502200210000000000101043b000000000101041a000000060010006c000009780000213d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d0000000002000415000000110220008a0000000502200210000000000101043b000000000101041a000000050010006c0000097a0000213d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000600060010007300000ad90000413d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000500050010007300000ad90000413d00000009020000290000000102200039000000020020006c000006e40000413d0000000002000415000000110220008a00000005022002100000000103000029000002f40130012a0000000604000029000000000014004b0000000001030019000002f4050000410000097c0000413d0000000002000415000000100220008a00000005022002100000000505000029000000000005004b00000000010400190000097c0000c13d000009080000013d0000000301000029000000000010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000000ff001001900000069a0000613d00000000020004150000000d0220008a00000005022002100000000101000039000000000101041a0000000603000039000000000303041a000200000003001d000000000003004b00000a020000613d000502f4000000450000000002000019000100000001001d000600000001001d0000000601000039000000000101041a000000000021004b00000ad30000a13d000900000002001d000003250120009a000800000001001d000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000002f40500004100000000020004150000000d0220008a0000000502200210000000000101043b000000000101041a000000060010006c000009ff0000213d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d00000000020004150000000d0220008a0000000502200210000000000101043b000000000101041a000000050010006c00000a010000213d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000600060010007300000ad90000413d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000500050010007300000ad90000413d00000009020000290000000102200039000000020020006c0000077c0000413d00000000020004150000000d0220008a00000005022002100000000103000029000002f40130012a0000000604000029000000000014004b0000000001030019000002f40500004100000a030000413d00000000020004150000000c0220008a00000005022002100000000505000029000000000005004b000000000104001900000a030000c13d000009080000013d00000000020004150000000b0220008a00000005022002100000000101000039000000000101041a0000000603000039000000000303041a000200000003001d000000000003004b000009110000613d000502f4000000450000000002000019000100000001001d000600000001001d0000000601000039000000000101041a000000000021004b00000ad30000a13d000900000002001d000003250120009a000800000001001d000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000002f40500004100000000020004150000000b0220008a0000000502200210000000000101043b000000000101041a000000060010006c0000090e0000213d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d00000000020004150000000b0220008a0000000502200210000000000101043b000000000101041a000000050010006c000009100000213d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000600060010007300000ad90000413d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000500050010007300000ad90000413d00000009020000290000000102200039000000020020006c000008050000413d00000000020004150000000b0220008a00000005022002100000000103000029000002f40130012a0000000604000029000000000014004b0000000001030019000002f405000041000009120000413d00000000020004150000000a0220008a00000005022002100000000505000029000000000005004b0000000001040019000009120000c13d000009080000013d00000000020004150000000f0220008a00000005022002100000000101000039000000000101041a0000000603000039000000000303041a000200000003001d000000000003004b00000a6f0000613d000502f4000000450000000002000019000100000001001d000600000001001d0000000601000039000000000101041a000000000021004b00000ad30000a13d000900000002001d000003250120009a000800000001001d000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000002f40500004100000000020004150000000f0220008a0000000502200210000000000101043b000000000101041a000000060010006c00000a6c0000213d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d00000000020004150000000f0220008a0000000502200210000000000101043b000000000101041a000000050010006c00000a6e0000213d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000600060010007300000ad90000413d0000000601000039000000000101041a000000090010006c00000ad30000a13d0000000801000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000101041a000500050010007300000ad90000413d00000009020000290000000102200039000000020020006c0000088e0000413d00000000020004150000000f0220008a00000005022002100000000103000029000002f40130012a0000000604000029000000000014004b0000000001030019000002f40500004100000a700000413d00000000020004150000000e0220008a00000005022002100000000505000029000000000005004b000000000104001900000a700000c13d0000032201000041000000000010043f0000001201000039000000040010043f000003230100004100000bb2000104300000000101000029000009120000013d0000000101000029000002f40500004100000000015100d90000000502200270000000000201001f000000040300002900000032023000c900000000033200d9000000320030008c00000ad90000c13d00000004041000b9000900000004001d00000004034000fa000000000013004b00000ad90000c13d000003e80320011a00000000043100a9000003e80020008c000800000003001d000009270000413d00000000023400d9000000000012004b00000ad90000c13d000000090040006b00000ad90000413d000600000004001d0000000701000029000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000201041a000000040220006c00000ad90000413d000000000021041b0000000701000029000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000201041a000000090220006c00000ad90000413d000000000021041b0000000301000029000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d00000006040000290000000902400069000000000101043b000000000301041a000000000023001a00000ad90000413d0000000002230019000000000021041b0000000101000039000000000101041a000000000141004b00000ad90000413d0000000102000039000000000012041b0000000701000039000000000201041a000000080020002a00000ad90000413d000000080400002900000004034000690000000002420019000000000021041b000000400100043d0000000000310435000002ed0010009c000002ed010080410000004001100210000000000200041400000ac30000013d00000001010000290000097c0000013d0000000101000029000002f40500004100000000015100d90000000502200270000000000201001f000000040300002900000032023000c900000000033200d9000000320030008c00000ad90000c13d00000004041000b9000900000004001d00000004034000fa000000000013004b00000ad90000c13d000003e80320011a00000000043100a9000003e80020008c000800000003001d000600000004001d000009920000813d000000090040006b000009980000813d00000ad90000013d00000000023400d9000000000012004b00000ad90000c13d0000000902000029000000060020006c00000ad90000413d0000000701000029000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000201041a000000040220006c00000ad90000413d000000000021041b0000000701000029000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000201041a000000090220006c00000ad90000413d000000000021041b0000000301000029000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d00000008030000290000000403300069000000000101043b000000000201041a000000000032001a00000ad90000413d000500000003001d0000000002320019000000000021041b0000000301000029000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d0000000903000029000000060230006a000000000101043b000000000301041a000000000023001a000000050400002900000ad90000413d0000000002230019000000000021041b0000000101000039000000000101041a000000060110006c00000ad90000413d0000000102000039000000000012041b0000000701000039000000000201041a000000080020002a00000ad90000413d0000000802200029000000000021041b000000400100043d0000000000410435000002ed0010009c000002ed0100804100000040011002100000000002000414000002ed0020009c000002ed02008041000000c002200210000000000121019f00000ac70000013d000000010100002900000a030000013d0000000101000029000002f40500004100000000015100d90000000502200270000000000201001f000000040300002900000032023000c900000000033200d9000000320030008c00000ad90000c13d00000004041000b9000900000004001d00000004034000fa000000000013004b00000ad90000c13d000003e80320011a00000000043100a9000003e80020008c000800000003001d00000a180000413d00000000023400d9000000000012004b00000ad90000c13d000000090040006b00000ad90000413d000600000004001d0000000701000029000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000201041a000000090220006c00000ad90000413d000000000021041b0000000301000029000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d00000008030000290000000403300069000000000101043b000000000201041a000000000032001a00000ad90000413d000500000003001d0000000002320019000000000021041b0000000301000029000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d00000006040000290000000902400069000000000101043b000000000301041a000000000023001a000000050500002900000ad90000413d0000000002230019000000000021041b0000000101000039000000000101041a000000000141004b00000ad90000413d0000000102000039000000000012041b0000000701000039000000000201041a000000080020002a00000ad90000413d0000000802200029000000000021041b000000400100043d0000000000510435000002ed0010009c000002ed010080410000004001100210000000000200041400000ac30000013d000000010100002900000a700000013d0000000101000029000002f40500004100000000015100d90000000502200270000000000201001f000000040300002900000032023000c900000000033200d9000000320030008c00000ad90000c13d00000004051000b900000004035000fa000000000013004b00000ad90000c13d000003e80320011a00000000043100a9000003e80020008c000800000003001d00000a840000413d00000000023400d9000000000012004b00000ad90000c13d000000000045004b00000ad90000413d000900000005001d000600000004001d0000000701000029000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d000000000101043b000000000201041a000000090220006c00000ad90000413d000000000021041b0000000301000029000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000ad10000613d00000006040000290000000902400069000000000101043b000000000301041a000000000023001a00000ad90000413d0000000002230019000000000021041b0000000101000039000000000101041a000000000141004b00000ad90000413d0000000102000039000000000012041b0000000701000039000000000201041a000000080020002a00000ad90000413d000000080400002900000004034000690000000002420019000000000021041b000000400100043d0000000000310435000002ed0010009c000002ed0100804100000040011002100000000002000414000002ed0020009c000002ed02008041000000c002200210000000000112019f00000336011001c70000800d020000390000000303000039000002f604000041000000070500002900000003060000290bb00ba60000040f000000010020019000000ad10000613d000000000001042d000000000100001900000bb2000104300000032201000041000000000010043f0000003201000039000000040010043f000003230100004100000bb2000104300000032201000041000000000010043f0000001101000039000000040010043f000003230100004100000bb200010430000000400100043d0000006402100039000003400300004100000000003204350000004402100039000003410300004100000000003204350000002402100039000000250300003900000afc0000013d000000400100043d00000064021000390000033e03000041000000000032043500000044021000390000033f0300004100000000003204350000002402100039000000230300003900000afc0000013d000000400100043d00000064021000390000033c03000041000000000032043500000044021000390000033d0300004100000000003204350000002402100039000000290300003900000000003204350000031b020000410000000000210435000000040210003900000020030000390000000000320435000002ed0010009c000002ed0100804100000040011002100000031c011001c700000bb20001043000060000000000020000000101000039000000000101041a0000000602000039000000000202041a000200000002001d000000000002004b000100000001001d00000b790000613d000302f4000000450000000002000019000400000001001d0000000601000039000000000101041a000000000021004b00000b830000a13d000600000002001d000003250120009a000500000001001d000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000b890000613d000000000101043b000000000101041a000000040010006c00000b760000213d0000000601000039000000000101041a000000060010006c00000b830000a13d0000000501000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000b890000613d000000000101043b000000000101041a000000030010006c00000b760000213d0000000601000039000000000101041a000000060010006c00000b830000a13d0000000501000029000000000101041a000002ef01100197000000000010043f0000000201000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000b890000613d000000000101043b000000000101041a000400040010007300000b8b0000413d0000000601000039000000000101041a000000060010006c00000b830000a13d0000000501000029000000000101041a000002ef01100197000000000010043f0000000301000039000000200010043f0000000001000414000002ed0010009c000002ed01008041000000c001100210000002f3011001c700008010020000390bb00bab0000040f000000010020019000000b890000613d000000000101043b000000000101041a000300030010007300000b8b0000413d00000006020000290000000102200039000000020020006c00000b130000413d00000b7b0000013d000002f4020000410000000101000029000000000001042d000302f400000045000400000001001d0000000102000029000002f40120012a000000040010006b00000000010200190000000302000029000002f4020040410000000401008029000000000001042d0000032201000041000000000010043f0000003201000039000000040010043f000003230100004100000bb200010430000000000100001900000bb2000104300000032201000041000000000010043f0000001101000039000000040010043f000003230100004100000bb200010430000002ed0010009c000002ed010080410000004001100210000002ed0020009c000002ed020080410000006002200210000000000112019f0000000002000414000002ed0020009c000002ed02008041000000c002200210000000000112019f000002f0011001c700008010020000390bb00bab0000040f000000010020019000000ba40000613d000000000101043b000000000001042d000000000100001900000bb20001043000000ba9002104210000000102000039000000000001042d0000000002000019000000000001042d00000bae002104230000000102000039000000000001042d0000000002000019000000000001042d00000bb00000043200000bb10001042e00000bb200010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff02000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0fffffffffffffffffffffffffffffffffffffffffe2d6fffbc6a14844000000002000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000033b2e3c9fd0803ce80000000200000000000000000000000000000000000020000000800000000000000000ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef0000000200000000000000000000000000000040000001000000000000000000000000000000000000000000000000000000000000000000000000004549b0380000000000000000000000000000000000000000000000000000000095d89b4000000000000000000000000000000000000000000000000000000000cba0e99500000000000000000000000000000000000000000000000000000000cba0e99600000000000000000000000000000000000000000000000000000000dd62ed3e00000000000000000000000000000000000000000000000000000000f2fde38b0000000000000000000000000000000000000000000000000000000095d89b4100000000000000000000000000000000000000000000000000000000a457c2d700000000000000000000000000000000000000000000000000000000a9059cbb0000000000000000000000000000000000000000000000000000000070a082300000000000000000000000000000000000000000000000000000000070a0823100000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000008da5cb5b000000000000000000000000000000000000000000000000000000004549b0390000000000000000000000000000000000000000000000000000000052390c020000000000000000000000000000000000000000000000000000000023b872dc00000000000000000000000000000000000000000000000000000000313ce56600000000000000000000000000000000000000000000000000000000313ce567000000000000000000000000000000000000000000000000000000003685d41900000000000000000000000000000000000000000000000000000000395093510000000000000000000000000000000000000000000000000000000023b872dd000000000000000000000000000000000000000000000000000000002d83811900000000000000000000000000000000000000000000000000000000095ea7b200000000000000000000000000000000000000000000000000000000095ea7b30000000000000000000000000000000000000000000000000000000013114a9d0000000000000000000000000000000000000000000000000000000018160ddd00000000000000000000000000000000000000000000000000000000053ab1820000000000000000000000000000000000000000000000000000000006fdde03118cdaa70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000008000000000000000001e4fbdf70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000008000000000000000000000000000000000000000000000000000000020000000000000000000000000207a65726f00000000000000000000000000000000000000000000000000000045524332303a2064656372656173656420616c6c6f77616e63652062656c6f7708c379a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084000000000000000000000000414d4700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000004163636f756e7420697320616c7265616479206578636c756465640000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000000000000100000000000000004e487b710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000000033b2e3c9fd0803ce800000109addddcec1d7ba6ad726df49aeea3e93fb0c1037d551236841a60c0c883f2c17570706c79000000000000000000000000000000000000000000000000000000416d6f756e74206d757374206265206c657373207468616e20746f74616c207309addddcec1d7ba6ad726df49aeea3e93fb0c1037d551236841a60c0c883f2c24163636f756e7420697320616c726561647920696e636c7564656400000000006c6c6f77616e636500000000000000000000000000000000000000000000000045524332303a207472616e7366657220616d6f756e74206578636565647320614162737472616374204d6f6e657920476c6974636800000000000000000000004578636c75646564206164647265737365732063616e6e6f742063616c6c20746869732066756e6374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000840000008000000000000000006c20746f2062616c616e63650000000000000000000000000000000000000000416d6f756e74206d757374206265206c657373207468616e206f722065717561ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe065666c656374696f6e7300000000000000000000000000000000000000000000416d6f756e74206d757374206265206c657373207468616e20746f74616c207202000000000000000000000000000000000000200000000000000000000000008c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925737300000000000000000000000000000000000000000000000000000000000045524332303a20617070726f766520746f20746865207a65726f206164647265726573730000000000000000000000000000000000000000000000000000000045524332303a20617070726f76652066726f6d20746865207a65726f206164647468616e207a65726f00000000000000000000000000000000000000000000005472616e7366657220616d6f756e74206d757374206265206772656174657220657373000000000000000000000000000000000000000000000000000000000045524332303a207472616e7366657220746f20746865207a65726f2061646472647265737300000000000000000000000000000000000000000000000000000045524332303a207472616e736665722066726f6d20746865207a65726f206164506a2db6fabf7b3a0ad1cc4dcb9912295cf41c0d4cd9cf7a2de4867b45163fd0
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.