// Sources flattened with hardhat v2.12.6 https://hardhat.org
// File @openzeppelin/contracts/utils/Context.sol@v4.8.2
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @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;
}
}
/**
* @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.
*
* By default, the owner account will be the one that deploys the contract. 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;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @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 {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing 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 {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_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);
}
}
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
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 amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` 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 amount
) external returns (bool);
}
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @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://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @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, it is bubbled up by this
* function (like regular Solidity function calls).
*
* 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.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @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`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastValue;
// Update the index for the moved value
set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
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);
}
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string internal _name;
string internal _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor() {
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
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);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
contract Meme is ERC20 {
string public meta;
string public description;
string public image;
string public website;
string public telegram;
string public twitter;
constructor() {}
function _initializeMeme(
string memory name,
string memory symbol,
string memory _description,
string memory _image,
string memory _website,
string memory _telegram,
string memory _twitter,
string memory _meta
) internal {
_name = name;
_symbol = symbol;
description = _description;
image = _image;
website = _website;
telegram = _telegram;
twitter = _twitter;
meta = _meta;
}
}
// IERC20
interface IDyorPair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getRealReserves() external view returns (uint112 reserve0, uint112 reserve1);
function getVirtualReserves() external view returns (uint112 reserve0, uint112 reserve1);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to ) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IDyorFactory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IDyorRouter01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
interface IDyorRouter02 is IDyorRouter01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
struct PumpTokenStruct {
string name;
string symbol;
string description;
string image;
string website;
string telegram;
string twitter;
string meta;
uint256 totalSupply;
uint256 realEthReserves;
uint256 realTokenReserves;
uint256 liquidityEth;
uint256 liquidityToken;
uint256 initialVirtualTokenSlippage;
uint256 initialVirtualEthReserves;
uint256 initialVirtualTokenReserves;
}
interface IWETH {
function deposit() external payable;
function transfer(address to, uint value) external returns (bool);
function withdraw(uint) external;
}
interface IDeployPump {
function addInvolvePumpToken(address _sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out ) external;
function subInvolvePumpToken(address _sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out ) external;
function getRouterList(address router) external view returns(bool);
function successfulLaunch() external;
}
contract DyorPumpToken is
Meme,
ReentrancyGuard
{
using SafeERC20 for IERC20;
using SafeMath for uint256;
using EnumerableSet for EnumerableSet.AddressSet;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
IDyorRouter02 public uniswapRouter;
address public pumpRouter;
address public uniswapV2Pair;
address public deployPumpFactory;
uint256 public realLiquidityEth;
address public liquidityFeeTo;
address public projectOwner;
address public lpOwner;
uint256 public realEthReserves; // 0 SOL
uint256 public realTokenReserves; // 793100000 Token
uint256 public initialVirtualEthReserves; // 30 SOL
uint256 public initialVirtualTokenReserves; // 1073000000 Token
uint256 public initialVirtualTokenSlippage; // 1073000000 Token
uint256 public virtualEthReserves;
uint256 public liquidityEth;
uint256 public liquidityToken;
bool public complete;
uint256 public Version = 2;
address public WETH;
address public pairToken;
address public token0;
address public token1;
EnumerableSet.AddressSet private holders;
event Mint(address indexed sender, uint amount0, uint amount1);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
constructor(
) {
deployPumpFactory = msg.sender;
}
receive() external payable {
require(msg.sender == pairToken, 'WETH'); // only accept ETH via fallback from the WETH contract
}
function _safeTransfer(address token, address to, uint value) private {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'Dyor Launch: TRANSFER_FAILED');
}
function _safeTransferETH(address to, uint value) private {
(bool success,) = payable(to).call{value: value}("");
require(success, 'Dyor Launch: ETH_TRANSFER_FAILED');
}
function initialize(
address _projectOwner,
address _lpOwner,
address _uniswapRouter,
address _pumpRouter,
address _liquidityFeeTo,
address _pairToken,
uint256 _realLiquidityEth,
PumpTokenStruct memory params
) external {
require(msg.sender == deployPumpFactory, 'Dyor Launch: FORBIDDEN'); // sufficient check
projectOwner = _projectOwner;
lpOwner = _lpOwner;
uniswapRouter = IDyorRouter02(_uniswapRouter);
pumpRouter = _pumpRouter;
pairToken = _pairToken;
WETH = uniswapRouter.WETH();
liquidityFeeTo = _liquidityFeeTo;
realLiquidityEth = _realLiquidityEth;
(token0, token1) = pairToken < address(this) ? (pairToken , address(this)) : (address(this) , pairToken);
_initializeMeme(params.name, params.symbol, params.description, params.image, params.website, params.telegram, params.twitter, params.meta);
// // initialVirtualEthReserves
initialVirtualEthReserves = params.initialVirtualEthReserves;
initialVirtualTokenReserves = params.initialVirtualTokenReserves;
initialVirtualTokenSlippage = params.initialVirtualTokenSlippage;
virtualEthReserves = params.initialVirtualEthReserves;
liquidityEth = params.liquidityEth;
liquidityToken = params.liquidityToken;
realEthReserves = params.realEthReserves;
realTokenReserves = params.realTokenReserves;
_mint(address(this), params.totalSupply);
(uint256 _reserve0, uint256 _reserve1,) = getReserves(); // gas savings
emit Mint(msg.sender, _reserve0, _reserve1);
// set uniswap router
}
function getReserves() public view returns (uint256 _reserve0, uint256 _reserve1, uint32 _blockTimestampLast) {
(uint256 virtualReserve0, uint256 virtualReserve1) = pairToken < address(this) ?
(initialVirtualEthReserves, initialVirtualTokenReserves) :
(initialVirtualTokenReserves, initialVirtualEthReserves) ;
_reserve0 = virtualReserve0;
_reserve1 = virtualReserve1;
_blockTimestampLast = 0;
}
function getRealReserves() public view returns (uint256 _reserve0, uint256 _reserve1) {
(uint256 realReserve0, uint256 realReserve1) = pairToken < address(this) ?
(realEthReserves, realTokenReserves) :
(realTokenReserves, realEthReserves) ;
_reserve0 = realReserve0;
_reserve1 = realReserve1;
}
function getVirtualReserves() public view returns (uint256 _reserve0, uint256 _reserve1) {
(uint256 virtualReserve0, uint256 virtualReserve1) = pairToken < address(this) ?
(realEthReserves, realTokenReserves + liquidityToken) :
(realTokenReserves + liquidityToken, realEthReserves) ;
_reserve0 = virtualReserve0;
_reserve1 = virtualReserve1;
}
function swap(
uint amount0Out,
uint amount1Out,
address to
) external nonReentrant {
require(!complete, "Dyor Launch: Complete");
require(
pumpRouter == msg.sender ||
IDeployPump(deployPumpFactory).getRouterList(msg.sender),
'Dyor: Operator');
require(amount0Out > 0 || amount1Out > 0, 'Dyor Launch: INSUFFICIENT_OUTPUT_AMOUNT');
(uint256 _realReserve0, uint256 _realReserve1) = getRealReserves();
require(amount0Out <= _realReserve0 && amount1Out <= _realReserve1, 'Dyor Launch: INSUFFICIENT_LIQUIDITY');
(uint256 _reserve0, uint256 _reserve1,) = getReserves(); // gas savings
uint balance0;
uint balance1;
{ // scope for _token{0,1}, avoids stack too deep errors
address _token0 = token0;
address _token1 = token1;
// require(to != _token0 && to != _token1, 'Dyor: INVALID_TO');
if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out); // optimistically transfer tokens
if (amount1Out > 0) _safeTransfer(_token1, to, amount1Out); // optimistically transfer tokens
realTokenReserves = balanceOf(address(this)) - liquidityToken;
initialVirtualTokenReserves = initialVirtualTokenSlippage + liquidityToken + realTokenReserves;
realEthReserves = IERC20(pairToken).balanceOf(address(this));
initialVirtualEthReserves = virtualEthReserves + realEthReserves;
(balance0, balance1) = pairToken < address(this) ? (initialVirtualEthReserves, initialVirtualTokenReserves) : ( initialVirtualTokenReserves, initialVirtualEthReserves );
// balance0 = IERC20(_token0).balanceOf(address(this));
// balance1 = IERC20(_token1).balanceOf(address(this));
}
uint amount0In = balance0 > _reserve0 - amount0Out ? balance0 - (_reserve0 - amount0Out) : 0;
uint amount1In = balance1 > _reserve1 - amount1Out ? balance1 - (_reserve1 - amount1Out) : 0;
require(amount0In > 0 || amount1In > 0, 'Dyor Launch: INSUFFICIENT_INPUT_AMOUNT');
{ // scope for reserve{0,1}Adjusted, avoids stack too deep errors
// uint balance0Adjusted = (balance0.mul(10000).sub(amount0In.mul(30)));
// uint balance1Adjusted = (balance1.mul(10000).sub(amount1In.mul(30)));
require(balance0.mul(balance1) >= uint(_reserve0).mul(_reserve1), 'Dyor Launch: K');
}
emit Sync(uint112(balance0), uint112(balance1));
emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);
if(balanceOf(tx.origin) > 0){
if(!holders.contains(tx.origin)){ holders.add(tx.origin); }
IDeployPump(deployPumpFactory).addInvolvePumpToken(
tx.origin, amount0In, amount1In, amount0Out, amount1Out
);
}
if(balanceOf(tx.origin) == 0){
if(holders.contains(tx.origin)){ holders.remove(tx.origin); }
IDeployPump(deployPumpFactory).subInvolvePumpToken(
tx.origin, amount0In, amount1In, amount0Out, amount1Out
);
}
if(realEthReserves >= liquidityEth){
_addInitialLiquidity(lpOwner);
}
}
struct Balance{
address account;
uint256 amount;
}
function holdersForAll(bool desc, uint256 start, uint256 end)
external
view
returns (Balance[] memory, uint256)
{
uint256 _userInvolvedLaunchLength = holders.length();
if (end >= _userInvolvedLaunchLength) {
end = _userInvolvedLaunchLength - 1;
}
uint256 length = end - start + 1;
Balance[] memory launchInfos = new Balance[](length + 1);
uint256 currentIndex = 0;
for (uint256 i = start; i <= end; i++) {
address account = holders.at(desc ? (_userInvolvedLaunchLength - 1 - i) : i);
launchInfos[currentIndex] = Balance({
account: account,
amount: balanceOf(account)
});
currentIndex++;
}
launchInfos[length] = Balance({
amount: complete ? 0 : balanceOf(address(this)) - liquidityToken,
account: address(this)
});
return (launchInfos, _userInvolvedLaunchLength);
}
event LiquidityPoolCreated(address addedPool);
/**
* @dev function {_createPair}
*
* Create the uniswap pair
*
* @return The pair address
*/
function _createPair() internal returns (address) {
address factory = uniswapRouter.factory();
address pair = IDyorFactory(factory).getPair(address(this), pairToken);
if (pair == address(0)) {
pair = IDyorFactory(factory).createPair(address(this), pairToken);
}
uniswapV2Pair = pair;
emit LiquidityPoolCreated(uniswapV2Pair);
return uniswapV2Pair;
}
event InitialLiquidityAdded(
uint256 tokenA,
uint256 tokenB,
uint256 lpToken
);
/**
* @dev function {_addInitialLiquidity}
*
* Add initial liquidity to the uniswap pair (internal function that does processing)
*
* * @param _lpOwner The recipient of LP tokens
*/
function _addInitialLiquidity(address _lpOwner) internal {
_createPair();
// Funded date is the date of first funding. We can only add initial liquidity once. If this date is set,
// we cannot proceed
require(!complete, "InitialLiquidityAlreadyAdded");
complete = true; // uint32(block.timestamp);
// _mint(address(this), );
// Can only do this if this contract holds tokens:
require(balanceOf(address(this)) != 0, "NoTokenForLiquidityPair");
uint256 _liquidityEth = liquidityEth;
uint256 _liquidityToken = liquidityToken;
if(liquidityFeeTo != address(0) && realLiquidityEth != 0 && _liquidityEth > realLiquidityEth){
uint256 feeAmount = _liquidityEth - realLiquidityEth;
if(pairToken != WETH){
_safeTransfer(pairToken, liquidityFeeTo, feeAmount);
}else{
IWETH(pairToken).withdraw(feeAmount);
_safeTransferETH(liquidityFeeTo, feeAmount);
}
_liquidityEth = realLiquidityEth;
}
// Approve the uniswap router for an inifinite amount (max uint256)
// This means that we don't need to worry about later incrememtal
// approvals on tax swaps, as the uniswap router allowance will never
// be decreased (see code in decreaseAllowance for reference)
_approve(address(this), address(uniswapRouter), type(uint256).max);
IERC20(pairToken).approve(address(uniswapRouter), type(uint256).max);
// Verify attack
uint256 attackBalance = IERC20(pairToken).balanceOf(uniswapV2Pair);
if(attackBalance != 0){
uint256 attackTokenBalance = attackBalance * _liquidityToken / _liquidityEth;
_safeTransfer(address(this), uniswapV2Pair, attackTokenBalance);
IDyorPair(uniswapV2Pair).sync();
_liquidityToken -= attackTokenBalance;
_liquidityEth -= attackBalance;
}
// Add the liquidity:
(uint256 amountA, uint256 amountB, uint256 lpTokens) = uniswapRouter
.addLiquidity(
address(this),
pairToken,
_liquidityToken,
_liquidityEth,
0,
0,
address(this),
block.timestamp
);
emit InitialLiquidityAdded(amountA, amountB, lpTokens);
// We now set this to false so that future transactions can be eligibile for autoswaps
// _autoSwapInProgress = false;
IERC20(uniswapV2Pair).transfer(_lpOwner, lpTokens);
IDeployPump(deployPumpFactory).successfulLaunch();
}
/**
* @dev function {isLiquidityPool}
*
* Return if an address is a liquidity pool
*
* @param queryAddress_ The address being queried
* @return bool The address is / isn't a liquidity pool
*/
function isLiquidityPool(address queryAddress_) public view returns (bool) {
/** @dev We check the uniswapV2Pair address first as this is an immutable variable and therefore does not need
* to be fetched from storage, saving gas if this address IS the uniswapV2Pool. We also add this address
* to the enumerated set for ease of reference (for example it is returned in the getter), and it does
* not add gas to any other calls, that still complete in 0(1) time.
*/
return (queryAddress_ == address(this));
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(
complete ||
(isLiquidityPool(from) || isLiquidityPool(to))
, 'isLiquidityPool'
);
super._transfer(from, to, amount);
}
}[
{
"type": "constructor",
"inputs": [],
"stateMutability": "nonpayable"
},
{
"name": "Approval",
"type": "event",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "spender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "InitialLiquidityAdded",
"type": "event",
"inputs": [
{
"name": "tokenA",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "tokenB",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "lpToken",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "LiquidityPoolCreated",
"type": "event",
"inputs": [
{
"name": "addedPool",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "Mint",
"type": "event",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount0",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Swap",
"type": "event",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount0In",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount1In",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount0Out",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount1Out",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "Sync",
"type": "event",
"inputs": [
{
"name": "reserve0",
"type": "uint112",
"indexed": false,
"internalType": "uint112"
},
{
"name": "reserve1",
"type": "uint112",
"indexed": false,
"internalType": "uint112"
}
],
"anonymous": false
},
{
"name": "Transfer",
"type": "event",
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Version",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "WETH",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "allowance",
"type": "function",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "spender",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "approve",
"type": "function",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "balanceOf",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "complete",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "decimals",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "uint8"
}
],
"stateMutability": "view"
},
{
"name": "decreaseAllowance",
"type": "function",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "subtractedValue",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "deployPumpFactory",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "description",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "getRealReserves",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "_reserve0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_reserve1",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getReserves",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "_reserve0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_reserve1",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_blockTimestampLast",
"type": "uint32",
"internalType": "uint32"
}
],
"stateMutability": "view"
},
{
"name": "getVirtualReserves",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "_reserve0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_reserve1",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "holdersForAll",
"type": "function",
"inputs": [
{
"name": "desc",
"type": "bool",
"internalType": "bool"
},
{
"name": "start",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "end",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "tuple[]",
"components": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct DyorPumpToken.Balance[]"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "image",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "increaseAllowance",
"type": "function",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "addedValue",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "initialVirtualEthReserves",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "initialVirtualTokenReserves",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "initialVirtualTokenSlippage",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "initialize",
"type": "function",
"inputs": [
{
"name": "_projectOwner",
"type": "address",
"internalType": "address"
},
{
"name": "_lpOwner",
"type": "address",
"internalType": "address"
},
{
"name": "_uniswapRouter",
"type": "address",
"internalType": "address"
},
{
"name": "_pumpRouter",
"type": "address",
"internalType": "address"
},
{
"name": "_liquidityFeeTo",
"type": "address",
"internalType": "address"
},
{
"name": "_pairToken",
"type": "address",
"internalType": "address"
},
{
"name": "_realLiquidityEth",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "params",
"type": "tuple",
"components": [
{
"name": "name",
"type": "string",
"internalType": "string"
},
{
"name": "symbol",
"type": "string",
"internalType": "string"
},
{
"name": "description",
"type": "string",
"internalType": "string"
},
{
"name": "image",
"type": "string",
"internalType": "string"
},
{
"name": "website",
"type": "string",
"internalType": "string"
},
{
"name": "telegram",
"type": "string",
"internalType": "string"
},
{
"name": "twitter",
"type": "string",
"internalType": "string"
},
{
"name": "meta",
"type": "string",
"internalType": "string"
},
{
"name": "totalSupply",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "realEthReserves",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "realTokenReserves",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "liquidityEth",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "liquidityToken",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "initialVirtualTokenSlippage",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "initialVirtualEthReserves",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "initialVirtualTokenReserves",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct PumpTokenStruct"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "isLiquidityPool",
"type": "function",
"inputs": [
{
"name": "queryAddress_",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "liquidityEth",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "liquidityFeeTo",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "liquidityToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "lpOwner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "meta",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "name",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "pairToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "projectOwner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "pumpRouter",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "realEthReserves",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "realLiquidityEth",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "realTokenReserves",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "swap",
"type": "function",
"inputs": [
{
"name": "amount0Out",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount1Out",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "to",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "symbol",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "telegram",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "token0",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "token1",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "totalSupply",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "transfer",
"type": "function",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "transferFrom",
"type": "function",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"name": "twitter",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "uniswapRouter",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IDyorRouter02"
}
],
"stateMutability": "view"
},
{
"name": "uniswapV2Pair",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "virtualEthReserves",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "website",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "receive",
"stateMutability": "payable"
}
]0x6080604052600436106102815760003560e01c80637f8f61841161014f578063ad5c4648116100c1578063d21220a71161007a578063d21220a714610789578063d5501b0b146107a9578063dd62ed3e146107be578063e85455d7146107de578063f3ccaac014610807578063f444324b1461081c57600080fd5b8063ad5c4648146106f3578063b2a39d0914610713578063bb62860d14610729578063beb0a4161461073f578063c885044e14610754578063cb1023921461076957600080fd5b80639a53673a116101135780639a53673a1461063a578063a09ede0714610668578063a4475ce41461067e578063a457c2d71461069e578063a9059cbb146106be578063abfaeee0146106de57600080fd5b80637f8f6184146105b95780638b929ac2146105e357806391eb09ce146105f9578063948ce1d31461060f57806395d89b411461062557600080fd5b806347ecb665116101f35780636d9a640a116101ac5780636d9a640a146105045780636e8d21371461052457806370a08231146105445780637284e41614610564578063735de9f71461057957806375f84df21461059957600080fd5b806347ecb6651461046957806349bd5a5e1461047e5780634a3444551461049e578063522e1177146104b45780635472a4da146104ce5780635c25c6dd146104ee57600080fd5b806323b872dd1161024557806323b872dd146103c15780632e9acdbd146103e1578063313ce567146103f757806339509351146104135780633de35b791461043357806343cd8f7e1461045357600080fd5b806306fdde03146102d95780630902f1ac14610304578063095ea7b31461033a5780630dfe16811461036a57806318160ddd146103a257600080fd5b366102d457601f546001600160a01b031633146102d25760405162461bcd60e51b81526004016102c9906020808252600490820152630ae8aa8960e31b604082015260600190565b60405180910390fd5b005b600080fd5b3480156102e557600080fd5b506102ee61083c565b6040516102fb9190612784565b60405180910390f35b34801561031057600080fd5b506103196108ce565b60408051938452602084019290925263ffffffff16908201526060016102fb565b34801561034657600080fd5b5061035a6103553660046127cf565b61090e565b60405190151581526020016102fb565b34801561037657600080fd5b5060205461038a906001600160a01b031681565b6040516001600160a01b0390911681526020016102fb565b3480156103ae57600080fd5b506002545b6040519081526020016102fb565b3480156103cd57600080fd5b5061035a6103dc3660046127fb565b610928565b3480156103ed57600080fd5b506103b360185481565b34801561040357600080fd5b50604051601281526020016102fb565b34801561041f57600080fd5b5061035a61042e3660046127cf565b61094c565b34801561043f57600080fd5b50601f5461038a906001600160a01b031681565b34801561045f57600080fd5b506103b3601b5481565b34801561047557600080fd5b506102ee61096e565b34801561048a57600080fd5b50600e5461038a906001600160a01b031681565b3480156104aa57600080fd5b506103b360175481565b3480156104c057600080fd5b50601c5461035a9060ff1681565b3480156104da57600080fd5b50600f5461038a906001600160a01b031681565b3480156104fa57600080fd5b506103b360155481565b34801561051057600080fd5b506102d261051f36600461283c565b6109fc565b34801561053057600080fd5b506102d261053f366004612942565b61105e565b34801561055057600080fd5b506103b361055f366004612b80565b6112d7565b34801561057057600080fd5b506102ee6112f2565b34801561058557600080fd5b50600c5461038a906001600160a01b031681565b3480156105a557600080fd5b50600d5461038a906001600160a01b031681565b3480156105c557600080fd5b506105ce6112ff565b604080519283526020830191909152016102fb565b3480156105ef57600080fd5b506103b360105481565b34801561060557600080fd5b506103b360165481565b34801561061b57600080fd5b506103b360145481565b34801561063157600080fd5b506102ee611352565b34801561064657600080fd5b5061065a610655366004612bab565b611361565b6040516102fb929190612be0565b34801561067457600080fd5b506103b3601a5481565b34801561068a57600080fd5b5060125461038a906001600160a01b031681565b3480156106aa57600080fd5b5061035a6106b93660046127cf565b611516565b3480156106ca57600080fd5b5061035a6106d93660046127cf565b611591565b3480156106ea57600080fd5b506102ee61159f565b3480156106ff57600080fd5b50601e5461038a906001600160a01b031681565b34801561071f57600080fd5b506103b360195481565b34801561073557600080fd5b506103b3601d5481565b34801561074b57600080fd5b506102ee6115ac565b34801561076057600080fd5b506102ee6115b9565b34801561077557600080fd5b5060115461038a906001600160a01b031681565b34801561079557600080fd5b5060215461038a906001600160a01b031681565b3480156107b557600080fd5b506105ce6115c6565b3480156107ca57600080fd5b506103b36107d9366004612c3c565b6115ff565b3480156107ea57600080fd5b5061035a6107f9366004612b80565b6001600160a01b0316301490565b34801561081357600080fd5b506102ee61162a565b34801561082857600080fd5b5060135461038a906001600160a01b031681565b60606003805461084b90612c75565b80601f016020809104026020016040519081016040528092919081815260200182805461087790612c75565b80156108c45780601f10610899576101008083540402835291602001916108c4565b820191906000526020600020905b8154815290600101906020018083116108a757829003601f168201915b5050505050905090565b601f546000908190819081908190306001600160a01b03909116106108f8576017546016546108ff565b6016546017545b90969095506000945092505050565b60003361091c818585611637565b60019150505b92915050565b60003361093685828561175b565b6109418585856117d5565b506001949350505050565b60003361091c81858561095f83836115ff565b6109699190612cc6565b611637565b6009805461097b90612c75565b80601f01602080910402602001604051908101604052809291908181526020018280546109a790612c75565b80156109f45780601f106109c9576101008083540402835291602001916109f4565b820191906000526020600020905b8154815290600101906020018083116109d757829003601f168201915b505050505081565b610a04611849565b601c5460ff1615610a4f5760405162461bcd60e51b815260206004820152601560248201527444796f72204c61756e63683a20436f6d706c65746560581b60448201526064016102c9565b600d546001600160a01b0316331480610acf5750600f54604051633057b73b60e11b81523360048201526001600160a01b03909116906360af6e7690602401602060405180830381865afa158015610aab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acf9190612cde565b610b0c5760405162461bcd60e51b815260206004820152600e60248201526d223cb7b91d1027b832b930ba37b960911b60448201526064016102c9565b6000831180610b1b5750600082115b610b775760405162461bcd60e51b815260206004820152602760248201527f44796f72204c61756e63683a20494e53554646494349454e545f4f555450555460448201526617d05353d5539560ca1b60648201526084016102c9565b600080610b826115c6565b91509150818511158015610b965750808411155b610bee5760405162461bcd60e51b815260206004820152602360248201527f44796f72204c61756e63683a20494e53554646494349454e545f4c495155494460448201526249545960e81b60648201526084016102c9565b600080610bf96108ce565b5060205460215492945090925060009182916001600160a01b0390811691168a15610c2957610c29828a8d6118a3565b8915610c3a57610c3a818a8c6118a3565b601b54610c46306112d7565b610c509190612cfb565b6015819055601b54601854610c659190612cc6565b610c6f9190612cc6565b601755601f546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610cba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cde9190612d12565b6014819055601954610cf09190612cc6565b601655601f54306001600160a01b0390911610610d1257601754601654610d19565b6016546017545b909450925060009150610d2e90508a86612cfb565b8311610d3b576000610d4f565b610d458a86612cfb565b610d4f9084612cfb565b90506000610d5d8a86612cfb565b8311610d6a576000610d7e565b610d748a86612cfb565b610d7e9084612cfb565b90506000821180610d8f5750600081115b610dea5760405162461bcd60e51b815260206004820152602660248201527f44796f72204c61756e63683a20494e53554646494349454e545f494e5055545f604482015265105353d5539560d21b60648201526084016102c9565b610df486866119ee565b610dfe85856119ee565b1015610e3d5760405162461bcd60e51b815260206004820152600e60248201526d44796f72204c61756e63683a204b60901b60448201526064016102c9565b604080516dffffffffffffffffffffffffffff8087168252851660208201527f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1910160405180910390a160408051838152602081018390529081018c9052606081018b90526001600160a01b038a169033907fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229060800160405180910390a36000610ee7326112d7565b1115610f8357610ef8602232611a01565b610f0957610f07602232611a23565b505b600f5460405163544fa9db60e01b81523260048201526024810184905260448101839052606481018d9052608481018c90526001600160a01b039091169063544fa9db9060a401600060405180830381600087803b158015610f6a57600080fd5b505af1158015610f7e573d6000803e3d6000fd5b505050505b610f8c326112d7565b61102757610f9b602232611a01565b15610fad57610fab602232611a38565b505b600f54604051637b64bbbf60e11b81523260048201526024810184905260448101839052606481018d9052608481018c90526001600160a01b039091169063f6c9777e9060a401600060405180830381600087803b15801561100e57600080fd5b505af1158015611022573d6000803e3d6000fd5b505050505b601a546014541061104757601354611047906001600160a01b0316611a4d565b50505050505050506110596001600b55565b505050565b600f546001600160a01b031633146110b15760405162461bcd60e51b8152602060048201526016602482015275223cb7b9102630bab731b41d102327a92124a22222a760511b60448201526064016102c9565b601280546001600160a01b03808b166001600160a01b031992831617909255601380548a8416908316179055600c80548984169083168117909155600d8054898516908416179055601f805493871693909216929092179055604080516315ab88c960e31b8152905163ad5c4648916004808201926020929091908290030181865afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111699190612d2b565b601e80546001600160a01b03199081166001600160a01b0393841617909155601180549091168683161790556010839055601f54309116106111b857601f5430906001600160a01b03166111c6565b601f546001600160a01b0316305b602180546001600160a01b039283166001600160a01b0319918216179091556020805493909216921691909117815581519082015160408301516060840151608085015160a086015160c087015160e08801516112299796959493929190611fac565b6101c081015160168190556101e08201516017556101a0820151601855601955610160810151601a55610180810151601b5561012081015160145561014081015160155561010081015161127e903090612056565b6000806112896108ce565b50604080518381526020810183905292945090925033917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a250505050505050505050565b6001600160a01b031660009081526020819052604090205490565b6006805461097b90612c75565b601f54600090819081908190306001600160a01b039091161061133457601b5460155461132c9190612cc6565b601454611347565b601454601b546015546113479190612cc6565b909590945092505050565b60606004805461084b90612c75565b60606000806113706022612115565b905080841061138757611384600182612cfb565b93505b60006113938686612cfb565b61139e906001612cc6565b905060006113ad826001612cc6565b67ffffffffffffffff8111156113c5576113c5612875565b60405190808252806020026020018201604052801561140a57816020015b60408051808201909152600080825260208201528152602001906001900390816113e35790505b5090506000875b8781116114ad5760006114468b611428578261143e565b82611434600189612cfb565b61143e9190612cfb565b60229061211f565b90506040518060400160405280826001600160a01b0316815260200161146b836112d7565b81525084848151811061148057611480612d48565b6020026020010181905250828061149690612d5e565b9350505080806114a590612d5e565b915050611411565b5060408051808201909152308152601c54602082019060ff166114e557601b546114d6306112d7565b6114e09190612cfb565b6114e8565b60005b8152508284815181106114fd576114fd612d48565b6020908102919091010152509791965090945050505050565b6000338161152482866115ff565b9050838110156115845760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016102c9565b6109418286868403611637565b60003361091c8185856117d5565b600a805461097b90612c75565b6008805461097b90612c75565b6005805461097b90612c75565b601f54600090819081908190306001600160a01b03909116106115ee57601554601454611347565b601454601554909590945092505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6007805461097b90612c75565b6001600160a01b0383166116995760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016102c9565b6001600160a01b0382166116fa5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016102c9565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061176784846115ff565b905060001981146117cf57818110156117c25760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016102c9565b6117cf8484848403611637565b50505050565b601c5460ff16806118005750306001600160a01b03841614806118005750306001600160a01b038316145b61183e5760405162461bcd60e51b815260206004820152600f60248201526e1a5cd31a5c5d5a591a5d1e541bdbdb608a1b60448201526064016102c9565b61105983838361212b565b6002600b54141561189c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102c9565b6002600b55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1790529151600092839287169161192f9190612d79565b6000604051808303816000865af19150503d806000811461196c576040519150601f19603f3d011682016040523d82523d6000602084013e611971565b606091505b509150915081801561199b57508051158061199b57508080602001905181019061199b9190612cde565b6119e75760405162461bcd60e51b815260206004820152601c60248201527f44796f72204c61756e63683a205452414e534645525f4641494c45440000000060448201526064016102c9565b5050505050565b60006119fa8284612d95565b9392505050565b6001600160a01b038116600090815260018301602052604081205415156119fa565b60006119fa836001600160a01b0384166122cf565b60006119fa836001600160a01b03841661231e565b611a55612411565b50601c5460ff1615611aa95760405162461bcd60e51b815260206004820152601c60248201527f496e697469616c4c6971756964697479416c726561647941646465640000000060448201526064016102c9565b601c805460ff19166001179055611abf306112d7565b611b0b5760405162461bcd60e51b815260206004820152601760248201527f4e6f546f6b656e466f724c69717569646974795061697200000000000000000060448201526064016102c9565b601a54601b546011546001600160a01b031615801590611b2c575060105415155b8015611b39575060105482115b15611c0757600060105483611b4e9190612cfb565b601e54601f549192506001600160a01b03918216911614611b8b57601f54601154611b86916001600160a01b039081169116836118a3565b611c00565b601f54604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015611bd157600080fd5b505af1158015611be5573d6000803e3d6000fd5b5050601154611c0092506001600160a01b03169050826125f2565b6010549250505b600c54611c219030906001600160a01b0316600019611637565b601f54600c5460405163095ea7b360e01b81526001600160a01b039182166004820152600019602482015291169063095ea7b3906044016020604051808303816000875af1158015611c77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c9b9190612cde565b50601f54600e546040516370a0823160e01b81526001600160a01b03918216600482015260009291909116906370a0823190602401602060405180830381865afa158015611ced573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d119190612d12565b90508015611dcf57600083611d268484612d95565b611d309190612db4565b600e54909150611d4b9030906001600160a01b0316836118a3565b600e60009054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611d9b57600080fd5b505af1158015611daf573d6000803e3d6000fd5b505050508083611dbf9190612cfb565b9250611dcb8285612cfb565b9350505b600c54601f5460405162e8e33760e81b815230600482018190526001600160a01b039283166024830152604482018690526064820187905260006084830181905260a4830181905260c48301919091524260e4830152928392839291169063e8e3370090610104016060604051808303816000875af1158015611e56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7a9190612dd6565b604080518481526020810184905290810182905292955090935091507fbf59dda00152e02f20e18cab7307c8afe0714e7f69cf24a1377cbbddcb40f9bb9060600160405180910390a1600e5460405163a9059cbb60e01b81526001600160a01b038981166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015611f16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3a9190612cde565b50600f60009054906101000a90046001600160a01b03166001600160a01b0316633fe0d4c06040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611f8b57600080fd5b505af1158015611f9f573d6000803e3d6000fd5b5050505050505050505050565b8751611fbf9060039060208b01906126bf565b508651611fd39060049060208a01906126bf565b508551611fe79060069060208901906126bf565b508451611ffb9060079060208801906126bf565b50835161200f9060089060208701906126bf565b5082516120239060099060208601906126bf565b50815161203790600a9060208501906126bf565b50805161204b9060059060208401906126bf565b505050505050505050565b6001600160a01b0382166120ac5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016102c9565b80600260008282546120be9190612cc6565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000610922825490565b60006119fa8383612695565b6001600160a01b03831661218f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016102c9565b6001600160a01b0382166121f15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016102c9565b6001600160a01b038316600090815260208190526040902054818110156122695760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016102c9565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36117cf565b600081815260018301602052604081205461231657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610922565b506000610922565b60008181526001830160205260408120548015612407576000612342600183612cfb565b855490915060009061235690600190612cfb565b90508181146123bb57600086600001828154811061237657612376612d48565b906000526020600020015490508087600001848154811061239957612399612d48565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806123cc576123cc612e04565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610922565b6000915050610922565b600080600c60009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015612467573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061248b9190612d2b565b601f5460405163e6a4390560e01b81523060048201526001600160a01b0391821660248201529192506000919083169063e6a4390590604401602060405180830381865afa1580156124e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125059190612d2b565b90506001600160a01b03811661258e57601f546040516364e329cb60e11b81523060048201526001600160a01b0391821660248201529083169063c9c65396906044016020604051808303816000875af1158015612567573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061258b9190612d2b565b90505b600e80546001600160a01b0319166001600160a01b0383169081179091556040519081527f969ffc8569f9af3993220e04ac05164e5db4e3d9f8b1a47f64e7de9a04b8ea2f9060200160405180910390a15050600e546001600160a01b0316919050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461263f576040519150601f19603f3d011682016040523d82523d6000602084013e612644565b606091505b50509050806110595760405162461bcd60e51b815260206004820181905260248201527f44796f72204c61756e63683a204554485f5452414e534645525f4641494c454460448201526064016102c9565b60008260000182815481106126ac576126ac612d48565b9060005260206000200154905092915050565b8280546126cb90612c75565b90600052602060002090601f0160209004810192826126ed5760008555612733565b82601f1061270657805160ff1916838001178555612733565b82800160010185558215612733579182015b82811115612733578251825591602001919060010190612718565b5061273f929150612743565b5090565b5b8082111561273f5760008155600101612744565b60005b8381101561277357818101518382015260200161275b565b838111156117cf5750506000910152565b60208152600082518060208401526127a3816040850160208701612758565b601f01601f19169190910160400192915050565b6001600160a01b03811681146127cc57600080fd5b50565b600080604083850312156127e257600080fd5b82356127ed816127b7565b946020939093013593505050565b60008060006060848603121561281057600080fd5b833561281b816127b7565b9250602084013561282b816127b7565b929592945050506040919091013590565b60008060006060848603121561285157600080fd5b8335925060208401359150604084013561286a816127b7565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b604051610200810167ffffffffffffffff811182821017156128af576128af612875565b60405290565b600082601f8301126128c657600080fd5b813567ffffffffffffffff808211156128e1576128e1612875565b604051601f8301601f19908116603f0116810190828211818310171561290957612909612875565b8160405283815286602085880101111561292257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600080610100808a8c03121561296057600080fd5b893561296b816127b7565b985060208a013561297b816127b7565b975060408a013561298b816127b7565b965060608a013561299b816127b7565b955060808a01356129ab816127b7565b945060a08a01356129bb816127b7565b935060c08a0135925060e08a013567ffffffffffffffff808211156129df57600080fd5b908b0190610200828e0312156129f457600080fd5b6129fc61288b565b823582811115612a0b57600080fd5b612a178f8286016128b5565b825250602083013582811115612a2c57600080fd5b612a388f8286016128b5565b602083015250604083013582811115612a5057600080fd5b612a5c8f8286016128b5565b604083015250606083013582811115612a7457600080fd5b612a808f8286016128b5565b606083015250608083013582811115612a9857600080fd5b612aa48f8286016128b5565b60808301525060a083013582811115612abc57600080fd5b612ac88f8286016128b5565b60a08301525060c083013582811115612ae057600080fd5b612aec8f8286016128b5565b60c08301525060e083013582811115612b0457600080fd5b612b108f8286016128b5565b60e08301525082840135938101939093525061012080820135908301526101408082013590830152610160808201359083015261018080820135908301526101a080820135908301526101c080820135908301526101e09081013590820152979a96995094975092959194909350565b600060208284031215612b9257600080fd5b81356119fa816127b7565b80151581146127cc57600080fd5b600080600060608486031215612bc057600080fd5b8335612bcb81612b9d565b95602085013595506040909401359392505050565b60408082528351828201819052600091906020906060850190828801855b82811015612c2c57815180516001600160a01b03168552850151858501529285019290840190600101612bfe565b5050509301939093525092915050565b60008060408385031215612c4f57600080fd5b8235612c5a816127b7565b91506020830135612c6a816127b7565b809150509250929050565b600181811c90821680612c8957607f821691505b60208210811415612caa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612cd957612cd9612cb0565b500190565b600060208284031215612cf057600080fd5b81516119fa81612b9d565b600082821015612d0d57612d0d612cb0565b500390565b600060208284031215612d2457600080fd5b5051919050565b600060208284031215612d3d57600080fd5b81516119fa816127b7565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612d7257612d72612cb0565b5060010190565b60008251612d8b818460208701612758565b9190910192915050565b6000816000190483118215151615612daf57612daf612cb0565b500290565b600082612dd157634e487b7160e01b600052601260045260246000fd5b500490565b600080600060608486031215612deb57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052603160045260246000fdfea264697066735822122080bb1b74efc62e42b1090bc90a90f4a65ef9574a7cee1946aafd5c498f3ab01f64736f6c634300080a0033
| Token | Symbol | Balance | Price | Value |
|---|---|---|---|---|
WETH (WETH) | WETH | 0.000000 | $1,909.29 | $0 |
| DYORCAT (WCAT) | WCAT | 999,999,999.999999 | — | — |
| Block | Age | Parent Transaction Hash | Type | Method | From | To | Value | |
|---|---|---|---|---|---|---|---|---|
| no internal transactions found for this address yet (traced blocks + on-demand) | ||||||||
| Txn Hash | Age | Event | Topics / Data |
|---|---|---|---|
| 0x06f648…8a81be | 3 days agoFri, 14 Aug 2026 04:25:31 UTC | Swap | [0] 0x000000000000…1712b261 [1] 0x000000000000…1712b261 data: 0x000000000000000000…00000000 |
| 0x06f648…8a81be | 3 days agoFri, 14 Aug 2026 04:25:31 UTC | Sync | data: 0x000000000000000000…d0ffffff |
| 0x06f648…8a81be | 3 days agoFri, 14 Aug 2026 04:25:31 UTC | Transfer | [0] 0x000000000000…b68d6296 [1] 0x000000000000…db550000 data: 0x000000000000000000…96f72dd7 |
| 0x06f648…8a81be | 3 days agoFri, 14 Aug 2026 04:25:31 UTC | Approval | [0] 0x000000000000…b68d6296 [1] 0x000000000000…1712b261 data: 0x000000000000000000…00000000 |
| 0xf4f5be…569714 | 3 days agoFri, 14 Aug 2026 04:25:31 UTC | Approval | [0] 0x000000000000…b68d6296 [1] 0x000000000000…1712b261 data: 0x000000000000000000…96f72dd7 |
| 0x356488…799a2f | 3 days agoFri, 14 Aug 2026 04:25:31 UTC | Approval | [0] 0x000000000000…b68d6296 [1] 0x000000000000…262c40dc data: 0x000000000000000000…96f72dd7 |
| 0x76b21f…a99fea | 35 days agoMon, 13 Jul 2026 15:55:13 UTC | Swap | [0] 0x000000000000…1712b261 [1] 0x000000000000…1712b261 data: 0x000000000000000000…00000000 |
| 0x76b21f…a99fea | 35 days agoMon, 13 Jul 2026 15:55:13 UTC | Sync | data: 0x000000000000000000…3a08d228 |
| 0x76b21f…a99fea | 35 days agoMon, 13 Jul 2026 15:55:13 UTC | Transfer | [0] 0x000000000000…8be2b029 [1] 0x000000000000…db550000 data: 0x000000000000000000…b4f3b75f |
| 0x221e09…d6eaa2 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | Swap | [0] 0x000000000000…1712b261 [1] 0x000000000000…1712b261 data: 0x000000000000000000…00000000 |
| 0x221e09…d6eaa2 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | Sync | data: 0x000000000000000000…85151ac9 |
| 0x221e09…d6eaa2 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | Transfer | [0] 0x000000000000…f6e9590c [1] 0x000000000000…db550000 data: 0x000000000000000000…424fe373 |
| 0x5cdf11…3b6dd3 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | Approval | [0] 0x000000000000…f6e9590c [1] 0x000000000000…1712b261 data: 0xffffffffffffffffff…ffffffff |
| 0x0c1e3f…2234db | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | Approval | [0] 0x000000000000…f6e9590c [1] 0x000000000000…262c40dc data: 0xffffffffffffffffff…ffffffff |
| 0xa30031…039eae | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | Swap | [0] 0x000000000000…1712b261 [1] 0x000000000000…1712b261 data: 0x000000000000000000…00000000 |
| 0xa30031…039eae | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | Sync | data: 0x000000000000000000…42c53756 |
| 0xa30031…039eae | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | Transfer | [0] 0x000000000000…f38070a5 [1] 0x000000000000…db550000 data: 0x000000000000000000…0d3089d7 |
| 0xde0a60…87dbaf | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | Approval | [0] 0x000000000000…f38070a5 [1] 0x000000000000…1712b261 data: 0xffffffffffffffffff…ffffffff |
| 0x9cca66…e0e21e | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | Approval | [0] 0x000000000000…f38070a5 [1] 0x000000000000…262c40dc data: 0xffffffffffffffffff…ffffffff |
| 0x3da153…367ab9 | 35 days agoMon, 13 Jul 2026 15:53:56 UTC | Swap | [0] 0x000000000000…1712b261 [1] 0x000000000000…1712b261 data: 0x000000000000000000…00000000 |
| 0x3da153…367ab9 | 35 days agoMon, 13 Jul 2026 15:53:56 UTC | Sync | data: 0x000000000000000000…3594ad7f |
| 0x3da153…367ab9 | 35 days agoMon, 13 Jul 2026 15:53:56 UTC | Transfer | [0] 0x000000000000…3f3d8d74 [1] 0x000000000000…db550000 data: 0x000000000000000000…9f518891 |
| 0x6bce81…838463 | 35 days agoMon, 13 Jul 2026 15:53:56 UTC | Approval | [0] 0x000000000000…3f3d8d74 [1] 0x000000000000…1712b261 data: 0xffffffffffffffffff…ffffffff |
| 0xb4142a…07334d | 35 days agoMon, 13 Jul 2026 15:53:55 UTC | Approval | [0] 0x000000000000…3f3d8d74 [1] 0x000000000000…262c40dc data: 0xffffffffffffffffff…ffffffff |
| 0x737ecc…ed4fbb | 35 days agoMon, 13 Jul 2026 15:53:54 UTC | Swap | [0] 0x000000000000…1712b261 [1] 0x000000000000…f38070a5 data: 0x000000000000000000…0d3089d7 |
| Type | Age | Block | Details |
|---|---|---|---|
| no cross-chain L1↔L2 transactions for this address | |||
| Transaction Hash | Method | Block | Age | From | To | Type | Item | ||
|---|---|---|---|---|---|---|---|---|---|
| no NFT transfers for this address yet | |||||||||
| Transaction Hash | Method ? | Block | Age | From | To | Amount | Txn Fee ? | ||
|---|---|---|---|---|---|---|---|---|---|
| 0x356488…799a2f | Approve | 35,963,579 | 3 days agoFri, 14 Aug 2026 04:25:31 UTC | 0x6a93…6296 | IN | DYORCAT | $0.000 ETH | 0.00000194 | |
| 0xf4f5be…569714 | Approve | 35,963,579 | 3 days agoFri, 14 Aug 2026 04:25:31 UTC | 0x6a93…6296 | IN | DYORCAT | $0.000 ETH | 0.00000194 | |
| 0x0c1e3f…2234db | Approve | 8,790,734 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | 0xe660…590c | IN | DYORCAT | $0.000 ETH | 0.00000231 | |
| 0x5cdf11…3b6dd3 | Approve | 8,790,734 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | 0xe660…590c | IN | DYORCAT | $0.000 ETH | 0.00000231 | |
| 0x9cca66…e0e21e | Approve | 8,790,730 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | 0xd743…70a5 | IN | DYORCAT | $0.000 ETH | 0.00000230 | |
| 0xde0a60…87dbaf | Approve | 8,790,730 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | 0xd743…70a5 | IN | DYORCAT | $0.000 ETH | 0.00000230 | |
| 0x6bce81…838463 | Approve | 8,790,463 | 35 days agoMon, 13 Jul 2026 15:53:56 UTC | 0x39dc…8d74 | IN | DYORCAT | $0.000 ETH | 0.00000230 | |
| 0xb4142a…07334d | Approve | 8,790,456 | 35 days agoMon, 13 Jul 2026 15:53:55 UTC | 0x39dc…8d74 | IN | DYORCAT | $0.000 ETH | 0.00000230 | |
| 0x5a71e4…70460c | Approve | 8,790,421 | 35 days agoMon, 13 Jul 2026 15:53:52 UTC | 0xc321…b029 | IN | DYORCAT | $0.000 ETH | 0.00000230 | |
| 0x21519a…daa458 | Approve | 8,790,401 | 35 days agoMon, 13 Jul 2026 15:53:50 UTC | 0xa5d3…8839 | IN | DYORCAT | $0.000 ETH | 0.00000229 | |
| 0xa1130b…464c9b | Approve | 8,790,401 | 35 days agoMon, 13 Jul 2026 15:53:50 UTC | 0x7d9f…01ea | IN | DYORCAT | $0.000 ETH | 0.00000229 | |
| 0xe6915f…83a00f | Approve | 8,790,401 | 35 days agoMon, 13 Jul 2026 15:53:50 UTC | 0x7d9f…01ea | IN | DYORCAT | $0.000 ETH | 0.00000229 | |
| 0x0fd12f…aebe92 | Approve | 8,790,401 | 35 days agoMon, 13 Jul 2026 15:53:50 UTC | 0xa5d3…8839 | IN | DYORCAT | $0.000 ETH | 0.00000229 | |
| 0x1d198e…835449 | Approve | 8,790,388 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0x15e9…1d20 | IN | DYORCAT | $0.000 ETH | 0.00000133 | |
| 0x73e8c5…76728d | Approve | 8,790,388 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0x15e9…1d20 | IN | DYORCAT | $0.000 ETH | 0.00000133 | |
| 0xce77fd…eb9b50 | Approve | 8,790,387 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0x15e9…1d20 | IN | DYORCAT | $0.000 ETH | 0.00000231 | |
| 0x762213…2c7aa2 | Approve | 8,790,387 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0x15e9…1d20 | IN | DYORCAT | $0.000 ETH | 0.00000231 | |
| 0x4742bc…adc05f | Approve | 8,790,383 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0x99a6…f312 | IN | DYORCAT | $0.000 ETH | 0.00000230 | |
| 0x88c0fa…2819b2 | Approve | 8,790,383 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0x99a6…f312 | IN | DYORCAT | $0.000 ETH | 0.00000230 | |
| 0x7622ef…3da456 | Approve | 8,790,381 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0x902a…88a3 | IN | DYORCAT | $0.000 ETH | 0.00000229 | |
| 0xa8d14b…a71959 | Approve | 8,790,381 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0x902a…88a3 | IN | DYORCAT | $0.000 ETH | 0.00000229 |
| Transaction Hash | Method | Block | Age | From | To | Amount | Token | ||
|---|---|---|---|---|---|---|---|---|---|
| 0x06f64875…8a81be | Transfer | 35,963,579 | 3 days agoFri, 14 Aug 2026 04:25:31 UTC | 0xf041…0000 | OUT | 0x7b79…b261 | 0.000820 WETH | WETH (WETH) | |
| 0x06f64875…8a81be | Transfer | 35,963,579 | 3 days agoFri, 14 Aug 2026 04:25:31 UTC | 0x6a93…6296 | IN | 0xf041…0000 | 498,599.561509 WCAT | DYORCAT (WCAT) | |
| 0x76b21fbe…a99fea | Transfer | 8,791,229 | 35 days agoMon, 13 Jul 2026 15:55:13 UTC | 0xf041…0000 | OUT | 0x7b79…b261 | 0.052611 WETH | WETH (WETH) | |
| 0x76b21fbe…a99fea | Transfer | 8,791,229 | 35 days agoMon, 13 Jul 2026 15:55:13 UTC | 0xc321…b029 | IN | 0xf041…0000 | 31,034,822.882464 WCAT | DYORCAT (WCAT) | |
| 0x221e09b4…d6eaa2 | Transfer | 8,790,734 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | 0xf041…0000 | OUT | 0x7b79…b261 | 0.016976 WETH | WETH (WETH) | |
| 0x221e09b4…d6eaa2 | Transfer | 8,790,734 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | 0xe660…590c | IN | 0xf041…0000 | 9,634,808.872224 WCAT | DYORCAT (WCAT) | |
| 0xa30031a7…039eae | Transfer | 8,790,730 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | 0xf041…0000 | OUT | 0x7b79…b261 | 0.008580 WETH | WETH (WETH) | |
| 0xa30031a7…039eae | Transfer | 8,790,730 | 35 days agoMon, 13 Jul 2026 15:54:23 UTC | 0xd743…70a5 | IN | 0xf041…0000 | 4,802,251.795756 WCAT | DYORCAT (WCAT) | |
| 0x3da1532f…367ab9 | Transfer | 8,790,463 | 35 days agoMon, 13 Jul 2026 15:53:56 UTC | 0xf041…0000 | OUT | 0x7b79…b261 | 0.031199 WETH | WETH (WETH) | |
| 0x3da1532f…367ab9 | Transfer | 8,790,463 | 35 days agoMon, 13 Jul 2026 15:53:56 UTC | 0x39dc…8d74 | IN | 0xf041…0000 | 17,090,533.295729 WCAT | DYORCAT (WCAT) | |
| 0x737ecc47…ed4fbb | Transfer | 8,790,440 | 35 days agoMon, 13 Jul 2026 15:53:54 UTC | 0xf041…0000 | OUT | 0xd743…70a5 | 4,802,251.795756 WCAT | DYORCAT (WCAT) | |
| 0x737ecc47…ed4fbb | Transfer | 8,790,440 | 35 days agoMon, 13 Jul 2026 15:53:54 UTC | 0x7b79…b261 | IN | 0xf041…0000 | 0.008872 WETH | WETH (WETH) | |
| 0xf1d2a6fe…24b4e0 | Transfer | 8,790,421 | 35 days agoMon, 13 Jul 2026 15:53:52 UTC | 0xf041…0000 | OUT | 0x7b79…b261 | 0.058870 WETH | WETH (WETH) | |
| 0xf1d2a6fe…24b4e0 | Transfer | 8,790,421 | 35 days agoMon, 13 Jul 2026 15:53:52 UTC | 0xc321…b029 | IN | 0xf041…0000 | 31,034,822.882464 WCAT | DYORCAT (WCAT) | |
| 0xafa5c3fd…2e9f6b | Transfer | 8,790,409 | 35 days agoMon, 13 Jul 2026 15:53:51 UTC | 0xf041…0000 | OUT | 0x6a93…6296 | 498,599.561509 WCAT | DYORCAT (WCAT) | |
| 0xafa5c3fd…2e9f6b | Transfer | 8,790,409 | 35 days agoMon, 13 Jul 2026 15:53:51 UTC | 0x7b79…b261 | IN | 0xf041…0000 | 0.000975 WETH | WETH (WETH) | |
| 0x7c9f3d54…f3ae4b | Transfer | 8,790,401 | 35 days agoMon, 13 Jul 2026 15:53:50 UTC | 0xf041…0000 | OUT | 0x7b79…b261 | 0.021104 WETH | WETH (WETH) | |
| 0x7c9f3d54…f3ae4b | Transfer | 8,790,401 | 35 days agoMon, 13 Jul 2026 15:53:50 UTC | 0xa5d3…8839 | IN | 0xf041…0000 | 10,679,056.764000 WCAT | DYORCAT (WCAT) | |
| 0x7ef8fc79…76858a | Transfer | 8,790,401 | 35 days agoMon, 13 Jul 2026 15:53:50 UTC | 0xf041…0000 | OUT | 0x7b79…b261 | 0.022093 WETH | WETH (WETH) | |
| 0x7ef8fc79…76858a | Transfer | 8,790,401 | 35 days agoMon, 13 Jul 2026 15:53:50 UTC | 0x7d9f…01ea | IN | 0xf041…0000 | 10,933,973.708280 WCAT | DYORCAT (WCAT) | |
| 0x86f75c3b…ffa731 | Transfer | 8,790,387 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0xf041…0000 | OUT | 0x7b79…b261 | 0.039196 WETH | WETH (WETH) | |
| 0x86f75c3b…ffa731 | Transfer | 8,790,387 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0x15e9…1d20 | IN | 0xf041…0000 | 18,805,845.525374 WCAT | DYORCAT (WCAT) | |
| 0xe2f730bc…0a5c5c | Transfer | 8,790,384 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0xf041…0000 | OUT | 0x7b79…b261 | 0.043697 WETH | WETH (WETH) | |
| 0xe2f730bc…0a5c5c | Transfer | 8,790,384 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0x99a6…f312 | IN | 0xf041…0000 | 20,117,694.477635 WCAT | DYORCAT (WCAT) | |
| 0x88fc8945…08e7b1 | Transfer | 8,790,382 | 35 days agoMon, 13 Jul 2026 15:53:48 UTC | 0xf041…0000 | OUT | 0x7b79…b261 | 0.041318 WETH | WETH (WETH) |