Source Code
Latest 25 from a total of 238,615 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap | 23434486 | 42 mins ago | IN | 0 ETH | 0.00014115 | ||||
Set Daily Cap | 23433942 | 2 hrs ago | IN | 0 ETH | 0.00002235 | ||||
Swap | 23433932 | 2 hrs ago | IN | 0 ETH | 0.0000991 | ||||
Swap | 23433911 | 2 hrs ago | IN | 0 ETH | 0.0001163 | ||||
Swap | 23433895 | 2 hrs ago | IN | 0 ETH | 0.00018194 | ||||
Swap | 23433893 | 2 hrs ago | IN | 0 ETH | 0.00018583 | ||||
Swap | 23433887 | 2 hrs ago | IN | 0 ETH | 0.00019949 | ||||
Swap | 23433750 | 3 hrs ago | IN | 0 ETH | 0.00019998 | ||||
Swap | 23433685 | 3 hrs ago | IN | 0 ETH | 0.00024718 | ||||
Swap | 23433674 | 3 hrs ago | IN | 0 ETH | 0.00025131 | ||||
Swap | 23433670 | 3 hrs ago | IN | 0 ETH | 0.00025389 | ||||
Swap | 23433663 | 3 hrs ago | IN | 0 ETH | 0.00025763 | ||||
Swap | 23433655 | 3 hrs ago | IN | 0 ETH | 0.00025648 | ||||
Swap | 23433630 | 3 hrs ago | IN | 0 ETH | 0.00028669 | ||||
Swap | 23433622 | 3 hrs ago | IN | 0 ETH | 0.00024237 | ||||
Swap | 23433602 | 3 hrs ago | IN | 0 ETH | 0.00019764 | ||||
Swap | 23433546 | 3 hrs ago | IN | 0 ETH | 0.00055842 | ||||
Swap | 23433545 | 3 hrs ago | IN | 0 ETH | 0.00011459 | ||||
Swap | 23433534 | 3 hrs ago | IN | 0 ETH | 0.00015438 | ||||
Swap | 23433469 | 4 hrs ago | IN | 0 ETH | 0.00060384 | ||||
Swap | 23433440 | 4 hrs ago | IN | 0 ETH | 0.00011287 | ||||
Swap | 23433435 | 4 hrs ago | IN | 0 ETH | 0.00055104 | ||||
Swap | 23433428 | 4 hrs ago | IN | 0 ETH | 0.00009935 | ||||
Swap | 23433300 | 4 hrs ago | IN | 0 ETH | 0.00007692 | ||||
Swap | 23433294 | 4 hrs ago | IN | 0 ETH | 0.00007142 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FixedTokenBSwap
Compiler Version
v0.8.30+commit.73712a01
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; contract FixedTokenBSwap is Ownable, Pausable, ReentrancyGuard { using SafeERC20 for IERC20; IUniswapV2Router02 public immutable router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); address public immutable WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address public tokenB = 0x61e24Ce4efe61EB2efd6AC804445df65f8032955; uint256 public tokenBOut = 10 * 1e18; address public depositAddress; int256 public timezoneOffset = 8 * 3600; uint256 public dailyCap = 1000 * 1e18; uint256 public todayTotalOut; uint256 public lastRecordedDay; mapping(address => bool) public tokenWhitelist; mapping(address => uint256) public lastSwappedAt; event Swapped( address indexed user, address indexed tokenA, address indexed tokenB, uint256 amountAIn, uint256 amountBOut, uint256 timestamp ); event TokenBUpdated(address newTokenB); event TokenBOutUpdated(uint256 newAmount); event TimezoneOffsetUpdated(int256 newOffset); event DailyCapUpdated(uint256 newCap); event DepositAddressUpdated(address newDepositAddress); event TokenBWithdrawed(address tokenB, address depositAddress, uint256 amount); event TokenWhitelistUpdated(address indexed token, bool allowed); constructor() Ownable(msg.sender) { depositAddress = msg.sender; tokenWhitelist[WETH] = true; } modifier dailyLimitCheck(address user) { uint256 currentDay = _currentDay(); require(_dayFromTimestamp(lastSwappedAt[user]) != currentDay, "Already swapped today"); if (currentDay != lastRecordedDay) { todayTotalOut = 0; lastRecordedDay = currentDay; } require(todayTotalOut + tokenBOut <= dailyCap, "Daily cap exceeded"); _; lastSwappedAt[user] = block.timestamp; todayTotalOut += tokenBOut; } function swap(address tokenA, uint256 amountInMax) external whenNotPaused nonReentrant dailyLimitCheck(msg.sender) { require(tokenWhitelist[tokenA], "TokenA not whitelisted"); require(amountInMax > 0, "amountInMax = 0"); uint256 amountIn = getAmountIn(tokenA); require(amountInMax >= amountIn, "amountInMax too low"); uint256 balBefore = IERC20(tokenA).balanceOf(depositAddress); IERC20(tokenA).safeTransferFrom(msg.sender, depositAddress, amountIn); require(IERC20(tokenA).balanceOf(depositAddress) - balBefore >= amountIn, "payment failed"); IERC20(tokenB).safeTransfer(msg.sender, tokenBOut); emit Swapped(msg.sender, tokenA, tokenB, amountIn, tokenBOut, block.timestamp); } function swapWithETH(uint256 amountInMax) external payable whenNotPaused nonReentrant dailyLimitCheck(msg.sender) { require(amountInMax > 0, "amountInMax = 0"); uint256 amountIn = getAmountIn(WETH); require(amountInMax >= amountIn, "amountInMax too low"); require(msg.value >= amountIn, "Insufficient ETH"); payable(depositAddress).transfer(amountIn); if (msg.value > amountIn) { payable(msg.sender).transfer(msg.value - amountIn); } IERC20(tokenB).safeTransfer(msg.sender, tokenBOut); emit Swapped(msg.sender, WETH, tokenB, amountIn, tokenBOut, block.timestamp); } function getAmountIn(address tokenA) public view returns (uint256) { require(tokenWhitelist[tokenA], "TokenA not whitelisted"); address[] memory path; if (tokenA == WETH) { path = new address[](2) ; path[0] = WETH; path[1] = tokenB; } else { path = new address[](3) ; path[0] = tokenA; path[1] = WETH; path[2] = tokenB; } uint256[] memory amountsIn = router.getAmountsIn(tokenBOut, path); return amountsIn[0]; } function canSwap(address user) external view returns (bool) { return _dayFromTimestamp(lastSwappedAt[user]) != _currentDay(); } function secondsUntilNextSwap(address user) external view returns (uint256) { uint256 lastDay = _dayFromTimestamp(lastSwappedAt[user]); uint256 currDay = _currentDay(); if (currDay > lastDay) return 0; uint256 nextReset = ((lastDay + 1) * 1 days) - uint256(int256(timezoneOffset)); return nextReset > block.timestamp ? nextReset - block.timestamp : 0; } function remainingToday() external view returns (uint256 amount, uint256 resetTimestamp) { uint256 currentDay = _currentDay(); if (currentDay != lastRecordedDay) return (dailyCap, _startOfNextDay()); if (todayTotalOut >= dailyCap) return (0, _startOfNextDay()); return (dailyCap - todayTotalOut, _startOfNextDay()); } function getUserState(address user) external view returns ( bool canSwapNow, uint256 secondsToNext, uint256 remainingDailyCap, uint256 nextResetTime, uint256 lastSwapTimestamp ) { uint256 lastDay = _dayFromTimestamp(lastSwappedAt[user]); uint256 currentDay = _currentDay(); canSwapNow = lastDay != currentDay; uint256 nextReset = _startOfNextDay(); secondsToNext = canSwapNow ? 0 : (nextReset > block.timestamp ? nextReset - block.timestamp : 0); (remainingDailyCap, nextResetTime) = this.remainingToday(); lastSwapTimestamp = lastSwappedAt[user]; } function setTokenB(address newTokenB) external onlyOwner { require(newTokenB != address(0), "Zero address"); tokenB = newTokenB; emit TokenBUpdated(newTokenB); } function setTokenBOut(uint256 newAmount) external onlyOwner { require(newAmount > 0, "Must be > 0"); tokenBOut = newAmount; emit TokenBOutUpdated(newAmount); } function setTimezoneOffset(int256 newOffset) external onlyOwner { require(newOffset >= -86400 && newOffset <= 86400, "Invalid offset"); timezoneOffset = newOffset; emit TimezoneOffsetUpdated(newOffset); } function setDailyCap(uint256 newCap) external onlyOwner { require(newCap > 0, "Invalid cap"); dailyCap = newCap; emit DailyCapUpdated(newCap); } function setDepositAddress(address newDepositAddress) external onlyOwner { require(newDepositAddress != address(0), "Zero deposit"); depositAddress = newDepositAddress; emit DepositAddressUpdated(newDepositAddress); } function setTokenWhitelist(address token, bool allowed) external onlyOwner { require(token != address(0), "token = zero address"); tokenWhitelist[token] = allowed; emit TokenWhitelistUpdated(token, allowed); } function withdrawTokenB(address _tokenB, address _depositAddress) external onlyOwner { IERC20 token = IERC20(_tokenB); token.safeTransfer(_depositAddress, token.balanceOf(address(this))); emit TokenBWithdrawed(_tokenB, _depositAddress, token.balanceOf(address(this))); } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function _currentDay() internal view returns (uint256) { return uint256(int256(block.timestamp) + timezoneOffset) / 1 days; } function _dayFromTimestamp(uint256 ts) internal view returns (uint256) { return uint256(int256(ts) + timezoneOffset) / 1 days; } function _startOfNextDay() internal view returns (uint256) { uint256 dayIdx = uint256(int256(block.timestamp) + timezoneOffset) / 1 days; return ((dayIdx + 1) * 1 days) - uint256(int256(timezoneOffset)); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC1363} from "../../../interfaces/IERC1363.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC-20 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 { /** * @dev An operation with an ERC-20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful. */ function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) { return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful. */ function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) { return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. * * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being * set here. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { safeTransfer(token, to, value); } else if (!token.transferAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferFromAndCallRelaxed( IERC1363 token, address from, address to, uint256 value, bytes memory data ) internal { if (to.code.length == 0) { safeTransferFrom(token, from, to, value); } else if (!token.transferFromAndCall(from, to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}. * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall} * once without retrying, and relies on the returned value to be true. * * Reverts if the returned value is other than `true`. */ function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { forceApprove(token, to, value); } else if (!token.approveAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @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). * * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements. */ function _callOptionalReturn(IERC20 token, bytes memory data) private { uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) // bubble errors if iszero(success) { let ptr := mload(0x40) returndatacopy(ptr, 0, returndatasize()) revert(ptr, returndatasize()) } returnSize := returndatasize() returnValue := mload(0) } if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) { revert SafeERC20FailedOperation(address(token)); } } /** * @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). * * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { bool success; uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) returnSize := returndatasize() returnValue := mload(0) } return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { 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; }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC165} from "./IERC165.sol"; /** * @title IERC1363 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363]. * * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction. */ interface IERC1363 is IERC20, IERC165 { /* * Note: the ERC-165 identifier for this interface is 0xb0202a11. * 0xb0202a11 === * bytes4(keccak256('transferAndCall(address,uint256)')) ^ * bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^ * bytes4(keccak256('approveAndCall(address,uint256)')) ^ * bytes4(keccak256('approveAndCall(address,uint256,bytes)')) */ /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @param data Additional data with no specified format, sent in call to `spender`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "remappings": [] }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"DailyCapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newDepositAddress","type":"address"}],"name":"DepositAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"tokenA","type":"address"},{"indexed":true,"internalType":"address","name":"tokenB","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountAIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountBOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Swapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int256","name":"newOffset","type":"int256"}],"name":"TimezoneOffsetUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"TokenBOutUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newTokenB","type":"address"}],"name":"TokenBUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenB","type":"address"},{"indexed":false,"internalType":"address","name":"depositAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenBWithdrawed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bool","name":"allowed","type":"bool"}],"name":"TokenWhitelistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"canSwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dailyCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"}],"name":"getAmountIn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserState","outputs":[{"internalType":"bool","name":"canSwapNow","type":"bool"},{"internalType":"uint256","name":"secondsToNext","type":"uint256"},{"internalType":"uint256","name":"remainingDailyCap","type":"uint256"},{"internalType":"uint256","name":"nextResetTime","type":"uint256"},{"internalType":"uint256","name":"lastSwapTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRecordedDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastSwappedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingToday","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"resetTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"secondsUntilNextSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"setDailyCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDepositAddress","type":"address"}],"name":"setDepositAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"newOffset","type":"int256"}],"name":"setTimezoneOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTokenB","type":"address"}],"name":"setTokenB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"setTokenBOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setTokenWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"uint256","name":"amountInMax","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountInMax","type":"uint256"}],"name":"swapWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"timezoneOffset","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"todayTotalOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenB","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenB","type":"address"},{"internalType":"address","name":"_depositAddress","type":"address"}],"name":"withdrawTokenB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff1681525073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1660a09073ffffffffffffffffffffffffffffffffffffffff168152507361e24ce4efe61eb2efd6ac804445df65f803295560025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550678ac7230489e80000600355617080600555683635c9adc5dea00000600655348015610110575f5ffd5b50335f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610182575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610179919061034e565b60405180910390fd5b6101918161024e60201b60201c565b505f5f60146101000a81548160ff021916908315150217905550600180819055503360045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160095f60a05173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610367565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6103388261030f565b9050919050565b6103488161032e565b82525050565b5f6020820190506103615f83018461033f565b92915050565b60805160a0516134b06103b25f395f8181610e1d0152818161100e01528181611226015281816112c501528181611442015261178f01525f81816115230152611f3a01526134b05ff3fe6080604052600436106101db575f3560e01c80637f53c96b11610101578063ad5c464811610094578063eb33939111610063578063eb3393911461066a578063f2fde38b14610694578063f887ea40146106bc578063fc3c5515146106e6576101e2565b8063ad5c4648146105c8578063c9bcc97e146105f2578063d004f0f71461061a578063e7a358eb14610642576101e2565b8063986c8427116100d0578063986c8427146104fe578063a966707114610528578063ab18af2714610564578063ac0261691461058c576101e2565b80637f53c96b146104665780638456cb59146104825780638da5cb5b1461049857806392bc3117146104c2576101e2565b80635363f437116101795780636c7c1cbb116101485780636c7c1cbb146103ae578063711b4a29146103d8578063715018a614610414578063753d75631461042a576101e2565b80635363f4371461030a5780635b2ec32b146103325780635c975abb1461035a5780635f64b55b14610384576101e2565b806328f833b7116101b557806328f833b7146102605780633278239b1461028a5780633f4ba83a146102b4578063416ae768146102ca576101e2565b80630840a44a146101e6578063147075381461020e578063171a526114610236576101e2565b366101e257005b5f5ffd5b3480156101f1575f5ffd5b5061020c60048036038101906102079190612538565b610711565b005b348015610219575f5ffd5b50610234600480360381019061022f91906125bd565b61079c565b005b348015610241575f5ffd5b5061024a61088c565b60405161025791906125f7565b60405180910390f35b34801561026b575f5ffd5b50610274610892565b604051610281919061261f565b60405180910390f35b348015610295575f5ffd5b5061029e6108b7565b6040516102ab91906125f7565b60405180910390f35b3480156102bf575f5ffd5b506102c86108bd565b005b3480156102d5575f5ffd5b506102f060048036038101906102eb91906125bd565b6108cf565b604051610301959493929190612652565b60405180910390f35b348015610315575f5ffd5b50610330600480360381019061032b91906126a3565b610a21565b005b34801561033d575f5ffd5b5061035860048036038101906103539190612714565b610b86565b005b348015610365575f5ffd5b5061036e610c41565b60405161037b919061273f565b60405180910390f35b34801561038f575f5ffd5b50610398610c56565b6040516103a5919061261f565b60405180910390f35b3480156103b9575f5ffd5b506103c2610c7b565b6040516103cf9190612767565b60405180910390f35b3480156103e3575f5ffd5b506103fe60048036038101906103f991906125bd565b610c81565b60405161040b91906125f7565b60405180910390f35b34801561041f575f5ffd5b50610428610c96565b005b348015610435575f5ffd5b50610450600480360381019061044b91906125bd565b610ca9565b60405161045d919061273f565b60405180910390f35b610480600480360381019061047b9190612538565b610cc6565b005b34801561048d575f5ffd5b50610496611101565b005b3480156104a3575f5ffd5b506104ac611113565b6040516104b9919061261f565b60405180910390f35b3480156104cd575f5ffd5b506104e860048036038101906104e391906125bd565b61113a565b6040516104f5919061273f565b60405180910390f35b348015610509575f5ffd5b50610512611192565b60405161051f91906125f7565b60405180910390f35b348015610533575f5ffd5b5061054e600480360381019061054991906125bd565b611198565b60405161055b91906125f7565b60405180910390f35b34801561056f575f5ffd5b5061058a600480360381019061058591906125bd565b6115e6565b005b348015610597575f5ffd5b506105b260048036038101906105ad91906125bd565b6116d6565b6040516105bf91906125f7565b60405180910390f35b3480156105d3575f5ffd5b506105dc61178d565b6040516105e9919061261f565b60405180910390f35b3480156105fd575f5ffd5b50610618600480360381019061061391906127aa565b6117b1565b005b348015610625575f5ffd5b50610640600480360381019061063b91906127e8565b6118cd565b005b34801561064d575f5ffd5b5061066860048036038101906106639190612538565b611e23565b005b348015610675575f5ffd5b5061067e611eae565b60405161068b91906125f7565b60405180910390f35b34801561069f575f5ffd5b506106ba60048036038101906106b591906125bd565b611eb4565b005b3480156106c7575f5ffd5b506106d0611f38565b6040516106dd9190612881565b60405180910390f35b3480156106f1575f5ffd5b506106fa611f5c565b60405161070892919061289a565b60405180910390f35b610719611fc7565b5f811161075b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107529061291b565b60405180910390fd5b806006819055507f8925eb7e33342c248e8380fb70e3f497217013b0fd9bfca496b50b77bc90a01f8160405161079191906125f7565b60405180910390a150565b6107a4611fc7565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080990612983565b60405180910390fd5b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f209609af5bd1cd9c31d0db16af3a5a319bef5d4ac7afa570128c974dab2f814e81604051610881919061261f565b60405180910390a150565b60035481565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b6108c5611fc7565b6108cd61204e565b565b5f5f5f5f5f5f61091b600a5f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120af565b90505f6109266120d3565b90508082141596505f6109376120f5565b90508761095d5742811161094b575f610958565b428161095791906129ce565b5b61095f565b5f5b96503073ffffffffffffffffffffffffffffffffffffffff1663fc3c55156040518163ffffffff1660e01b81526004016040805180830381865afa1580156109a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109cd9190612a15565b8096508197505050600a5f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054935050505091939590929450565b610a29611fc7565b5f829050610acf828273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a6a919061261f565b602060405180830381865afa158015610a85573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610aa99190612a53565b8373ffffffffffffffffffffffffffffffffffffffff166121439092919063ffffffff16565b7f0cf6181d5feb4fe14c1e91602a19d756b78752bc60f892b84fc1244720f752d183838373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b2b919061261f565b602060405180830381865afa158015610b46573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b6a9190612a53565b604051610b7993929190612a7e565b60405180910390a1505050565b610b8e611fc7565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeae808112158015610bc15750620151808113155b610c00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf790612afd565b60405180910390fd5b806005819055507f49d1150de83f2769fb2b2d93b58460229a19799deaf7017cab0d3d84933005a381604051610c369190612767565b60405180910390a150565b5f5f60149054906101000a900460ff16905090565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b600a602052805f5260405f205f915090505481565b610c9e611fc7565b610ca75f6121c2565b565b6009602052805f5260405f205f915054906101000a900460ff1681565b610cce612283565b610cd66122cd565b335f610ce06120d3565b905080610d29600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120af565b03610d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6090612b65565b60405180910390fd5b6008548114610d81575f600781905550806008819055505b600654600354600754610d949190612b83565b1115610dd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcc90612c00565b60405180910390fd5b5f8311610e17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0e90612c68565b60405180910390fd5b5f610e417f0000000000000000000000000000000000000000000000000000000000000000611198565b905080841015610e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7d90612cd0565b60405180910390fd5b80341015610ec9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec090612d38565b60405180910390fd5b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015610f2d573d5f5f3e3d5ffd5b5080341115610f86573373ffffffffffffffffffffffffffffffffffffffff166108fc8234610f5c91906129ce565b90811502906040515f60405180830381858888f19350505050158015610f84573d5f5f3e3d5ffd5b505b610fd43360035460025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166121439092919063ffffffff16565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc9163c3bdf7263acf1bb3d24072cc7da025f7181c31e2edc7e1673edf5e0ca32846003544260405161108f93929190612d56565b60405180910390a45042600a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060035460075f8282546110ed9190612b83565b9250508190555050506110fe61231c565b50565b611109611fc7565b611111612325565b565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f6111436120d3565b611189600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120af565b14159050919050565b60075481565b5f60095f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121990612dd5565b60405180910390fd5b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036113a657600267ffffffffffffffff81111561129257611291612df3565b5b6040519080825280602002602001820160405280156112c05781602001602082028036833780820191505090505b5090507f0000000000000000000000000000000000000000000000000000000000000000815f815181106112f7576112f6612e20565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160018151811061136757611366612e20565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611520565b600367ffffffffffffffff8111156113c1576113c0612df3565b5b6040519080825280602002602001820160405280156113ef5781602001602082028036833780820191505090505b50905082815f8151811061140657611405612e20565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061147557611474612e20565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16816002815181106114e5576114e4612e20565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631f00ca74600354846040518363ffffffff1660e01b815260040161157e929190612f04565b5f60405180830381865afa158015611598573d5f5f3e3d5ffd5b505050506040513d5f823e3d601f19601f820116820180604052508101906115c09190613055565b9050805f815181106115d5576115d4612e20565b5b602002602001015192505050919050565b6115ee611fc7565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361165c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611653906130e6565b60405180910390fd5b8060045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fbcef7086bf2852e467175e2832f3d1463f5a64d85d214039391ca92a72115f73816040516116cb919061261f565b60405180910390a150565b5f5f61171e600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120af565b90505f6117296120d3565b90508181111561173d575f92505050611788565b5f600554620151806001856117529190612b83565b61175c9190613104565b61176691906129ce565b9050428111611775575f611782565b428161178191906129ce565b5b93505050505b919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6117b9611fc7565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181e9061318f565b60405180910390fd5b8060095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f67821d5384bb02aab1ba91a477f89c9966cd30f475b02618bdc58712bca51275826040516118c1919061273f565b60405180910390a25050565b6118d5612283565b6118dd6122cd565b335f6118e76120d3565b905080611930600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120af565b03611970576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196790612b65565b60405180910390fd5b6008548114611988575f600781905550806008819055505b60065460035460075461199b9190612b83565b11156119dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d390612c00565b60405180910390fd5b60095f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611a65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5c90612dd5565b60405180910390fd5b5f8311611aa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9e90612c68565b60405180910390fd5b5f611ab185611198565b905080841015611af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aed90612cd0565b60405180910390fd5b5f8573ffffffffffffffffffffffffffffffffffffffff166370a0823160045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401611b51919061261f565b602060405180830381865afa158015611b6c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b909190612a53565b9050611be03360045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16848973ffffffffffffffffffffffffffffffffffffffff16612387909392919063ffffffff16565b81818773ffffffffffffffffffffffffffffffffffffffff166370a0823160045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401611c3c919061261f565b602060405180830381865afa158015611c57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c7b9190612a53565b611c8591906129ce565b1015611cc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbd906131f7565b60405180910390fd5b611d143360035460025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166121439092919063ffffffff16565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc9163c3bdf7263acf1bb3d24072cc7da025f7181c31e2edc7e1673edf5e0ca328560035442604051611daf93929190612d56565b60405180910390a4505042600a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060035460075f828254611e0e9190612b83565b925050819055505050611e1f61231c565b5050565b611e2b611fc7565b5f8111611e6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e649061325f565b60405180910390fd5b806003819055507f94a67c48649d65d800c29b50c996c4ab2fc16305af2b38d8487abea4f3cf089981604051611ea391906125f7565b60405180910390a150565b60065481565b611ebc611fc7565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f2c575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611f23919061261f565b60405180910390fd5b611f35816121c2565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f5f5f611f676120d3565b90506008548114611f8757600654611f7d6120f5565b9250925050611fc3565b60065460075410611fa5575f611f9b6120f5565b9250925050611fc3565b600754600654611fb591906129ce565b611fbd6120f5565b92509250505b9091565b611fcf612409565b73ffffffffffffffffffffffffffffffffffffffff16611fed611113565b73ffffffffffffffffffffffffffffffffffffffff161461204c57612010612409565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612043919061261f565b60405180910390fd5b565b612056612410565b5f5f60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612098612409565b6040516120a5919061261f565b60405180910390a1565b5f62015180600554836120c2919061327d565b6120cc91906132eb565b9050919050565b5f62015180600554426120e6919061327d565b6120f091906132eb565b905090565b5f5f6201518060055442612109919061327d565b61211391906132eb565b9050600554620151806001836121299190612b83565b6121339190613104565b61213d91906129ce565b91505090565b6121bd838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb858560405160240161217692919061331b565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612459565b505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61228b610c41565b156122cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c29061338c565b60405180910390fd5b565b600260015403612312576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612309906133f4565b60405180910390fd5b6002600181905550565b60018081905550565b61232d612283565b60015f60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612370612409565b60405161237d919061261f565b60405180910390a1565b612403848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016123bc93929190612a7e565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612459565b50505050565b5f33905090565b612418610c41565b612457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244e9061345c565b60405180910390fd5b565b5f5f60205f8451602086015f885af180612478576040513d5f823e3d81fd5b3d92505f519150505f82146124915760018114156124ac565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b156124ee57836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016124e5919061261f565b60405180910390fd5b50505050565b5f604051905090565b5f5ffd5b5f5ffd5b5f819050919050565b61251781612505565b8114612521575f5ffd5b50565b5f813590506125328161250e565b92915050565b5f6020828403121561254d5761254c6124fd565b5b5f61255a84828501612524565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61258c82612563565b9050919050565b61259c81612582565b81146125a6575f5ffd5b50565b5f813590506125b781612593565b92915050565b5f602082840312156125d2576125d16124fd565b5b5f6125df848285016125a9565b91505092915050565b6125f181612505565b82525050565b5f60208201905061260a5f8301846125e8565b92915050565b61261981612582565b82525050565b5f6020820190506126325f830184612610565b92915050565b5f8115159050919050565b61264c81612638565b82525050565b5f60a0820190506126655f830188612643565b61267260208301876125e8565b61267f60408301866125e8565b61268c60608301856125e8565b61269960808301846125e8565b9695505050505050565b5f5f604083850312156126b9576126b86124fd565b5b5f6126c6858286016125a9565b92505060206126d7858286016125a9565b9150509250929050565b5f819050919050565b6126f3816126e1565b81146126fd575f5ffd5b50565b5f8135905061270e816126ea565b92915050565b5f60208284031215612729576127286124fd565b5b5f61273684828501612700565b91505092915050565b5f6020820190506127525f830184612643565b92915050565b612761816126e1565b82525050565b5f60208201905061277a5f830184612758565b92915050565b61278981612638565b8114612793575f5ffd5b50565b5f813590506127a481612780565b92915050565b5f5f604083850312156127c0576127bf6124fd565b5b5f6127cd858286016125a9565b92505060206127de85828601612796565b9150509250929050565b5f5f604083850312156127fe576127fd6124fd565b5b5f61280b858286016125a9565b925050602061281c85828601612524565b9150509250929050565b5f819050919050565b5f61284961284461283f84612563565b612826565b612563565b9050919050565b5f61285a8261282f565b9050919050565b5f61286b82612850565b9050919050565b61287b81612861565b82525050565b5f6020820190506128945f830184612872565b92915050565b5f6040820190506128ad5f8301856125e8565b6128ba60208301846125e8565b9392505050565b5f82825260208201905092915050565b7f496e76616c6964206361700000000000000000000000000000000000000000005f82015250565b5f612905600b836128c1565b9150612910826128d1565b602082019050919050565b5f6020820190508181035f830152612932816128f9565b9050919050565b7f5a65726f206164647265737300000000000000000000000000000000000000005f82015250565b5f61296d600c836128c1565b915061297882612939565b602082019050919050565b5f6020820190508181035f83015261299a81612961565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6129d882612505565b91506129e383612505565b92508282039050818111156129fb576129fa6129a1565b5b92915050565b5f81519050612a0f8161250e565b92915050565b5f5f60408385031215612a2b57612a2a6124fd565b5b5f612a3885828601612a01565b9250506020612a4985828601612a01565b9150509250929050565b5f60208284031215612a6857612a676124fd565b5b5f612a7584828501612a01565b91505092915050565b5f606082019050612a915f830186612610565b612a9e6020830185612610565b612aab60408301846125e8565b949350505050565b7f496e76616c6964206f66667365740000000000000000000000000000000000005f82015250565b5f612ae7600e836128c1565b9150612af282612ab3565b602082019050919050565b5f6020820190508181035f830152612b1481612adb565b9050919050565b7f416c7265616479207377617070656420746f64617900000000000000000000005f82015250565b5f612b4f6015836128c1565b9150612b5a82612b1b565b602082019050919050565b5f6020820190508181035f830152612b7c81612b43565b9050919050565b5f612b8d82612505565b9150612b9883612505565b9250828201905080821115612bb057612baf6129a1565b5b92915050565b7f4461696c792063617020657863656564656400000000000000000000000000005f82015250565b5f612bea6012836128c1565b9150612bf582612bb6565b602082019050919050565b5f6020820190508181035f830152612c1781612bde565b9050919050565b7f616d6f756e74496e4d6178203d203000000000000000000000000000000000005f82015250565b5f612c52600f836128c1565b9150612c5d82612c1e565b602082019050919050565b5f6020820190508181035f830152612c7f81612c46565b9050919050565b7f616d6f756e74496e4d617820746f6f206c6f77000000000000000000000000005f82015250565b5f612cba6013836128c1565b9150612cc582612c86565b602082019050919050565b5f6020820190508181035f830152612ce781612cae565b9050919050565b7f496e73756666696369656e7420455448000000000000000000000000000000005f82015250565b5f612d226010836128c1565b9150612d2d82612cee565b602082019050919050565b5f6020820190508181035f830152612d4f81612d16565b9050919050565b5f606082019050612d695f8301866125e8565b612d7660208301856125e8565b612d8360408301846125e8565b949350505050565b7f546f6b656e41206e6f742077686974656c6973746564000000000000000000005f82015250565b5f612dbf6016836128c1565b9150612dca82612d8b565b602082019050919050565b5f6020820190508181035f830152612dec81612db3565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612e7f81612582565b82525050565b5f612e908383612e76565b60208301905092915050565b5f602082019050919050565b5f612eb282612e4d565b612ebc8185612e57565b9350612ec783612e67565b805f5b83811015612ef7578151612ede8882612e85565b9750612ee983612e9c565b925050600181019050612eca565b5085935050505092915050565b5f604082019050612f175f8301856125e8565b8181036020830152612f298184612ea8565b90509392505050565b5f5ffd5b5f601f19601f8301169050919050565b612f4f82612f36565b810181811067ffffffffffffffff82111715612f6e57612f6d612df3565b5b80604052505050565b5f612f806124f4565b9050612f8c8282612f46565b919050565b5f67ffffffffffffffff821115612fab57612faa612df3565b5b602082029050602081019050919050565b5f5ffd5b5f612fd2612fcd84612f91565b612f77565b90508083825260208201905060208402830185811115612ff557612ff4612fbc565b5b835b8181101561301e578061300a8882612a01565b845260208401935050602081019050612ff7565b5050509392505050565b5f82601f83011261303c5761303b612f32565b5b815161304c848260208601612fc0565b91505092915050565b5f6020828403121561306a576130696124fd565b5b5f82015167ffffffffffffffff81111561308757613086612501565b5b61309384828501613028565b91505092915050565b7f5a65726f206465706f73697400000000000000000000000000000000000000005f82015250565b5f6130d0600c836128c1565b91506130db8261309c565b602082019050919050565b5f6020820190508181035f8301526130fd816130c4565b9050919050565b5f61310e82612505565b915061311983612505565b925082820261312781612505565b9150828204841483151761313e5761313d6129a1565b5b5092915050565b7f746f6b656e203d207a65726f20616464726573730000000000000000000000005f82015250565b5f6131796014836128c1565b915061318482613145565b602082019050919050565b5f6020820190508181035f8301526131a68161316d565b9050919050565b7f7061796d656e74206661696c65640000000000000000000000000000000000005f82015250565b5f6131e1600e836128c1565b91506131ec826131ad565b602082019050919050565b5f6020820190508181035f83015261320e816131d5565b9050919050565b7f4d757374206265203e20300000000000000000000000000000000000000000005f82015250565b5f613249600b836128c1565b915061325482613215565b602082019050919050565b5f6020820190508181035f8301526132768161323d565b9050919050565b5f613287826126e1565b9150613292836126e1565b92508282019050828112155f8312168382125f8412151617156132b8576132b76129a1565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6132f582612505565b915061330083612505565b9250826133105761330f6132be565b5b828204905092915050565b5f60408201905061332e5f830185612610565b61333b60208301846125e8565b9392505050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f6133766010836128c1565b915061338182613342565b602082019050919050565b5f6020820190508181035f8301526133a38161336a565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f6133de601f836128c1565b91506133e9826133aa565b602082019050919050565b5f6020820190508181035f83015261340b816133d2565b9050919050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f6134466014836128c1565b915061345182613412565b602082019050919050565b5f6020820190508181035f8301526134738161343a565b905091905056fea264697066735822122046e52d8ec01f47a1d998a5858610f3eb1fd74ce2870a30d80c26739d7e1e411964736f6c634300081e0033
Deployed Bytecode
0x6080604052600436106101db575f3560e01c80637f53c96b11610101578063ad5c464811610094578063eb33939111610063578063eb3393911461066a578063f2fde38b14610694578063f887ea40146106bc578063fc3c5515146106e6576101e2565b8063ad5c4648146105c8578063c9bcc97e146105f2578063d004f0f71461061a578063e7a358eb14610642576101e2565b8063986c8427116100d0578063986c8427146104fe578063a966707114610528578063ab18af2714610564578063ac0261691461058c576101e2565b80637f53c96b146104665780638456cb59146104825780638da5cb5b1461049857806392bc3117146104c2576101e2565b80635363f437116101795780636c7c1cbb116101485780636c7c1cbb146103ae578063711b4a29146103d8578063715018a614610414578063753d75631461042a576101e2565b80635363f4371461030a5780635b2ec32b146103325780635c975abb1461035a5780635f64b55b14610384576101e2565b806328f833b7116101b557806328f833b7146102605780633278239b1461028a5780633f4ba83a146102b4578063416ae768146102ca576101e2565b80630840a44a146101e6578063147075381461020e578063171a526114610236576101e2565b366101e257005b5f5ffd5b3480156101f1575f5ffd5b5061020c60048036038101906102079190612538565b610711565b005b348015610219575f5ffd5b50610234600480360381019061022f91906125bd565b61079c565b005b348015610241575f5ffd5b5061024a61088c565b60405161025791906125f7565b60405180910390f35b34801561026b575f5ffd5b50610274610892565b604051610281919061261f565b60405180910390f35b348015610295575f5ffd5b5061029e6108b7565b6040516102ab91906125f7565b60405180910390f35b3480156102bf575f5ffd5b506102c86108bd565b005b3480156102d5575f5ffd5b506102f060048036038101906102eb91906125bd565b6108cf565b604051610301959493929190612652565b60405180910390f35b348015610315575f5ffd5b50610330600480360381019061032b91906126a3565b610a21565b005b34801561033d575f5ffd5b5061035860048036038101906103539190612714565b610b86565b005b348015610365575f5ffd5b5061036e610c41565b60405161037b919061273f565b60405180910390f35b34801561038f575f5ffd5b50610398610c56565b6040516103a5919061261f565b60405180910390f35b3480156103b9575f5ffd5b506103c2610c7b565b6040516103cf9190612767565b60405180910390f35b3480156103e3575f5ffd5b506103fe60048036038101906103f991906125bd565b610c81565b60405161040b91906125f7565b60405180910390f35b34801561041f575f5ffd5b50610428610c96565b005b348015610435575f5ffd5b50610450600480360381019061044b91906125bd565b610ca9565b60405161045d919061273f565b60405180910390f35b610480600480360381019061047b9190612538565b610cc6565b005b34801561048d575f5ffd5b50610496611101565b005b3480156104a3575f5ffd5b506104ac611113565b6040516104b9919061261f565b60405180910390f35b3480156104cd575f5ffd5b506104e860048036038101906104e391906125bd565b61113a565b6040516104f5919061273f565b60405180910390f35b348015610509575f5ffd5b50610512611192565b60405161051f91906125f7565b60405180910390f35b348015610533575f5ffd5b5061054e600480360381019061054991906125bd565b611198565b60405161055b91906125f7565b60405180910390f35b34801561056f575f5ffd5b5061058a600480360381019061058591906125bd565b6115e6565b005b348015610597575f5ffd5b506105b260048036038101906105ad91906125bd565b6116d6565b6040516105bf91906125f7565b60405180910390f35b3480156105d3575f5ffd5b506105dc61178d565b6040516105e9919061261f565b60405180910390f35b3480156105fd575f5ffd5b50610618600480360381019061061391906127aa565b6117b1565b005b348015610625575f5ffd5b50610640600480360381019061063b91906127e8565b6118cd565b005b34801561064d575f5ffd5b5061066860048036038101906106639190612538565b611e23565b005b348015610675575f5ffd5b5061067e611eae565b60405161068b91906125f7565b60405180910390f35b34801561069f575f5ffd5b506106ba60048036038101906106b591906125bd565b611eb4565b005b3480156106c7575f5ffd5b506106d0611f38565b6040516106dd9190612881565b60405180910390f35b3480156106f1575f5ffd5b506106fa611f5c565b60405161070892919061289a565b60405180910390f35b610719611fc7565b5f811161075b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107529061291b565b60405180910390fd5b806006819055507f8925eb7e33342c248e8380fb70e3f497217013b0fd9bfca496b50b77bc90a01f8160405161079191906125f7565b60405180910390a150565b6107a4611fc7565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080990612983565b60405180910390fd5b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f209609af5bd1cd9c31d0db16af3a5a319bef5d4ac7afa570128c974dab2f814e81604051610881919061261f565b60405180910390a150565b60035481565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b6108c5611fc7565b6108cd61204e565b565b5f5f5f5f5f5f61091b600a5f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120af565b90505f6109266120d3565b90508082141596505f6109376120f5565b90508761095d5742811161094b575f610958565b428161095791906129ce565b5b61095f565b5f5b96503073ffffffffffffffffffffffffffffffffffffffff1663fc3c55156040518163ffffffff1660e01b81526004016040805180830381865afa1580156109a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109cd9190612a15565b8096508197505050600a5f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054935050505091939590929450565b610a29611fc7565b5f829050610acf828273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a6a919061261f565b602060405180830381865afa158015610a85573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610aa99190612a53565b8373ffffffffffffffffffffffffffffffffffffffff166121439092919063ffffffff16565b7f0cf6181d5feb4fe14c1e91602a19d756b78752bc60f892b84fc1244720f752d183838373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b2b919061261f565b602060405180830381865afa158015610b46573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b6a9190612a53565b604051610b7993929190612a7e565b60405180910390a1505050565b610b8e611fc7565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeae808112158015610bc15750620151808113155b610c00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf790612afd565b60405180910390fd5b806005819055507f49d1150de83f2769fb2b2d93b58460229a19799deaf7017cab0d3d84933005a381604051610c369190612767565b60405180910390a150565b5f5f60149054906101000a900460ff16905090565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b600a602052805f5260405f205f915090505481565b610c9e611fc7565b610ca75f6121c2565b565b6009602052805f5260405f205f915054906101000a900460ff1681565b610cce612283565b610cd66122cd565b335f610ce06120d3565b905080610d29600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120af565b03610d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6090612b65565b60405180910390fd5b6008548114610d81575f600781905550806008819055505b600654600354600754610d949190612b83565b1115610dd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcc90612c00565b60405180910390fd5b5f8311610e17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0e90612c68565b60405180910390fd5b5f610e417f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2611198565b905080841015610e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7d90612cd0565b60405180910390fd5b80341015610ec9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec090612d38565b60405180910390fd5b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015610f2d573d5f5f3e3d5ffd5b5080341115610f86573373ffffffffffffffffffffffffffffffffffffffff166108fc8234610f5c91906129ce565b90811502906040515f60405180830381858888f19350505050158015610f84573d5f5f3e3d5ffd5b505b610fd43360035460025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166121439092919063ffffffff16565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc9163c3bdf7263acf1bb3d24072cc7da025f7181c31e2edc7e1673edf5e0ca32846003544260405161108f93929190612d56565b60405180910390a45042600a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060035460075f8282546110ed9190612b83565b9250508190555050506110fe61231c565b50565b611109611fc7565b611111612325565b565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f6111436120d3565b611189600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120af565b14159050919050565b60075481565b5f60095f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121990612dd5565b60405180910390fd5b60607f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036113a657600267ffffffffffffffff81111561129257611291612df3565b5b6040519080825280602002602001820160405280156112c05781602001602082028036833780820191505090505b5090507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2815f815181106112f7576112f6612e20565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160018151811061136757611366612e20565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611520565b600367ffffffffffffffff8111156113c1576113c0612df3565b5b6040519080825280602002602001820160405280156113ef5781602001602082028036833780820191505090505b50905082815f8151811061140657611405612e20565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061147557611474612e20565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16816002815181106114e5576114e4612e20565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505b5f7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff16631f00ca74600354846040518363ffffffff1660e01b815260040161157e929190612f04565b5f60405180830381865afa158015611598573d5f5f3e3d5ffd5b505050506040513d5f823e3d601f19601f820116820180604052508101906115c09190613055565b9050805f815181106115d5576115d4612e20565b5b602002602001015192505050919050565b6115ee611fc7565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361165c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611653906130e6565b60405180910390fd5b8060045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fbcef7086bf2852e467175e2832f3d1463f5a64d85d214039391ca92a72115f73816040516116cb919061261f565b60405180910390a150565b5f5f61171e600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120af565b90505f6117296120d3565b90508181111561173d575f92505050611788565b5f600554620151806001856117529190612b83565b61175c9190613104565b61176691906129ce565b9050428111611775575f611782565b428161178191906129ce565b5b93505050505b919050565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6117b9611fc7565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181e9061318f565b60405180910390fd5b8060095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f67821d5384bb02aab1ba91a477f89c9966cd30f475b02618bdc58712bca51275826040516118c1919061273f565b60405180910390a25050565b6118d5612283565b6118dd6122cd565b335f6118e76120d3565b905080611930600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120af565b03611970576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196790612b65565b60405180910390fd5b6008548114611988575f600781905550806008819055505b60065460035460075461199b9190612b83565b11156119dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d390612c00565b60405180910390fd5b60095f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611a65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5c90612dd5565b60405180910390fd5b5f8311611aa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9e90612c68565b60405180910390fd5b5f611ab185611198565b905080841015611af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aed90612cd0565b60405180910390fd5b5f8573ffffffffffffffffffffffffffffffffffffffff166370a0823160045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401611b51919061261f565b602060405180830381865afa158015611b6c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b909190612a53565b9050611be03360045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16848973ffffffffffffffffffffffffffffffffffffffff16612387909392919063ffffffff16565b81818773ffffffffffffffffffffffffffffffffffffffff166370a0823160045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401611c3c919061261f565b602060405180830381865afa158015611c57573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c7b9190612a53565b611c8591906129ce565b1015611cc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbd906131f7565b60405180910390fd5b611d143360035460025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166121439092919063ffffffff16565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc9163c3bdf7263acf1bb3d24072cc7da025f7181c31e2edc7e1673edf5e0ca328560035442604051611daf93929190612d56565b60405180910390a4505042600a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060035460075f828254611e0e9190612b83565b925050819055505050611e1f61231c565b5050565b611e2b611fc7565b5f8111611e6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e649061325f565b60405180910390fd5b806003819055507f94a67c48649d65d800c29b50c996c4ab2fc16305af2b38d8487abea4f3cf089981604051611ea391906125f7565b60405180910390a150565b60065481565b611ebc611fc7565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f2c575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611f23919061261f565b60405180910390fd5b611f35816121c2565b50565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f5f5f611f676120d3565b90506008548114611f8757600654611f7d6120f5565b9250925050611fc3565b60065460075410611fa5575f611f9b6120f5565b9250925050611fc3565b600754600654611fb591906129ce565b611fbd6120f5565b92509250505b9091565b611fcf612409565b73ffffffffffffffffffffffffffffffffffffffff16611fed611113565b73ffffffffffffffffffffffffffffffffffffffff161461204c57612010612409565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612043919061261f565b60405180910390fd5b565b612056612410565b5f5f60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612098612409565b6040516120a5919061261f565b60405180910390a1565b5f62015180600554836120c2919061327d565b6120cc91906132eb565b9050919050565b5f62015180600554426120e6919061327d565b6120f091906132eb565b905090565b5f5f6201518060055442612109919061327d565b61211391906132eb565b9050600554620151806001836121299190612b83565b6121339190613104565b61213d91906129ce565b91505090565b6121bd838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb858560405160240161217692919061331b565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612459565b505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61228b610c41565b156122cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c29061338c565b60405180910390fd5b565b600260015403612312576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612309906133f4565b60405180910390fd5b6002600181905550565b60018081905550565b61232d612283565b60015f60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612370612409565b60405161237d919061261f565b60405180910390a1565b612403848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016123bc93929190612a7e565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612459565b50505050565b5f33905090565b612418610c41565b612457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244e9061345c565b60405180910390fd5b565b5f5f60205f8451602086015f885af180612478576040513d5f823e3d81fd5b3d92505f519150505f82146124915760018114156124ac565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b156124ee57836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016124e5919061261f565b60405180910390fd5b50505050565b5f604051905090565b5f5ffd5b5f5ffd5b5f819050919050565b61251781612505565b8114612521575f5ffd5b50565b5f813590506125328161250e565b92915050565b5f6020828403121561254d5761254c6124fd565b5b5f61255a84828501612524565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61258c82612563565b9050919050565b61259c81612582565b81146125a6575f5ffd5b50565b5f813590506125b781612593565b92915050565b5f602082840312156125d2576125d16124fd565b5b5f6125df848285016125a9565b91505092915050565b6125f181612505565b82525050565b5f60208201905061260a5f8301846125e8565b92915050565b61261981612582565b82525050565b5f6020820190506126325f830184612610565b92915050565b5f8115159050919050565b61264c81612638565b82525050565b5f60a0820190506126655f830188612643565b61267260208301876125e8565b61267f60408301866125e8565b61268c60608301856125e8565b61269960808301846125e8565b9695505050505050565b5f5f604083850312156126b9576126b86124fd565b5b5f6126c6858286016125a9565b92505060206126d7858286016125a9565b9150509250929050565b5f819050919050565b6126f3816126e1565b81146126fd575f5ffd5b50565b5f8135905061270e816126ea565b92915050565b5f60208284031215612729576127286124fd565b5b5f61273684828501612700565b91505092915050565b5f6020820190506127525f830184612643565b92915050565b612761816126e1565b82525050565b5f60208201905061277a5f830184612758565b92915050565b61278981612638565b8114612793575f5ffd5b50565b5f813590506127a481612780565b92915050565b5f5f604083850312156127c0576127bf6124fd565b5b5f6127cd858286016125a9565b92505060206127de85828601612796565b9150509250929050565b5f5f604083850312156127fe576127fd6124fd565b5b5f61280b858286016125a9565b925050602061281c85828601612524565b9150509250929050565b5f819050919050565b5f61284961284461283f84612563565b612826565b612563565b9050919050565b5f61285a8261282f565b9050919050565b5f61286b82612850565b9050919050565b61287b81612861565b82525050565b5f6020820190506128945f830184612872565b92915050565b5f6040820190506128ad5f8301856125e8565b6128ba60208301846125e8565b9392505050565b5f82825260208201905092915050565b7f496e76616c6964206361700000000000000000000000000000000000000000005f82015250565b5f612905600b836128c1565b9150612910826128d1565b602082019050919050565b5f6020820190508181035f830152612932816128f9565b9050919050565b7f5a65726f206164647265737300000000000000000000000000000000000000005f82015250565b5f61296d600c836128c1565b915061297882612939565b602082019050919050565b5f6020820190508181035f83015261299a81612961565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6129d882612505565b91506129e383612505565b92508282039050818111156129fb576129fa6129a1565b5b92915050565b5f81519050612a0f8161250e565b92915050565b5f5f60408385031215612a2b57612a2a6124fd565b5b5f612a3885828601612a01565b9250506020612a4985828601612a01565b9150509250929050565b5f60208284031215612a6857612a676124fd565b5b5f612a7584828501612a01565b91505092915050565b5f606082019050612a915f830186612610565b612a9e6020830185612610565b612aab60408301846125e8565b949350505050565b7f496e76616c6964206f66667365740000000000000000000000000000000000005f82015250565b5f612ae7600e836128c1565b9150612af282612ab3565b602082019050919050565b5f6020820190508181035f830152612b1481612adb565b9050919050565b7f416c7265616479207377617070656420746f64617900000000000000000000005f82015250565b5f612b4f6015836128c1565b9150612b5a82612b1b565b602082019050919050565b5f6020820190508181035f830152612b7c81612b43565b9050919050565b5f612b8d82612505565b9150612b9883612505565b9250828201905080821115612bb057612baf6129a1565b5b92915050565b7f4461696c792063617020657863656564656400000000000000000000000000005f82015250565b5f612bea6012836128c1565b9150612bf582612bb6565b602082019050919050565b5f6020820190508181035f830152612c1781612bde565b9050919050565b7f616d6f756e74496e4d6178203d203000000000000000000000000000000000005f82015250565b5f612c52600f836128c1565b9150612c5d82612c1e565b602082019050919050565b5f6020820190508181035f830152612c7f81612c46565b9050919050565b7f616d6f756e74496e4d617820746f6f206c6f77000000000000000000000000005f82015250565b5f612cba6013836128c1565b9150612cc582612c86565b602082019050919050565b5f6020820190508181035f830152612ce781612cae565b9050919050565b7f496e73756666696369656e7420455448000000000000000000000000000000005f82015250565b5f612d226010836128c1565b9150612d2d82612cee565b602082019050919050565b5f6020820190508181035f830152612d4f81612d16565b9050919050565b5f606082019050612d695f8301866125e8565b612d7660208301856125e8565b612d8360408301846125e8565b949350505050565b7f546f6b656e41206e6f742077686974656c6973746564000000000000000000005f82015250565b5f612dbf6016836128c1565b9150612dca82612d8b565b602082019050919050565b5f6020820190508181035f830152612dec81612db3565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612e7f81612582565b82525050565b5f612e908383612e76565b60208301905092915050565b5f602082019050919050565b5f612eb282612e4d565b612ebc8185612e57565b9350612ec783612e67565b805f5b83811015612ef7578151612ede8882612e85565b9750612ee983612e9c565b925050600181019050612eca565b5085935050505092915050565b5f604082019050612f175f8301856125e8565b8181036020830152612f298184612ea8565b90509392505050565b5f5ffd5b5f601f19601f8301169050919050565b612f4f82612f36565b810181811067ffffffffffffffff82111715612f6e57612f6d612df3565b5b80604052505050565b5f612f806124f4565b9050612f8c8282612f46565b919050565b5f67ffffffffffffffff821115612fab57612faa612df3565b5b602082029050602081019050919050565b5f5ffd5b5f612fd2612fcd84612f91565b612f77565b90508083825260208201905060208402830185811115612ff557612ff4612fbc565b5b835b8181101561301e578061300a8882612a01565b845260208401935050602081019050612ff7565b5050509392505050565b5f82601f83011261303c5761303b612f32565b5b815161304c848260208601612fc0565b91505092915050565b5f6020828403121561306a576130696124fd565b5b5f82015167ffffffffffffffff81111561308757613086612501565b5b61309384828501613028565b91505092915050565b7f5a65726f206465706f73697400000000000000000000000000000000000000005f82015250565b5f6130d0600c836128c1565b91506130db8261309c565b602082019050919050565b5f6020820190508181035f8301526130fd816130c4565b9050919050565b5f61310e82612505565b915061311983612505565b925082820261312781612505565b9150828204841483151761313e5761313d6129a1565b5b5092915050565b7f746f6b656e203d207a65726f20616464726573730000000000000000000000005f82015250565b5f6131796014836128c1565b915061318482613145565b602082019050919050565b5f6020820190508181035f8301526131a68161316d565b9050919050565b7f7061796d656e74206661696c65640000000000000000000000000000000000005f82015250565b5f6131e1600e836128c1565b91506131ec826131ad565b602082019050919050565b5f6020820190508181035f83015261320e816131d5565b9050919050565b7f4d757374206265203e20300000000000000000000000000000000000000000005f82015250565b5f613249600b836128c1565b915061325482613215565b602082019050919050565b5f6020820190508181035f8301526132768161323d565b9050919050565b5f613287826126e1565b9150613292836126e1565b92508282019050828112155f8312168382125f8412151617156132b8576132b76129a1565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6132f582612505565b915061330083612505565b9250826133105761330f6132be565b5b828204905092915050565b5f60408201905061332e5f830185612610565b61333b60208301846125e8565b9392505050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f6133766010836128c1565b915061338182613342565b602082019050919050565b5f6020820190508181035f8301526133a38161336a565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f6133de601f836128c1565b91506133e9826133aa565b602082019050919050565b5f6020820190508181035f83015261340b816133d2565b9050919050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f6134466014836128c1565b915061345182613412565b602082019050919050565b5f6020820190508181035f8301526134738161343a565b905091905056fea264697066735822122046e52d8ec01f47a1d998a5858610f3eb1fd74ce2870a30d80c26739d7e1e411964736f6c634300081e0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $4,180.91 | 0.00790861 | $33.07 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.