Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 93 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap On The Othe... | 14295210 | 1062 days ago | IN | 0 ETH | 0.01160488 | ||||
Swap On The Othe... | 14295197 | 1062 days ago | IN | 0 ETH | 0.02225885 | ||||
Swap On The Othe... | 14295055 | 1062 days ago | IN | 0 ETH | 0.01101642 | ||||
Swap On The Othe... | 14293257 | 1062 days ago | IN | 0 ETH | 0.00707852 | ||||
Swap On The Othe... | 14292305 | 1062 days ago | IN | 0 ETH | 0.01421485 | ||||
Swap On The Othe... | 14291614 | 1062 days ago | IN | 0 ETH | 0.02009437 | ||||
Swap On The Othe... | 14291603 | 1062 days ago | IN | 0 ETH | 0.01556514 | ||||
Multicall | 14291572 | 1062 days ago | IN | 0 ETH | 0.01358112 | ||||
Swap On The Othe... | 14288992 | 1063 days ago | IN | 0 ETH | 0.0088952 | ||||
Swap On The Othe... | 14288621 | 1063 days ago | IN | 0 ETH | 0.00813131 | ||||
Swap On The Othe... | 14288596 | 1063 days ago | IN | 0 ETH | 0.00965389 | ||||
Multicall | 14288431 | 1063 days ago | IN | 0.47 ETH | 0.00356491 | ||||
Swap On The Othe... | 14288395 | 1063 days ago | IN | 0 ETH | 0.00508264 | ||||
Swap On The Othe... | 14288390 | 1063 days ago | IN | 0 ETH | 0.00735984 | ||||
Swap On The Othe... | 14287008 | 1063 days ago | IN | 0.8 ETH | 0.00590592 | ||||
Swap On The Othe... | 14286994 | 1063 days ago | IN | 0 ETH | 0.00436062 | ||||
Swap On The Othe... | 14286989 | 1063 days ago | IN | 0 ETH | 0.00674406 | ||||
Swap On The Othe... | 14286980 | 1063 days ago | IN | 0 ETH | 0.00567076 | ||||
Swap On The Othe... | 14286975 | 1063 days ago | IN | 0.5 ETH | 0.00918201 | ||||
Swap On The Othe... | 14286962 | 1063 days ago | IN | 0 ETH | 0.00603871 | ||||
Swap On The Othe... | 14286959 | 1063 days ago | IN | 0.01 ETH | 0.01006749 | ||||
Swap On The Othe... | 14286952 | 1063 days ago | IN | 0 ETH | 0.0063599 | ||||
Swap On The Othe... | 14286947 | 1063 days ago | IN | 0.01 ETH | 0.00889954 | ||||
Swap On The Othe... | 14286922 | 1063 days ago | IN | 0.33237859 ETH | 0.01125846 | ||||
Swap On The Othe... | 14280805 | 1064 days ago | IN | 0 ETH | 0.00648449 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
19622058 | 290 days ago | 0.02049384 ETH | ||||
19622058 | 290 days ago | 0.02049384 ETH | ||||
14295210 | 1062 days ago | 0.90948409 ETH | ||||
14295210 | 1062 days ago | 0.90948409 ETH | ||||
14295197 | 1062 days ago | 0.78683008 ETH | ||||
14295197 | 1062 days ago | 0.78683008 ETH | ||||
14295055 | 1062 days ago | 5.12175228 ETH | ||||
14295055 | 1062 days ago | 5.12175228 ETH | ||||
14293257 | 1062 days ago | 5.23386457 ETH | ||||
14293257 | 1062 days ago | 5.23386457 ETH | ||||
14291614 | 1062 days ago | 0.18732854 ETH | ||||
14291614 | 1062 days ago | 0.18732854 ETH | ||||
14288621 | 1063 days ago | 0.11521605 ETH | ||||
14288621 | 1063 days ago | 0.11521605 ETH | ||||
14288596 | 1063 days ago | 0.61438416 ETH | ||||
14288596 | 1063 days ago | 0.71414179 ETH | ||||
14288596 | 1063 days ago | 0.71414179 ETH | ||||
14288431 | 1063 days ago | 0.47 ETH | ||||
14288395 | 1063 days ago | 0.51411967 ETH | ||||
14288395 | 1063 days ago | 0.51411967 ETH | ||||
14287008 | 1063 days ago | 0.8 ETH | ||||
14286994 | 1063 days ago | 1.53851128 ETH | ||||
14286994 | 1063 days ago | 1.53851128 ETH | ||||
14286980 | 1063 days ago | 0.92301358 ETH | ||||
14286980 | 1063 days ago | 0.92301358 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
TOKordinator
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; pragma experimental ABIEncoderV2; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/ReentrancyGuard.sol'; import './interface/IWETH.sol'; import './interface/IUniswapV2Factory.sol'; import './interface/IHelioswapFactory.sol'; import './interface/ISwapRouter.sol'; import './base/Multicall.sol'; import './library/BytesLib.sol'; import './library/TransferHelper.sol'; // TOKordinator /// @title TokenStand Coordinator - Fantastic coordinator for swapping /// @author Anh Dao Tuan <[email protected]> contract TOKordinator is Ownable, ReentrancyGuard, Multicall { using SafeMath for uint256; using UniswapV2Library for IUniswapV2Pair; using HelioswapLibrary for IHelioswap; using BytesLib for bytes; IWETH internal weth = IWETH(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); IERC20 internal usdt = IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7); IUniswapV2Factory internal uniswapV2 = IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f); IUniswapV2Factory internal sushiswap = IUniswapV2Factory(0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac); IHelioswapFactory internal helioswap = IHelioswapFactory(0x9f07b190779d06e5f6CaCcAC251b240D8946741E); // UniswapV3 ISwapRouter internal swapRouter = ISwapRouter(0xE592427A0AEce92De3Edee1F18E0157C05861564); event SwappedOnTheOther( IERC20 indexed fromToken, IERC20 indexed destToken, uint256 fromTokenAmount, uint256 destTokenAmount, uint256 minReturn, uint256[] distribution ); event SwappedOnUniswapV3( IERC20 indexed fromToken, IERC20 indexed toToken, uint256 fromTokenAmount, uint256 destTokenAmount, uint256 minReturn ); uint256 internal constant DEXES_COUNT = 3; constructor() {} receive() external payable {} function swapOnTheOther( IERC20[][] calldata path, uint256 amount, uint256 minReturn, uint256[] memory distribution ) public payable nonReentrant returns (uint256 returnAmount) { function(IERC20[] calldata, uint256)[DEXES_COUNT] memory reserves = [ _swapOnUniswapV2, _swapOnSushiswap, _swapOnHelioswap ]; require( distribution.length <= reserves.length, 'TOKordinator: distribution array should not exceed reserves array size.' ); uint256 parts = 0; uint256 lastNonZeroIndex = 0; for (uint256 i = 0; i < distribution.length; i++) { if (distribution[i] > 0) { parts = parts.add(distribution[i]); lastNonZeroIndex = i; } } IERC20 fromToken = IERC20(path[lastNonZeroIndex][0]); IERC20 destToken = IERC20(path[lastNonZeroIndex][path[lastNonZeroIndex].length - 1]); if (parts == 0) { if (address(fromToken) == address(0)) { (bool success, ) = msg.sender.call{value: msg.value}(''); require(success, 'TOKordinator: transfer failed.'); return msg.value; } return amount; } if (address(fromToken) != address(0)) { TransferHelper.safeTransferFrom(address(fromToken), msg.sender, address(this), amount); } uint256 remainingAmount = address(fromToken) == address(0) ? address(this).balance : fromToken.balanceOf(address(this)); for (uint256 i = 0; i < distribution.length; i++) { if (distribution[i] == 0) { continue; } uint256 swapAmount = amount.mul(distribution[i]).div(parts); if (i == lastNonZeroIndex) { swapAmount = remainingAmount; } remainingAmount -= swapAmount; reserves[i](path[i], swapAmount); } returnAmount = address(destToken) == address(0) ? address(this).balance : destToken.balanceOf(address(this)); require(returnAmount >= minReturn, 'TOKordinator: return amount was not enough'); if (address(destToken) == address(0)) { msg.sender.transfer(returnAmount); } else { TransferHelper.safeTransfer(address(destToken), msg.sender, returnAmount); } uint256 remainingFromToken = address(fromToken) == address(0) ? address(this).balance : fromToken.balanceOf(address(this)); if (remainingFromToken > 0) { if (address(fromToken) == address(0)) { msg.sender.transfer(remainingFromToken); } else { TransferHelper.safeTransfer(address(fromToken), msg.sender, remainingFromToken); } } emit SwappedOnTheOther(fromToken, destToken, amount, returnAmount, minReturn, distribution); } function getUniswapV2AmountsOut(uint256 amountIn, IERC20[] memory path) public view returns (uint256[] memory) { IERC20[] memory realPath = formatPath(path); return UniswapV2Library.getAmountsOut(uniswapV2, amountIn, realPath); } function getSushiswapAmountsOut(uint256 amountIn, IERC20[] memory path) public view returns (uint256[] memory) { IERC20[] memory realPath = formatPath(path); return UniswapV2Library.getAmountsOut(sushiswap, amountIn, realPath); } function getHelioswapAmountsOut(uint256 amountIn, IERC20[] memory path) public view returns (uint256[] memory) { return HelioswapLibrary.getReturns(helioswap, amountIn, path); } function formatPath(IERC20[] memory path) public view returns (IERC20[] memory realPath) { realPath = new IERC20[](path.length); for (uint256 i; i < path.length; i++) { if (address(path[i]) == address(0)) { realPath[i] = weth; continue; } realPath[i] = path[i]; } } function _swapOnUniswapV2(IERC20[] calldata path, uint256 amount) internal { IERC20[] memory realPath = formatPath(path); IUniswapV2Pair pair = uniswapV2.getPair(realPath[0], realPath[1]); uint256[] memory amounts = UniswapV2Library.getAmountsOut(uniswapV2, amount, realPath); if (address(path[0]) == address(0)) { weth.deposit{value: amounts[0]}(); assert(weth.transfer(address(pair), amounts[0])); } else { TransferHelper.safeTransfer(address(path[0]), address(pair), amounts[0]); } for (uint256 i; i < realPath.length - 1; i++) { (address input, address output) = (address(realPath[i]), address(realPath[i + 1])); (address token0, ) = sortTokens(input, output); uint256 amountOut = amounts[i + 1]; (uint256 amount0Out, uint256 amount1Out) = input == token0 ? (uint256(0), amountOut) : (amountOut, uint256(0)); address to = i < realPath.length - 2 ? address(uniswapV2.getPair(IERC20(output), realPath[i + 2])) : address(this); uniswapV2.getPair(IERC20(input), IERC20(output)).swap(amount0Out, amount1Out, to, new bytes(0)); } if (address(path[path.length - 1]) == address(0)) { weth.withdraw(weth.balanceOf(address(this))); } } function _swapOnSushiswap(IERC20[] calldata path, uint256 amount) internal { IERC20[] memory realPath = formatPath(path); IUniswapV2Pair pair = sushiswap.getPair(realPath[0], realPath[1]); uint256[] memory amounts = UniswapV2Library.getAmountsOut(sushiswap, amount, realPath); if (address(path[0]) == address(0)) { weth.deposit{value: amounts[0]}(); assert(weth.transfer(address(pair), amounts[0])); } else { TransferHelper.safeTransfer(address(path[0]), address(pair), amounts[0]); } for (uint256 i; i < realPath.length - 1; i++) { (address input, address output) = (address(realPath[i]), address(realPath[i + 1])); (address token0, ) = sortTokens(input, output); uint256 amountOut = amounts[i + 1]; (uint256 amount0Out, uint256 amount1Out) = input == token0 ? (uint256(0), amountOut) : (amountOut, uint256(0)); address to = i < realPath.length - 2 ? address(sushiswap.getPair(IERC20(output), realPath[i + 2])) : address(this); sushiswap.getPair(IERC20(input), IERC20(output)).swap(amount0Out, amount1Out, to, new bytes(0)); } if (address(path[path.length - 1]) == address(0)) { weth.withdraw(weth.balanceOf(address(this))); } } function _swapOnHelioswapInternal( IERC20 fromToken, IERC20 destToken, uint256 amount ) internal { (IHelioswap pool,,,,,) = helioswap.pools(fromToken, destToken); uint256 returnAmount = pool.getReturn(fromToken, destToken, amount); if (address(fromToken) != address(0)) { if (fromToken == usdt) { TransferHelper.safeApprove(address(fromToken), address(pool), 0); } TransferHelper.safeApprove(address(fromToken), address(pool), amount); pool.swap(fromToken, destToken, amount, returnAmount); } else { pool.swap{value: amount}(fromToken, destToken, amount, returnAmount); } } function _swapOnHelioswap(IERC20[] calldata path, uint256 amount) internal { uint256[] memory amounts = HelioswapLibrary.getReturns(helioswap, amount, path); for (uint256 i; i < path.length - 1; i++) { _swapOnHelioswapInternal(path[i], path[i + 1], amounts[i]); } } function swapOnUniswapV3( IERC20 tokenIn, bytes memory path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum ) public payable nonReentrant returns (uint256 returnAmount) { if (address(tokenIn) == address(0)) { require(msg.value >= amountIn, 'TOKordinator: value does not enough'); } IERC20 tokenOut = IERC20(path.getTokenOut()); ISwapRouter.ExactInputParams memory params = ISwapRouter.ExactInputParams( path, recipient, deadline, amountIn, amountOutMinimum ); if (address(tokenIn) == address(0)) { returnAmount = swapRouter.exactInput{value: amountIn}(params); } else { TransferHelper.safeTransferFrom(address(tokenIn), msg.sender, address(this), amountIn); if (tokenIn == usdt) { TransferHelper.safeApprove(address(tokenIn), address(swapRouter), 0); } TransferHelper.safeApprove(address(tokenIn), address(swapRouter), amountIn); returnAmount = swapRouter.exactInput(params); } swapRouter.refundETH(); emit SwappedOnUniswapV3(tokenIn, tokenOut, amountIn, returnAmount, amountOutMinimum); } // emergency case function rescueFund(IERC20 token) public onlyOwner { if (address(token) == address(0)) { (bool success, ) = msg.sender.call{value: address(this).balance}(''); require(success, 'TOKordinator: fail to rescue Ether'); } else { TransferHelper.safeTransfer(address(token), msg.sender, token.balanceOf(address(this))); } } // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'TOKordinator: identical addresses'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'TOKordinator: zero address'); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../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. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { _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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; abstract contract IWETH is IERC20 { function deposit() virtual external payable; function withdraw(uint256 amount) virtual external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; import "./IUniswapV2Pair.sol"; interface IUniswapV2Factory { function getPair(IERC20 tokenA, IERC20 tokenB) external view returns (IUniswapV2Pair pair); } library UniswapV2Library { using SafeMath for uint256; // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) { require(amountIn > 0, 'TOKordinator: insufficient input amount'); require(reserveIn > 0 && reserveOut > 0, 'TOKordinator: insufficient liquidity'); uint amountInWithFee = amountIn.mul(997); uint numerator = amountInWithFee.mul(reserveOut); uint denominator = reserveIn.mul(1000).add(amountInWithFee); amountOut = numerator / denominator; } // performs chained getAmountOut calculations on any number of pairs function getAmountsOut(IUniswapV2Factory factory, uint amountIn, IERC20[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'TOKordinator: invalid path'); amounts = new uint[](path.length); amounts[0] = amountIn; for (uint i; i < path.length - 1; i++) { IUniswapV2Pair pair = factory.getPair(path[i], path[i + 1]); (uint reserveA, uint reserveB, ) = pair.getReserves(); (uint reserveIn, uint reserveOut) = address(path[i]) < address(path[i + 1]) ? (reserveA, reserveB) : (reserveB, reserveA); amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; import "./IHelioswap.sol"; interface IHelioswapFactory { function pools( IERC20 token1, IERC20 token2 ) external view returns (IHelioswap, uint256, uint256, uint256, uint256[2] memory, uint256[2] memory); } library HelioswapLibrary { function getReturns(IHelioswapFactory helioswapFactory, uint amountIn, IERC20[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'TOKordinator: invalid path'); amounts = new uint[](path.length); amounts[0] = amountIn; for (uint i; i < path.length - 1; i++) { (IHelioswap pool,,,,,) = helioswapFactory.pools(path[i], path[i + 1]); amounts[i + 1] = pool.getReturn(path[i], path[i + 1], amounts[i]); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; pragma experimental ABIEncoderV2; interface ISwapRouter { struct ExactInputSingleParams { address tokenIn; address tokenOut; uint24 fee; address recipient; uint256 deadline; uint256 amountIn; uint256 amountOutMinimum; uint160 sqrtPriceLimitX96; } /// @notice Swaps `amountIn` of one token for as much as possible of another token /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata /// @return amountOut The amount of the received token function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut); struct ExactInputParams { bytes path; address recipient; uint256 deadline; uint256 amountIn; uint256 amountOutMinimum; } /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata /// @return amountOut The amount of the received token function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut); function refundETH() external payable; }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.6.12; pragma experimental ABIEncoderV2; import '../interface/IMulticall.sol'; /// @title Multicall /// @notice Enables calling multiple methods in a single call to the contract abstract contract Multicall is IMulticall { /// @inheritdoc IMulticall function multicall(bytes[] calldata data) external payable override returns (bytes[] memory results) { results = new bytes[](data.length); for (uint256 i = 0; i < data.length; i++) { (bool success, bytes memory result) = address(this).delegatecall(data[i]); if (!success) { // Next 5 lines from https://ethereum.stackexchange.com/a/83577 if (result.length < 68) revert(); assembly { result := add(result, 0x04) } revert(abi.decode(result, (string))); } results[i] = result; } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; library BytesLib { function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) { require(_start + 20 >= _start, 'TOKordinator: toAddress_overflow'); require(_bytes.length >= _start + 20, 'TOKordinator: toAddress_outOfBounds'); address tempAddress; assembly { tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000) } return tempAddress; } function getTokenOut(bytes memory _bytes) internal pure returns (address) { return toAddress(_bytes, _bytes.length - 20); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.6.0; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeApprove: approve failed' ); } function safeTransfer( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeTransfer: transfer failed' ); } function safeTransferFrom( address token, address from, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::transferFrom: transferFrom failed' ); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; interface IUniswapV2Pair { function getReserves() external view returns(uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; interface IHelioswap { function getReturn( IERC20 src, IERC20 dst, uint256 amount ) external view returns (uint256); function swap( IERC20 src, IERC20 dst, uint256 amount, uint256 minReturn ) external payable returns (uint256 result); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.6.12; pragma experimental ABIEncoderV2; /// @title Multicall interface /// @notice Enables calling multiple methods in a single call to the contract interface IMulticall { /// @notice Call multiple functions in the current contract and return the data from all of them if they all succeed /// @dev The `msg.value` should not be trusted for any method callable from multicall. /// @param data The encoded function data for each of the calls to make to this contract /// @return results The results from each of the calls passed in via data function multicall(bytes[] calldata data) external payable returns (bytes[] memory results); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"fromToken","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"destToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"destTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minReturn","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"distribution","type":"uint256[]"}],"name":"SwappedOnTheOther","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"fromToken","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"toToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"destTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minReturn","type":"uint256"}],"name":"SwappedOnUniswapV3","type":"event"},{"inputs":[{"internalType":"contract IERC20[]","name":"path","type":"address[]"}],"name":"formatPath","outputs":[{"internalType":"contract IERC20[]","name":"realPath","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"contract IERC20[]","name":"path","type":"address[]"}],"name":"getHelioswapAmountsOut","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"contract IERC20[]","name":"path","type":"address[]"}],"name":"getSushiswapAmountsOut","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"contract IERC20[]","name":"path","type":"address[]"}],"name":"getUniswapV2AmountsOut","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"rescueFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20[][]","name":"path","type":"address[][]"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"distribution","type":"uint256[]"}],"name":"swapOnTheOther","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenIn","type":"address"},{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"}],"name":"swapOnUniswapV3","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600280546001600160a01b031990811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21790915560038054821673dac17f958d2ee523a2206206994597c13d831ec7179055600480548216735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f17905560058054821673c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac179055600680548216739f07b190779d06e5f6caccac251b240d8946741e1790556007805490911673e592427a0aece92de3edee1f18e0157c05861564179055348015620000d157600080fd5b506000620000de62000132565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001805562000136565b3390565b6137d680620001466000396000f3fe6080604052600436106100a05760003560e01c806397ccb45d1161006457806397ccb45d1461015b578063a22363c61461017b578063ac9650d8146101a8578063b8c6fd84146101c8578063c58ae497146101e8578063f2fde38b146101fb576100a7565b80631ac80d8e146100ac5780636d9c6ff5146100d5578063715018a614610102578063743addfe146101195780638da5cb5b14610139576100a7565b366100a757005b600080fd5b6100bf6100ba366004612e92565b61021b565b6040516100cc91906134b7565b60405180910390f35b3480156100e157600080fd5b506100f56100f0366004613050565b610520565b6040516100cc91906131e7565b34801561010e57600080fd5b50610117610551565b005b34801561012557600080fd5b506100f5610134366004613050565b61060f565b34801561014557600080fd5b5061014e610636565b6040516100cc919061310d565b34801561016757600080fd5b506100f5610176366004613050565b610645565b34801561018757600080fd5b5061019b610196366004612e40565b610666565b6040516100cc919061319a565b6101bb6101b6366004612e01565b610777565b6040516100cc919061313a565b3480156101d457600080fd5b506101176101e3366004612d14565b6108b6565b6100bf6101f6366004612d30565b610a43565b34801561020757600080fd5b50610117610216366004612d14565b61104a565b600060026001541415610275576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556001600160a01b0387166102b157823410156102b15760405162461bcd60e51b81526004016102a8906132f5565b60405180910390fd5b60006102bc8761115e565b6040805160a0810182528981526001600160a01b03808a166020830152918101889052606081018790526080810186905291925089166103815760075460405163c04b8d5960e01b81526001600160a01b039091169063c04b8d5990879061032890859060040161345f565b6020604051808303818588803b15801561034157600080fd5b505af1158015610355573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061037a9190613038565b9250610459565b61038d89333088611176565b6003546001600160a01b038a8116911614156103bc576007546103bc908a906001600160a01b031660006112d2565b6007546103d4908a906001600160a01b0316876112d2565b60075460405163c04b8d5960e01b81526001600160a01b039091169063c04b8d599061040490849060040161345f565b602060405180830381600087803b15801561041e57600080fd5b505af1158015610432573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104569190613038565b92505b600760009054906101000a90046001600160a01b03166001600160a01b03166312210e8a6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156104a957600080fd5b505af11580156104bd573d6000803e3d6000fd5b50505050816001600160a01b0316896001600160a01b03167f60d926fc4644f05557094a41db181011fc004a5fc911d443c9170fbc95decb28878688604051610508939291906134f7565b60405180910390a35050600180559695505050505050565b6060600061052d83610666565b600454909150610547906001600160a01b03168583611425565b9150505b92915050565b6105596116dc565b6001600160a01b031661056a610636565b6001600160a01b0316146105c5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6060600061061c83610666565b600554909150610547906001600160a01b03168583611425565b6000546001600160a01b031690565b60065460609061065f906001600160a01b031684846116e0565b9392505050565b606081516001600160401b038111801561067f57600080fd5b506040519080825280602002602001820160405280156106a9578160200160208202803683370190505b50905060005b82518110156107715760006001600160a01b03168382815181106106cf57fe5b60200260200101516001600160a01b031614156107285760025482516001600160a01b039091169083908390811061070357fe5b60200260200101906001600160a01b031690816001600160a01b031681525050610769565b82818151811061073457fe5b602002602001015182828151811061074857fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6001016106af565b50919050565b6060816001600160401b038111801561078f57600080fd5b506040519080825280602002602001820160405280156107c357816020015b60608152602001906001900390816107ae5790505b50905060005b828110156108af57600080308686858181106107e157fe5b90506020028101906107f39190613578565b6040516108019291906130fa565b600060405180830381855af49150503d806000811461083c576040519150601f19603f3d011682016040523d82523d6000602084013e610841565b606091505b50915091508161088d5760448151101561085a57600080fd5b600481019050808060200190518101906108749190612fc6565b60405162461bcd60e51b81526004016102a89190613261565b8084848151811061089a57fe5b602090810291909101015250506001016107c9565b5092915050565b6108be6116dc565b6001600160a01b03166108cf610636565b6001600160a01b03161461092a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166109ba576000336001600160a01b0316476040516109519061310a565b60006040518083038185875af1925050503d806000811461098e576040519150601f19603f3d011682016040523d82523d6000602084013e610993565b606091505b50509050806109b45760405162461bcd60e51b81526004016102a890613379565b50610a40565b610a408133836001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016109eb919061310d565b60206040518083038186803b158015610a0357600080fd5b505afa158015610a17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3b9190613038565b611966565b50565b600060026001541415610a9d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015560408051606081018252611ab281526120c4602082015261259291810191909152825160031015610ae55760405162461bcd60e51b81526004016102a8906133f2565b60008060005b8551811015610b44576000868281518110610b0257fe5b60200260200101511115610b3c57610b36868281518110610b1f57fe5b60200260200101518461266190919063ffffffff16565b92508091505b600101610aeb565b506000898983818110610b5357fe5b9050602002810190610b659190613532565b6000818110610b7057fe5b9050602002016020810190610b859190612d14565b905060008a8a84818110610b9557fe5b9050602002810190610ba79190613532565b60018d8d87818110610bb557fe5b9050602002810190610bc79190613532565b905003818110610bd357fe5b9050602002016020810190610be89190612d14565b905083610c94576001600160a01b038216610c87576000336001600160a01b031634604051610c169061310a565b60006040518083038185875af1925050503d8060008114610c53576040519150601f19603f3d011682016040523d82523d6000602084013e610c58565b606091505b5050905080610c795760405162461bcd60e51b81526004016102a890613274565b34965050505050505061103d565b889550505050505061103d565b6001600160a01b03821615610caf57610caf8233308c611176565b60006001600160a01b03831615610d41576040516370a0823160e01b81526001600160a01b038416906370a0823190610cec90309060040161310d565b60206040518083038186803b158015610d0457600080fd5b505afa158015610d18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3c9190613038565b610d43565b475b905060005b8851811015610dfb57888181518110610d5d57fe5b602002602001015160001415610d7257610df3565b6000610da487610d9e8c8581518110610d8757fe5b60200260200101518f6126bb90919063ffffffff16565b90612714565b905085821415610db15750815b8083039250610df18e8e84818110610dc557fe5b9050602002810190610dd79190613532565b838b8660038110610de457fe5b602002015163ffffffff16565b505b600101610d48565b506001600160a01b03821615610e8c576040516370a0823160e01b81526001600160a01b038316906370a0823190610e3790309060040161310d565b60206040518083038186803b158015610e4f57600080fd5b505afa158015610e63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e879190613038565b610e8e565b475b965088871015610eb05760405162461bcd60e51b81526004016102a8906132ab565b6001600160a01b038216610ef157604051339088156108fc029089906000818181858888f19350505050158015610eeb573d6000803e3d6000fd5b50610efc565b610efc823389611966565b60006001600160a01b03841615610f8e576040516370a0823160e01b81526001600160a01b038516906370a0823190610f3990309060040161310d565b60206040518083038186803b158015610f5157600080fd5b505afa158015610f65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f899190613038565b610f90565b475b90508015610fe4576001600160a01b038416610fd957604051339082156108fc029083906000818181858888f19350505050158015610fd3573d6000803e3d6000fd5b50610fe4565b610fe4843383611966565b826001600160a01b0316846001600160a01b03167f10340f41b96c1445a8343ac4781ea66d079a698e9313f684bc0f22cdf0d4129d8d8b8e8e60405161102d949392919061350d565b60405180910390a3505050505050505b6001805595945050505050565b6110526116dc565b6001600160a01b0316611063610636565b6001600160a01b0316146110be576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166111035760405162461bcd60e51b81526004018080602001828103825260268152602001806136636026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061116e82601484510361277b565b90505b919050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b178152925182516000948594938a169392918291908083835b602083106111fa5780518252601f1990920191602091820191016111db565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461125c576040519150601f19603f3d011682016040523d82523d6000602084013e611261565b606091505b509150915081801561128f57508051158061128f575080806020019051602081101561128c57600080fd5b50515b6112ca5760405162461bcd60e51b81526004018080602001828103825260318152602001806136896031913960400191505060405180910390fd5b505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b1781529251825160009485949389169392918291908083835b6020831061134e5780518252601f19909201916020918201910161132f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146113b0576040519150601f19603f3d011682016040523d82523d6000602084013e6113b5565b606091505b50915091508180156113e35750805115806113e357508080602001905160208110156113e057600080fd5b50515b61141e5760405162461bcd60e51b815260040180806020018281038252602b815260200180613722602b913960400191505060405180910390fd5b5050505050565b606060028251101561147e576040805162461bcd60e51b815260206004820152601a60248201527f544f4b6f7264696e61746f723a20696e76616c69642070617468000000000000604482015290519081900360640190fd5b81516001600160401b038111801561149557600080fd5b506040519080825280602002602001820160405280156114bf578160200160208202803683370190505b50905082816000815181106114d057fe5b60200260200101818152505060005b60018351038110156116d4576000856001600160a01b031663e6a4390585848151811061150857fe5b602002602001015186856001018151811061151f57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561157457600080fd5b505afa158015611588573d6000803e3d6000fd5b505050506040513d602081101561159e57600080fd5b505160408051630240bc6b60e21b8152905191925060009182916001600160a01b03851691630902f1ac91600480820192606092909190829003018186803b1580156115e957600080fd5b505afa1580156115fd573d6000803e3d6000fd5b505050506040513d606081101561161357600080fd5b50805160209091015187516dffffffffffffffffffffffffffff928316945091169150600090819088906001880190811061164a57fe5b60200260200101516001600160a01b031688878151811061166757fe5b60200260200101516001600160a01b031610611684578284611687565b83835b915091506116a987878151811061169a57fe5b60200260200101518383612828565b8787600101815181106116b857fe5b60209081029190910101525050600190930192506114df915050565b509392505050565b3390565b6060600282511015611739576040805162461bcd60e51b815260206004820152601a60248201527f544f4b6f7264696e61746f723a20696e76616c69642070617468000000000000604482015290519081900360640190fd5b81516001600160401b038111801561175057600080fd5b5060405190808252806020026020018201604052801561177a578160200160208202803683370190505b509050828160008151811061178b57fe5b60200260200101818152505060005b60018351038110156116d4576000856001600160a01b031663901754d78584815181106117c357fe5b60200260200101518685600101815181106117da57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b03168152602001925050506101006040518083038186803b15801561183057600080fd5b505afa158015611844573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061010081101561186a57600080fd5b505184519091506001600160a01b03821690631e1401f89086908590811061188e57fe5b60200260200101518685600101815181106118a557fe5b60200260200101518686815181106118b957fe5b60200260200101516040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b03168152602001828152602001935050505060206040518083038186803b15801561191557600080fd5b505afa158015611929573d6000803e3d6000fd5b505050506040513d602081101561193f57600080fd5b5051835184906001850190811061195257fe5b60209081029190910101525060010161179a565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1781529251825160009485949389169392918291908083835b602083106119e25780518252601f1990920191602091820191016119c3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611a44576040519150601f19603f3d011682016040523d82523d6000602084013e611a49565b606091505b5091509150818015611a77575080511580611a775750808060200190516020811015611a7457600080fd5b50515b61141e5760405162461bcd60e51b815260040180806020018281038252602d81526020018061374d602d913960400191505060405180910390fd5b6000611af084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061066692505050565b60045481519192506000916001600160a01b039091169063e6a439059084908490611b1757fe5b602002602001015184600181518110611b2c57fe5b60200260200101516040518363ffffffff1660e01b8152600401611b519291906131fa565b60206040518083038186803b158015611b6957600080fd5b505afa158015611b7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba19190612faa565b600454909150600090611bbe906001600160a01b03168585611425565b9050600086868281611bcc57fe5b9050602002016020810190611be19190612d14565b6001600160a01b03161415611d045760025481516001600160a01b039091169063d0e30db0908390600090611c1257fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611c4557600080fd5b505af1158015611c59573d6000803e3d6000fd5b505060025484516001600160a01b03909116935063a9059cbb92508591508490600090611c8257fe5b60200260200101516040518363ffffffff1660e01b8152600401611ca7929190613121565b602060405180830381600087803b158015611cc157600080fd5b505af1158015611cd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf99190612e72565b611cff57fe5b611d44565b611d4486866000818110611d1457fe5b9050602002016020810190611d299190612d14565b8383600081518110611d3757fe5b6020026020010151611966565b60005b6001845103811015611faf57600080858381518110611d6257fe5b6020026020010151868460010181518110611d7957fe5b6020026020010151915091506000611d918383612900565b5090506000858560010181518110611da557fe5b60200260200101519050600080836001600160a01b0316866001600160a01b031614611dd357826000611dd7565b6000835b91509150600060028b51038810611dee5730611e8b565b6004548b516001600160a01b039091169063e6a439059088908e9060028d01908110611e1657fe5b60200260200101516040518363ffffffff1660e01b8152600401611e3b9291906131fa565b60206040518083038186803b158015611e5357600080fd5b505afa158015611e67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8b9190612faa565b6004805460405163e6a4390560e01b81529293506001600160a01b03169163e6a4390591611ebd918b918b91016131fa565b60206040518083038186803b158015611ed557600080fd5b505afa158015611ee9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0d9190612faa565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015611f4a576020820181803683370190505b506040518563ffffffff1660e01b8152600401611f6a94939291906134c0565b600060405180830381600087803b158015611f8457600080fd5b505af1158015611f98573d6000803e3d6000fd5b505060019099019850611d47975050505050505050565b50600086866000198101818110611fc257fe5b9050602002016020810190611fd79190612d14565b6001600160a01b031614156112ca576002546040516370a0823160e01b81526001600160a01b0390911690632e1a7d4d9082906370a082319061201e90309060040161310d565b60206040518083038186803b15801561203657600080fd5b505afa15801561204a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206e9190613038565b6040518263ffffffff1660e01b815260040161208a91906134b7565b600060405180830381600087803b1580156120a457600080fd5b505af11580156120b8573d6000803e3d6000fd5b50505050505050505050565b600061210284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061066692505050565b60055481519192506000916001600160a01b039091169063e6a43905908490849061212957fe5b60200260200101518460018151811061213e57fe5b60200260200101516040518363ffffffff1660e01b81526004016121639291906131fa565b60206040518083038186803b15801561217b57600080fd5b505afa15801561218f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121b39190612faa565b6005549091506000906121d0906001600160a01b03168585611425565b90506000868682816121de57fe5b90506020020160208101906121f39190612d14565b6001600160a01b031614156123165760025481516001600160a01b039091169063d0e30db090839060009061222457fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561225757600080fd5b505af115801561226b573d6000803e3d6000fd5b505060025484516001600160a01b03909116935063a9059cbb9250859150849060009061229457fe5b60200260200101516040518363ffffffff1660e01b81526004016122b9929190613121565b602060405180830381600087803b1580156122d357600080fd5b505af11580156122e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230b9190612e72565b61231157fe5b612326565b61232686866000818110611d1457fe5b60005b6001845103811015611faf5760008085838151811061234457fe5b602002602001015186846001018151811061235b57fe5b60200260200101519150915060006123738383612900565b509050600085856001018151811061238757fe5b60200260200101519050600080836001600160a01b0316866001600160a01b0316146123b5578260006123b9565b6000835b91509150600060028b510388106123d0573061246d565b6005548b516001600160a01b039091169063e6a439059088908e9060028d019081106123f857fe5b60200260200101516040518363ffffffff1660e01b815260040161241d9291906131fa565b60206040518083038186803b15801561243557600080fd5b505afa158015612449573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061246d9190612faa565b60055460405163e6a4390560e01b81529192506001600160a01b03169063e6a43905906124a0908a908a906004016131fa565b60206040518083038186803b1580156124b857600080fd5b505afa1580156124cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f09190612faa565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f19166020018201604052801561252d576020820181803683370190505b506040518563ffffffff1660e01b815260040161254d94939291906134c0565b600060405180830381600087803b15801561256757600080fd5b505af115801561257b573d6000803e3d6000fd5b505060019099019850612329975050505050505050565b60006125e7600660009054906101000a90046001600160a01b0316838686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506116e092505050565b905060005b600019840181101561141e5761265985858381811061260757fe5b905060200201602081019061261c9190612d14565b86868460010181811061262b57fe5b90506020020160208101906126409190612d14565b84848151811061264c57fe5b602002602001015161298a565b6001016125ec565b60008282018381101561065f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826126ca5750600061054b565b828202828482816126d757fe5b041461065f5760405162461bcd60e51b81526004018080602001828103825260218152602001806137016021913960400191505060405180910390fd5b600080821161276a576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161277357fe5b049392505050565b6000818260140110156127d5576040805162461bcd60e51b815260206004820181905260248201527f544f4b6f7264696e61746f723a20746f416464726573735f6f766572666c6f77604482015290519081900360640190fd5b81601401835110156128185760405162461bcd60e51b81526004018080602001828103825260238152602001806136ba6023913960400191505060405180910390fd5b500160200151600160601b900490565b60008084116128685760405162461bcd60e51b815260040180806020018281038252602781526020018061377a6027913960400191505060405180910390fd5b6000831180156128785750600082115b6128b35760405162461bcd60e51b81526004018080602001828103825260248152602001806136dd6024913960400191505060405180910390fd5b60006128c1856103e56126bb565b905060006128cf82856126bb565b905060006128e9836128e3886103e86126bb565b90612661565b90508082816128f457fe5b04979650505050505050565b600080826001600160a01b0316846001600160a01b031614156129355760405162461bcd60e51b81526004016102a890613338565b826001600160a01b0316846001600160a01b031610612955578284612958565b83835b90925090506001600160a01b0382166129835760405162461bcd60e51b81526004016102a8906133bb565b9250929050565b60065460405163901754d760e01b81526000916001600160a01b03169063901754d7906129bd90879087906004016131fa565b6101006040518083038186803b1580156129d657600080fd5b505afa1580156129ea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0e9190612f45565b505050505090506000816001600160a01b0316631e1401f88686866040518463ffffffff1660e01b8152600401612a4793929190613214565b60206040518083038186803b158015612a5f57600080fd5b505afa158015612a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a979190613038565b90506001600160a01b03851615612b5f576003546001600160a01b0386811691161415612aca57612aca858360006112d2565b612ad58583856112d2565b604051637f0148ab60e11b81526001600160a01b0383169063fe02915690612b07908890889088908790600401613238565b602060405180830381600087803b158015612b2157600080fd5b505af1158015612b35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b599190613038565b5061141e565b604051637f0148ab60e11b81526001600160a01b0383169063fe029156908590612b93908990899084908890600401613238565b6020604051808303818588803b158015612bac57600080fd5b505af1158015612bc0573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906112ca9190613038565b80356111718161364d565b60008083601f840112612c01578182fd5b5081356001600160401b03811115612c17578182fd5b602083019150836020808302850101111561298357600080fd5b600082601f830112612c41578081fd5b81356020612c56612c51836135df565b6135bc565b8281528181019085830183850287018401881015612c72578586fd5b855b85811015612c99578135612c878161364d565b84529284019290840190600101612c74565b5090979650505050505050565b600082601f830112612cb6578081fd5b604051604081018181106001600160401b0382111715612cd257fe5b8060405250808385604086011115612ce8578384fd5b835b6002811015612d09578151835260209283019290910190600101612cea565b509195945050505050565b600060208284031215612d25578081fd5b813561065f8161364d565b600080600080600060808688031215612d47578081fd5b85356001600160401b0380821115612d5d578283fd5b612d6989838a01612bf0565b90975095506020888101359550604089013594509150606088013581811115612d90578384fd5b88019050601f81018913612da2578283fd5b8035612db0612c51826135df565b81815283810190838501858402850186018d1015612dcc578687fd5b8694505b83851015612dee578035835260019490940193918501918501612dd0565b5080955050505050509295509295909350565b60008060208385031215612e13578182fd5b82356001600160401b03811115612e28578283fd5b612e3485828601612bf0565b90969095509350505050565b600060208284031215612e51578081fd5b81356001600160401b03811115612e66578182fd5b61054784828501612c31565b600060208284031215612e83578081fd5b8151801515811461065f578182fd5b60008060008060008060c08789031215612eaa578384fd5b8635612eb58161364d565b955060208701356001600160401b03811115612ecf578485fd5b8701601f81018913612edf578485fd5b8035612eed612c51826135fc565b8181528a6020838501011115612f01578687fd5b816020840160208301379081016020018690529550612f24905060408801612be5565b9350606087013592506080870135915060a087013590509295509295509295565b6000806000806000806101008789031215612f5e578384fd5b8651612f698161364d565b80965050602087015194506040870151935060608701519250612f8f8860808901612ca6565b9150612f9e8860c08901612ca6565b90509295509295509295565b600060208284031215612fbb578081fd5b815161065f8161364d565b600060208284031215612fd7578081fd5b81516001600160401b03811115612fec578182fd5b8201601f81018413612ffc578182fd5b805161300a612c51826135fc565b81815285602083850101111561301e578384fd5b61302f82602083016020860161361d565b95945050505050565b600060208284031215613049578081fd5b5051919050565b60008060408385031215613062578182fd5b8235915060208301356001600160401b0381111561307e578182fd5b61308a85828601612c31565b9150509250929050565b6000815180845260208085019450808401835b838110156130c3578151875295820195908201906001016130a7565b509495945050505050565b600081518084526130e681602086016020860161361d565b601f01601f19169290920160200192915050565b6000828483379101908152919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6000602080830181845280855180835260408601915060408482028701019250838701855b8281101561318d57603f1988860301845261317b8583516130ce565b9450928501929085019060010161315f565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156131db5783516001600160a01b0316835292840192918401916001016131b6565b50909695505050505050565b60006020825261065f6020830184613094565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b60006020825261065f60208301846130ce565b6020808252601e908201527f544f4b6f7264696e61746f723a207472616e73666572206661696c65642e0000604082015260600190565b6020808252602a908201527f544f4b6f7264696e61746f723a2072657475726e20616d6f756e7420776173206040820152690dcdee840cadcdeeaced60b31b606082015260800190565b60208082526023908201527f544f4b6f7264696e61746f723a2076616c756520646f6573206e6f7420656e6f6040820152620eaced60eb1b606082015260800190565b60208082526021908201527f544f4b6f7264696e61746f723a206964656e746963616c2061646472657373656040820152607360f81b606082015260800190565b60208082526022908201527f544f4b6f7264696e61746f723a206661696c20746f207265736375652045746860408201526132b960f11b606082015260800190565b6020808252601a908201527f544f4b6f7264696e61746f723a207a65726f2061646472657373000000000000604082015260600190565b60208082526047908201527f544f4b6f7264696e61746f723a20646973747269627574696f6e20617272617960408201527f2073686f756c64206e6f742065786365656420726573657276657320617272616060820152663c9039b4bd329760c91b608082015260a00190565b600060208252825160a0602084015261347b60c08401826130ce565b905060018060a01b0360208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b90815260200190565b600085825284602083015260018060a01b0384166040830152608060608301526134ed60808301846130ce565b9695505050505050565b9283526020830191909152604082015260600190565b6000858252846020830152836040830152608060608301526134ed6080830184613094565b6000808335601e19843603018112613548578283fd5b8301803591506001600160401b03821115613561578283fd5b602090810192508102360382131561298357600080fd5b6000808335601e1984360301811261358e578283fd5b8301803591506001600160401b038211156135a7578283fd5b60200191503681900382131561298357600080fd5b6040518181016001600160401b03811182821017156135d757fe5b604052919050565b60006001600160401b038211156135f257fe5b5060209081020190565b60006001600160401b0382111561360f57fe5b50601f01601f191660200190565b60005b83811015613638578181015183820152602001613620565b83811115613647576000848401525b50505050565b6001600160a01b0381168114610a4057600080fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c6564544f4b6f7264696e61746f723a20746f416464726573735f6f75744f66426f756e6473544f4b6f7264696e61746f723a20696e73756666696369656e74206c6971756964697479536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775472616e7366657248656c7065723a3a73616665417070726f76653a20617070726f7665206661696c65645472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c6564544f4b6f7264696e61746f723a20696e73756666696369656e7420696e70757420616d6f756e74a264697066735822122090a5e4847bccb7db4381c8209218d9453900825f280fb0774d280206f570144064736f6c63430007060033
Deployed Bytecode
0x6080604052600436106100a05760003560e01c806397ccb45d1161006457806397ccb45d1461015b578063a22363c61461017b578063ac9650d8146101a8578063b8c6fd84146101c8578063c58ae497146101e8578063f2fde38b146101fb576100a7565b80631ac80d8e146100ac5780636d9c6ff5146100d5578063715018a614610102578063743addfe146101195780638da5cb5b14610139576100a7565b366100a757005b600080fd5b6100bf6100ba366004612e92565b61021b565b6040516100cc91906134b7565b60405180910390f35b3480156100e157600080fd5b506100f56100f0366004613050565b610520565b6040516100cc91906131e7565b34801561010e57600080fd5b50610117610551565b005b34801561012557600080fd5b506100f5610134366004613050565b61060f565b34801561014557600080fd5b5061014e610636565b6040516100cc919061310d565b34801561016757600080fd5b506100f5610176366004613050565b610645565b34801561018757600080fd5b5061019b610196366004612e40565b610666565b6040516100cc919061319a565b6101bb6101b6366004612e01565b610777565b6040516100cc919061313a565b3480156101d457600080fd5b506101176101e3366004612d14565b6108b6565b6100bf6101f6366004612d30565b610a43565b34801561020757600080fd5b50610117610216366004612d14565b61104a565b600060026001541415610275576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556001600160a01b0387166102b157823410156102b15760405162461bcd60e51b81526004016102a8906132f5565b60405180910390fd5b60006102bc8761115e565b6040805160a0810182528981526001600160a01b03808a166020830152918101889052606081018790526080810186905291925089166103815760075460405163c04b8d5960e01b81526001600160a01b039091169063c04b8d5990879061032890859060040161345f565b6020604051808303818588803b15801561034157600080fd5b505af1158015610355573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061037a9190613038565b9250610459565b61038d89333088611176565b6003546001600160a01b038a8116911614156103bc576007546103bc908a906001600160a01b031660006112d2565b6007546103d4908a906001600160a01b0316876112d2565b60075460405163c04b8d5960e01b81526001600160a01b039091169063c04b8d599061040490849060040161345f565b602060405180830381600087803b15801561041e57600080fd5b505af1158015610432573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104569190613038565b92505b600760009054906101000a90046001600160a01b03166001600160a01b03166312210e8a6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156104a957600080fd5b505af11580156104bd573d6000803e3d6000fd5b50505050816001600160a01b0316896001600160a01b03167f60d926fc4644f05557094a41db181011fc004a5fc911d443c9170fbc95decb28878688604051610508939291906134f7565b60405180910390a35050600180559695505050505050565b6060600061052d83610666565b600454909150610547906001600160a01b03168583611425565b9150505b92915050565b6105596116dc565b6001600160a01b031661056a610636565b6001600160a01b0316146105c5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6060600061061c83610666565b600554909150610547906001600160a01b03168583611425565b6000546001600160a01b031690565b60065460609061065f906001600160a01b031684846116e0565b9392505050565b606081516001600160401b038111801561067f57600080fd5b506040519080825280602002602001820160405280156106a9578160200160208202803683370190505b50905060005b82518110156107715760006001600160a01b03168382815181106106cf57fe5b60200260200101516001600160a01b031614156107285760025482516001600160a01b039091169083908390811061070357fe5b60200260200101906001600160a01b031690816001600160a01b031681525050610769565b82818151811061073457fe5b602002602001015182828151811061074857fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6001016106af565b50919050565b6060816001600160401b038111801561078f57600080fd5b506040519080825280602002602001820160405280156107c357816020015b60608152602001906001900390816107ae5790505b50905060005b828110156108af57600080308686858181106107e157fe5b90506020028101906107f39190613578565b6040516108019291906130fa565b600060405180830381855af49150503d806000811461083c576040519150601f19603f3d011682016040523d82523d6000602084013e610841565b606091505b50915091508161088d5760448151101561085a57600080fd5b600481019050808060200190518101906108749190612fc6565b60405162461bcd60e51b81526004016102a89190613261565b8084848151811061089a57fe5b602090810291909101015250506001016107c9565b5092915050565b6108be6116dc565b6001600160a01b03166108cf610636565b6001600160a01b03161461092a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166109ba576000336001600160a01b0316476040516109519061310a565b60006040518083038185875af1925050503d806000811461098e576040519150601f19603f3d011682016040523d82523d6000602084013e610993565b606091505b50509050806109b45760405162461bcd60e51b81526004016102a890613379565b50610a40565b610a408133836001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016109eb919061310d565b60206040518083038186803b158015610a0357600080fd5b505afa158015610a17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3b9190613038565b611966565b50565b600060026001541415610a9d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015560408051606081018252611ab281526120c4602082015261259291810191909152825160031015610ae55760405162461bcd60e51b81526004016102a8906133f2565b60008060005b8551811015610b44576000868281518110610b0257fe5b60200260200101511115610b3c57610b36868281518110610b1f57fe5b60200260200101518461266190919063ffffffff16565b92508091505b600101610aeb565b506000898983818110610b5357fe5b9050602002810190610b659190613532565b6000818110610b7057fe5b9050602002016020810190610b859190612d14565b905060008a8a84818110610b9557fe5b9050602002810190610ba79190613532565b60018d8d87818110610bb557fe5b9050602002810190610bc79190613532565b905003818110610bd357fe5b9050602002016020810190610be89190612d14565b905083610c94576001600160a01b038216610c87576000336001600160a01b031634604051610c169061310a565b60006040518083038185875af1925050503d8060008114610c53576040519150601f19603f3d011682016040523d82523d6000602084013e610c58565b606091505b5050905080610c795760405162461bcd60e51b81526004016102a890613274565b34965050505050505061103d565b889550505050505061103d565b6001600160a01b03821615610caf57610caf8233308c611176565b60006001600160a01b03831615610d41576040516370a0823160e01b81526001600160a01b038416906370a0823190610cec90309060040161310d565b60206040518083038186803b158015610d0457600080fd5b505afa158015610d18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3c9190613038565b610d43565b475b905060005b8851811015610dfb57888181518110610d5d57fe5b602002602001015160001415610d7257610df3565b6000610da487610d9e8c8581518110610d8757fe5b60200260200101518f6126bb90919063ffffffff16565b90612714565b905085821415610db15750815b8083039250610df18e8e84818110610dc557fe5b9050602002810190610dd79190613532565b838b8660038110610de457fe5b602002015163ffffffff16565b505b600101610d48565b506001600160a01b03821615610e8c576040516370a0823160e01b81526001600160a01b038316906370a0823190610e3790309060040161310d565b60206040518083038186803b158015610e4f57600080fd5b505afa158015610e63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e879190613038565b610e8e565b475b965088871015610eb05760405162461bcd60e51b81526004016102a8906132ab565b6001600160a01b038216610ef157604051339088156108fc029089906000818181858888f19350505050158015610eeb573d6000803e3d6000fd5b50610efc565b610efc823389611966565b60006001600160a01b03841615610f8e576040516370a0823160e01b81526001600160a01b038516906370a0823190610f3990309060040161310d565b60206040518083038186803b158015610f5157600080fd5b505afa158015610f65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f899190613038565b610f90565b475b90508015610fe4576001600160a01b038416610fd957604051339082156108fc029083906000818181858888f19350505050158015610fd3573d6000803e3d6000fd5b50610fe4565b610fe4843383611966565b826001600160a01b0316846001600160a01b03167f10340f41b96c1445a8343ac4781ea66d079a698e9313f684bc0f22cdf0d4129d8d8b8e8e60405161102d949392919061350d565b60405180910390a3505050505050505b6001805595945050505050565b6110526116dc565b6001600160a01b0316611063610636565b6001600160a01b0316146110be576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166111035760405162461bcd60e51b81526004018080602001828103825260268152602001806136636026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061116e82601484510361277b565b90505b919050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b178152925182516000948594938a169392918291908083835b602083106111fa5780518252601f1990920191602091820191016111db565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461125c576040519150601f19603f3d011682016040523d82523d6000602084013e611261565b606091505b509150915081801561128f57508051158061128f575080806020019051602081101561128c57600080fd5b50515b6112ca5760405162461bcd60e51b81526004018080602001828103825260318152602001806136896031913960400191505060405180910390fd5b505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b1781529251825160009485949389169392918291908083835b6020831061134e5780518252601f19909201916020918201910161132f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146113b0576040519150601f19603f3d011682016040523d82523d6000602084013e6113b5565b606091505b50915091508180156113e35750805115806113e357508080602001905160208110156113e057600080fd5b50515b61141e5760405162461bcd60e51b815260040180806020018281038252602b815260200180613722602b913960400191505060405180910390fd5b5050505050565b606060028251101561147e576040805162461bcd60e51b815260206004820152601a60248201527f544f4b6f7264696e61746f723a20696e76616c69642070617468000000000000604482015290519081900360640190fd5b81516001600160401b038111801561149557600080fd5b506040519080825280602002602001820160405280156114bf578160200160208202803683370190505b50905082816000815181106114d057fe5b60200260200101818152505060005b60018351038110156116d4576000856001600160a01b031663e6a4390585848151811061150857fe5b602002602001015186856001018151811061151f57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561157457600080fd5b505afa158015611588573d6000803e3d6000fd5b505050506040513d602081101561159e57600080fd5b505160408051630240bc6b60e21b8152905191925060009182916001600160a01b03851691630902f1ac91600480820192606092909190829003018186803b1580156115e957600080fd5b505afa1580156115fd573d6000803e3d6000fd5b505050506040513d606081101561161357600080fd5b50805160209091015187516dffffffffffffffffffffffffffff928316945091169150600090819088906001880190811061164a57fe5b60200260200101516001600160a01b031688878151811061166757fe5b60200260200101516001600160a01b031610611684578284611687565b83835b915091506116a987878151811061169a57fe5b60200260200101518383612828565b8787600101815181106116b857fe5b60209081029190910101525050600190930192506114df915050565b509392505050565b3390565b6060600282511015611739576040805162461bcd60e51b815260206004820152601a60248201527f544f4b6f7264696e61746f723a20696e76616c69642070617468000000000000604482015290519081900360640190fd5b81516001600160401b038111801561175057600080fd5b5060405190808252806020026020018201604052801561177a578160200160208202803683370190505b509050828160008151811061178b57fe5b60200260200101818152505060005b60018351038110156116d4576000856001600160a01b031663901754d78584815181106117c357fe5b60200260200101518685600101815181106117da57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b03168152602001925050506101006040518083038186803b15801561183057600080fd5b505afa158015611844573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061010081101561186a57600080fd5b505184519091506001600160a01b03821690631e1401f89086908590811061188e57fe5b60200260200101518685600101815181106118a557fe5b60200260200101518686815181106118b957fe5b60200260200101516040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b03168152602001828152602001935050505060206040518083038186803b15801561191557600080fd5b505afa158015611929573d6000803e3d6000fd5b505050506040513d602081101561193f57600080fd5b5051835184906001850190811061195257fe5b60209081029190910101525060010161179a565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1781529251825160009485949389169392918291908083835b602083106119e25780518252601f1990920191602091820191016119c3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611a44576040519150601f19603f3d011682016040523d82523d6000602084013e611a49565b606091505b5091509150818015611a77575080511580611a775750808060200190516020811015611a7457600080fd5b50515b61141e5760405162461bcd60e51b815260040180806020018281038252602d81526020018061374d602d913960400191505060405180910390fd5b6000611af084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061066692505050565b60045481519192506000916001600160a01b039091169063e6a439059084908490611b1757fe5b602002602001015184600181518110611b2c57fe5b60200260200101516040518363ffffffff1660e01b8152600401611b519291906131fa565b60206040518083038186803b158015611b6957600080fd5b505afa158015611b7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba19190612faa565b600454909150600090611bbe906001600160a01b03168585611425565b9050600086868281611bcc57fe5b9050602002016020810190611be19190612d14565b6001600160a01b03161415611d045760025481516001600160a01b039091169063d0e30db0908390600090611c1257fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611c4557600080fd5b505af1158015611c59573d6000803e3d6000fd5b505060025484516001600160a01b03909116935063a9059cbb92508591508490600090611c8257fe5b60200260200101516040518363ffffffff1660e01b8152600401611ca7929190613121565b602060405180830381600087803b158015611cc157600080fd5b505af1158015611cd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf99190612e72565b611cff57fe5b611d44565b611d4486866000818110611d1457fe5b9050602002016020810190611d299190612d14565b8383600081518110611d3757fe5b6020026020010151611966565b60005b6001845103811015611faf57600080858381518110611d6257fe5b6020026020010151868460010181518110611d7957fe5b6020026020010151915091506000611d918383612900565b5090506000858560010181518110611da557fe5b60200260200101519050600080836001600160a01b0316866001600160a01b031614611dd357826000611dd7565b6000835b91509150600060028b51038810611dee5730611e8b565b6004548b516001600160a01b039091169063e6a439059088908e9060028d01908110611e1657fe5b60200260200101516040518363ffffffff1660e01b8152600401611e3b9291906131fa565b60206040518083038186803b158015611e5357600080fd5b505afa158015611e67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8b9190612faa565b6004805460405163e6a4390560e01b81529293506001600160a01b03169163e6a4390591611ebd918b918b91016131fa565b60206040518083038186803b158015611ed557600080fd5b505afa158015611ee9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0d9190612faa565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f191660200182016040528015611f4a576020820181803683370190505b506040518563ffffffff1660e01b8152600401611f6a94939291906134c0565b600060405180830381600087803b158015611f8457600080fd5b505af1158015611f98573d6000803e3d6000fd5b505060019099019850611d47975050505050505050565b50600086866000198101818110611fc257fe5b9050602002016020810190611fd79190612d14565b6001600160a01b031614156112ca576002546040516370a0823160e01b81526001600160a01b0390911690632e1a7d4d9082906370a082319061201e90309060040161310d565b60206040518083038186803b15801561203657600080fd5b505afa15801561204a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206e9190613038565b6040518263ffffffff1660e01b815260040161208a91906134b7565b600060405180830381600087803b1580156120a457600080fd5b505af11580156120b8573d6000803e3d6000fd5b50505050505050505050565b600061210284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061066692505050565b60055481519192506000916001600160a01b039091169063e6a43905908490849061212957fe5b60200260200101518460018151811061213e57fe5b60200260200101516040518363ffffffff1660e01b81526004016121639291906131fa565b60206040518083038186803b15801561217b57600080fd5b505afa15801561218f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121b39190612faa565b6005549091506000906121d0906001600160a01b03168585611425565b90506000868682816121de57fe5b90506020020160208101906121f39190612d14565b6001600160a01b031614156123165760025481516001600160a01b039091169063d0e30db090839060009061222457fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561225757600080fd5b505af115801561226b573d6000803e3d6000fd5b505060025484516001600160a01b03909116935063a9059cbb9250859150849060009061229457fe5b60200260200101516040518363ffffffff1660e01b81526004016122b9929190613121565b602060405180830381600087803b1580156122d357600080fd5b505af11580156122e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230b9190612e72565b61231157fe5b612326565b61232686866000818110611d1457fe5b60005b6001845103811015611faf5760008085838151811061234457fe5b602002602001015186846001018151811061235b57fe5b60200260200101519150915060006123738383612900565b509050600085856001018151811061238757fe5b60200260200101519050600080836001600160a01b0316866001600160a01b0316146123b5578260006123b9565b6000835b91509150600060028b510388106123d0573061246d565b6005548b516001600160a01b039091169063e6a439059088908e9060028d019081106123f857fe5b60200260200101516040518363ffffffff1660e01b815260040161241d9291906131fa565b60206040518083038186803b15801561243557600080fd5b505afa158015612449573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061246d9190612faa565b60055460405163e6a4390560e01b81529192506001600160a01b03169063e6a43905906124a0908a908a906004016131fa565b60206040518083038186803b1580156124b857600080fd5b505afa1580156124cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f09190612faa565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f19166020018201604052801561252d576020820181803683370190505b506040518563ffffffff1660e01b815260040161254d94939291906134c0565b600060405180830381600087803b15801561256757600080fd5b505af115801561257b573d6000803e3d6000fd5b505060019099019850612329975050505050505050565b60006125e7600660009054906101000a90046001600160a01b0316838686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506116e092505050565b905060005b600019840181101561141e5761265985858381811061260757fe5b905060200201602081019061261c9190612d14565b86868460010181811061262b57fe5b90506020020160208101906126409190612d14565b84848151811061264c57fe5b602002602001015161298a565b6001016125ec565b60008282018381101561065f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826126ca5750600061054b565b828202828482816126d757fe5b041461065f5760405162461bcd60e51b81526004018080602001828103825260218152602001806137016021913960400191505060405180910390fd5b600080821161276a576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161277357fe5b049392505050565b6000818260140110156127d5576040805162461bcd60e51b815260206004820181905260248201527f544f4b6f7264696e61746f723a20746f416464726573735f6f766572666c6f77604482015290519081900360640190fd5b81601401835110156128185760405162461bcd60e51b81526004018080602001828103825260238152602001806136ba6023913960400191505060405180910390fd5b500160200151600160601b900490565b60008084116128685760405162461bcd60e51b815260040180806020018281038252602781526020018061377a6027913960400191505060405180910390fd5b6000831180156128785750600082115b6128b35760405162461bcd60e51b81526004018080602001828103825260248152602001806136dd6024913960400191505060405180910390fd5b60006128c1856103e56126bb565b905060006128cf82856126bb565b905060006128e9836128e3886103e86126bb565b90612661565b90508082816128f457fe5b04979650505050505050565b600080826001600160a01b0316846001600160a01b031614156129355760405162461bcd60e51b81526004016102a890613338565b826001600160a01b0316846001600160a01b031610612955578284612958565b83835b90925090506001600160a01b0382166129835760405162461bcd60e51b81526004016102a8906133bb565b9250929050565b60065460405163901754d760e01b81526000916001600160a01b03169063901754d7906129bd90879087906004016131fa565b6101006040518083038186803b1580156129d657600080fd5b505afa1580156129ea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0e9190612f45565b505050505090506000816001600160a01b0316631e1401f88686866040518463ffffffff1660e01b8152600401612a4793929190613214565b60206040518083038186803b158015612a5f57600080fd5b505afa158015612a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a979190613038565b90506001600160a01b03851615612b5f576003546001600160a01b0386811691161415612aca57612aca858360006112d2565b612ad58583856112d2565b604051637f0148ab60e11b81526001600160a01b0383169063fe02915690612b07908890889088908790600401613238565b602060405180830381600087803b158015612b2157600080fd5b505af1158015612b35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b599190613038565b5061141e565b604051637f0148ab60e11b81526001600160a01b0383169063fe029156908590612b93908990899084908890600401613238565b6020604051808303818588803b158015612bac57600080fd5b505af1158015612bc0573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906112ca9190613038565b80356111718161364d565b60008083601f840112612c01578182fd5b5081356001600160401b03811115612c17578182fd5b602083019150836020808302850101111561298357600080fd5b600082601f830112612c41578081fd5b81356020612c56612c51836135df565b6135bc565b8281528181019085830183850287018401881015612c72578586fd5b855b85811015612c99578135612c878161364d565b84529284019290840190600101612c74565b5090979650505050505050565b600082601f830112612cb6578081fd5b604051604081018181106001600160401b0382111715612cd257fe5b8060405250808385604086011115612ce8578384fd5b835b6002811015612d09578151835260209283019290910190600101612cea565b509195945050505050565b600060208284031215612d25578081fd5b813561065f8161364d565b600080600080600060808688031215612d47578081fd5b85356001600160401b0380821115612d5d578283fd5b612d6989838a01612bf0565b90975095506020888101359550604089013594509150606088013581811115612d90578384fd5b88019050601f81018913612da2578283fd5b8035612db0612c51826135df565b81815283810190838501858402850186018d1015612dcc578687fd5b8694505b83851015612dee578035835260019490940193918501918501612dd0565b5080955050505050509295509295909350565b60008060208385031215612e13578182fd5b82356001600160401b03811115612e28578283fd5b612e3485828601612bf0565b90969095509350505050565b600060208284031215612e51578081fd5b81356001600160401b03811115612e66578182fd5b61054784828501612c31565b600060208284031215612e83578081fd5b8151801515811461065f578182fd5b60008060008060008060c08789031215612eaa578384fd5b8635612eb58161364d565b955060208701356001600160401b03811115612ecf578485fd5b8701601f81018913612edf578485fd5b8035612eed612c51826135fc565b8181528a6020838501011115612f01578687fd5b816020840160208301379081016020018690529550612f24905060408801612be5565b9350606087013592506080870135915060a087013590509295509295509295565b6000806000806000806101008789031215612f5e578384fd5b8651612f698161364d565b80965050602087015194506040870151935060608701519250612f8f8860808901612ca6565b9150612f9e8860c08901612ca6565b90509295509295509295565b600060208284031215612fbb578081fd5b815161065f8161364d565b600060208284031215612fd7578081fd5b81516001600160401b03811115612fec578182fd5b8201601f81018413612ffc578182fd5b805161300a612c51826135fc565b81815285602083850101111561301e578384fd5b61302f82602083016020860161361d565b95945050505050565b600060208284031215613049578081fd5b5051919050565b60008060408385031215613062578182fd5b8235915060208301356001600160401b0381111561307e578182fd5b61308a85828601612c31565b9150509250929050565b6000815180845260208085019450808401835b838110156130c3578151875295820195908201906001016130a7565b509495945050505050565b600081518084526130e681602086016020860161361d565b601f01601f19169290920160200192915050565b6000828483379101908152919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6000602080830181845280855180835260408601915060408482028701019250838701855b8281101561318d57603f1988860301845261317b8583516130ce565b9450928501929085019060010161315f565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156131db5783516001600160a01b0316835292840192918401916001016131b6565b50909695505050505050565b60006020825261065f6020830184613094565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b60006020825261065f60208301846130ce565b6020808252601e908201527f544f4b6f7264696e61746f723a207472616e73666572206661696c65642e0000604082015260600190565b6020808252602a908201527f544f4b6f7264696e61746f723a2072657475726e20616d6f756e7420776173206040820152690dcdee840cadcdeeaced60b31b606082015260800190565b60208082526023908201527f544f4b6f7264696e61746f723a2076616c756520646f6573206e6f7420656e6f6040820152620eaced60eb1b606082015260800190565b60208082526021908201527f544f4b6f7264696e61746f723a206964656e746963616c2061646472657373656040820152607360f81b606082015260800190565b60208082526022908201527f544f4b6f7264696e61746f723a206661696c20746f207265736375652045746860408201526132b960f11b606082015260800190565b6020808252601a908201527f544f4b6f7264696e61746f723a207a65726f2061646472657373000000000000604082015260600190565b60208082526047908201527f544f4b6f7264696e61746f723a20646973747269627574696f6e20617272617960408201527f2073686f756c64206e6f742065786365656420726573657276657320617272616060820152663c9039b4bd329760c91b608082015260a00190565b600060208252825160a0602084015261347b60c08401826130ce565b905060018060a01b0360208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b90815260200190565b600085825284602083015260018060a01b0384166040830152608060608301526134ed60808301846130ce565b9695505050505050565b9283526020830191909152604082015260600190565b6000858252846020830152836040830152608060608301526134ed6080830184613094565b6000808335601e19843603018112613548578283fd5b8301803591506001600160401b03821115613561578283fd5b602090810192508102360382131561298357600080fd5b6000808335601e1984360301811261358e578283fd5b8301803591506001600160401b038211156135a7578283fd5b60200191503681900382131561298357600080fd5b6040518181016001600160401b03811182821017156135d757fe5b604052919050565b60006001600160401b038211156135f257fe5b5060209081020190565b60006001600160401b0382111561360f57fe5b50601f01601f191660200190565b60005b83811015613638578181015183820152602001613620565b83811115613647576000848401525b50505050565b6001600160a01b0381168114610a4057600080fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c6564544f4b6f7264696e61746f723a20746f416464726573735f6f75744f66426f756e6473544f4b6f7264696e61746f723a20696e73756666696369656e74206c6971756964697479536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775472616e7366657248656c7065723a3a73616665417070726f76653a20617070726f7665206661696c65645472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c6564544f4b6f7264696e61746f723a20696e73756666696369656e7420696e70757420616d6f756e74a264697066735822122090a5e4847bccb7db4381c8209218d9453900825f280fb0774d280206f570144064736f6c63430007060033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.