Source Code
Overview
XDC Balance
XDC Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Set Fee To | 74122021 | 721 days ago | IN | 0 XDC | 0.0000112 |
Latest 25 internal transactions (View All)
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
NexusFactory
Compiler Version
v0.8.12+commit.f00d7308
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.8.12;
import "./Interfaces/INexusSwapFactory.sol";
import "./NexusSwapPair.sol";
contract NexusFactory is INexusSwapFactory {
address public override feeTo;
address public override feeToSetter;
address public override migrator;
mapping(address => mapping(address => address)) public override getPair;
address[] public override allPairs;
constructor(address _feeToSetter) {
feeToSetter = _feeToSetter;
}
function allPairsLength() external view override returns (uint) {
return allPairs.length;
}
function pairCodeHash() external pure returns (bytes32) {
return keccak256(type(NexusSwapPair).creationCode);
}
function createPair(
address tokenA,
address tokenB
) external override returns (address pair) {
require(tokenA != tokenB, "NEXUS: IDENTICAL_ADDRESSES");
(address token0, address token1) = tokenA < tokenB
? (tokenA, tokenB)
: (tokenB, tokenA);
require(token0 != address(0), "NEXUS: ZERO_ADDRESS");
require(getPair[token0][token1] == address(0), "NEXUS: PAIR_EXISTS"); // single check is sufficient
bytes memory bytecode = type(NexusSwapPair).creationCode;
bytes32 salt = keccak256(abi.encodePacked(token0, token1));
assembly {
pair := create2(0, add(bytecode, 32), mload(bytecode), salt)
}
NexusSwapPair(pair).initialize(token0, token1);
getPair[token0][token1] = pair;
getPair[token1][token0] = pair; // populate mapping in the reverse direction
allPairs.push(pair);
emit PairCreated(token0, token1, pair, allPairs.length);
}
function setFeeTo(address _feeTo) external override {
require(msg.sender == feeToSetter, "NEXUS: FORBIDDEN");
feeTo = _feeTo;
}
function setMigrator(address _migrator) external override {
require(msg.sender == feeToSetter, "NEXUS: FORBIDDEN");
migrator = _migrator;
}
function setFeeToSetter(address _feeToSetter) external override {
require(msg.sender == feeToSetter, "NEXUS: FORBIDDEN");
feeToSetter = _feeToSetter;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
library SafeMathUniswap {
function add(uint x, uint y) internal pure returns (uint z) {
require((z = x + y) >= x, "ds-math-add-overflow");
}
function sub(uint x, uint y) internal pure returns (uint z) {
require((z = x - y) <= x, "ds-math-sub-underflow");
}
function mul(uint x, uint y) internal pure returns (uint z) {
require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow");
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
library UQ112x112 {
uint224 constant Q112 = 2**112;
// encode a uint112 as a UQ112x112
function encode(uint112 y) internal pure returns (uint224 z) {
z = uint224(y) * Q112; // never overflows
}
// divide a UQ112x112 by a uint112, returning a UQ112x112
function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) {
z = x / uint224(y);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
interface IMigrator {
// Return the desired amount of liquidity token that the migrator wants.
function desiredLiquidity() external view returns (uint256);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
interface INexusSwapCallee {
function NexusSwapCall(
address sender,
uint amount0,
uint amount1,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "../../Uniswap/Interfaces/IUniswapV2Factory.sol";
interface INexusSwapFactory is IUniswapV2Factory {}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "../Libraries/SafeMathUniswap.sol";
contract NexusSwapERC20 {
using SafeMathUniswap for uint;
string public constant name = "NEXUS LP Token";
string public constant symbol = "NLP";
uint8 public constant decimals = 18;
uint public totalSupply;
mapping(address => uint) public balanceOf;
mapping(address => mapping(address => uint)) public allowance;
bytes32 public DOMAIN_SEPARATOR;
// keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
bytes32 public constant PERMIT_TYPEHASH = keccak256('Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)');
mapping(address => uint) public nonces;
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
constructor() {
uint chainId;
assembly {
chainId := chainid()
}
DOMAIN_SEPARATOR = keccak256(
abi.encode(
keccak256(
"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
),
keccak256(bytes(name)),
keccak256(bytes("1")),
chainId,
address(this)
)
);
}
function _mint(address to, uint value) internal {
totalSupply = totalSupply.add(value);
balanceOf[to] = balanceOf[to].add(value);
emit Transfer(address(0), to, value);
}
function _burn(address from, uint value) internal {
balanceOf[from] = balanceOf[from].sub(value);
totalSupply = totalSupply.sub(value);
emit Transfer(from, address(0), value);
}
function _approve(address owner, address spender, uint value) private {
allowance[owner][spender] = value;
emit Approval(owner, spender, value);
}
function _transfer(address from, address to, uint value) private {
balanceOf[from] = balanceOf[from].sub(value);
balanceOf[to] = balanceOf[to].add(value);
emit Transfer(from, to, value);
}
function approve(address spender, uint value) external returns (bool) {
_approve(msg.sender, spender, value);
return true;
}
function transfer(address to, uint value) external returns (bool) {
_transfer(msg.sender, to, value);
return true;
}
function transferFrom(
address from,
address to,
uint value
) external returns (bool) {
if (allowance[from][msg.sender] != type(uint).max) {
allowance[from][msg.sender] = allowance[from][msg.sender].sub(
value
);
}
_transfer(from, to, value);
return true;
}
function permit(
address owner,
address spender,
uint value,
uint deadline,
uint8 v,
bytes32 r,
bytes32 s
) external {
require(deadline >= block.timestamp, "NEXUS: EXPIRED");
bytes32 digest = keccak256(
abi.encodePacked(
"\x19\x01",
DOMAIN_SEPARATOR,
keccak256(
abi.encode(
PERMIT_TYPEHASH,
owner,
spender,
value,
nonces[owner]++,
deadline
)
)
)
);
address recoveredAddress = ecrecover(digest, v, r, s);
require(
recoveredAddress != address(0) && recoveredAddress == owner,
"NEXUS: INVALID_SIGNATURE"
);
_approve(owner, spender, value);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "./NexusSwapERC20.sol";
import "../Uniswap/Interfaces/IERC20Uniswap.sol";
import "./Interfaces/IMigrator.sol";
import "./Interfaces/INexusSwapCallee.sol";
import "./Interfaces/INexusSwapFactory.sol";
import "../Libraries/SafeMathUniswap.sol";
import "../Libraries/UQ112x112.sol";
import "../Utils/Math.sol";
contract NexusSwapPair is NexusSwapERC20 {
using SafeMathUniswap for uint;
using UQ112x112 for uint224;
uint public constant MINIMUM_LIQUIDITY = 10**3;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
address public factory;
address public token0;
address public token1;
uint112 private reserve0; // uses single storage slot, accessible via getReserves
uint112 private reserve1; // uses single storage slot, accessible via getReserves
uint32 private blockTimestampLast; // uses single storage slot, accessible via getReserves
uint public price0CumulativeLast;
uint public price1CumulativeLast;
uint public kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event
uint private unlocked = 1;
modifier lock() {
require(unlocked == 1, 'NEXUS: LOCKED');
unlocked = 0;
_;
unlocked = 1;
}
function getReserves() public view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast) {
_reserve0 = reserve0;
_reserve1 = reserve1;
_blockTimestampLast = blockTimestampLast;
}
function _safeTransfer(address token, address to, uint value) private {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'NEXUS: TRANSFER_FAILED');
}
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
constructor() {
factory = msg.sender;
}
// called once by the factory at time of deployment
function initialize(address _token0, address _token1) external {
require(msg.sender == factory, 'NEXUS: FORBIDDEN'); // sufficient check
token0 = _token0;
token1 = _token1;
}
// update reserves and, on the first call per block, price accumulators
function _update(uint balance0, uint balance1, uint112 _reserve0, uint112 _reserve1) private {
require(balance0 <= type(uint112).max && balance1 <= type(uint112).max, 'NEXUS: OVERFLOW');
uint32 blockTimestamp = uint32(block.timestamp % 2**32);
uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired
if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {
// * never overflows, and + overflow is desired
price0CumulativeLast += uint(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) * timeElapsed;
price1CumulativeLast += uint(UQ112x112.encode(_reserve0).uqdiv(_reserve1)) * timeElapsed;
}
reserve0 = uint112(balance0);
reserve1 = uint112(balance1);
blockTimestampLast = blockTimestamp;
emit Sync(reserve0, reserve1);
}
// if fee is on, mint liquidity equivalent to 1/6th of the growth in sqrt(k)
function _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) {
address feeTo = INexusSwapFactory(factory).feeTo();
feeOn = feeTo != address(0);
uint _kLast = kLast; // gas savings
if (feeOn) {
if (_kLast != 0) {
uint rootK = Math.sqrt(uint(_reserve0).mul(_reserve1));
uint rootKLast = Math.sqrt(_kLast);
if (rootK > rootKLast) {
uint numerator = totalSupply.mul(rootK.sub(rootKLast));
uint denominator = rootK.mul(5).add(rootKLast);
uint liquidity = numerator / denominator;
if (liquidity > 0) _mint(feeTo, liquidity);
}
}
} else if (_kLast != 0) {
kLast = 0;
}
}
// this low-level function should be called from a contract which performs important safety checks
function mint(address to) external lock returns (uint liquidity) {
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
uint balance0 = IERC20Uniswap(token0).balanceOf(address(this));
uint balance1 = IERC20Uniswap(token1).balanceOf(address(this));
uint amount0 = balance0.sub(_reserve0);
uint amount1 = balance1.sub(_reserve1);
bool feeOn = _mintFee(_reserve0, _reserve1);
uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
if (_totalSupply == 0) {
address migrator = INexusSwapFactory(factory).migrator();
if (msg.sender == migrator) {
liquidity = IMigrator(migrator).desiredLiquidity();
require(liquidity > 0 && liquidity != type(uint256).max, "Bad desired liquidity");
} else {
require(migrator == address(0), "Must not have migrator");
liquidity = Math.sqrt(amount0.mul(amount1)).sub(MINIMUM_LIQUIDITY);
_mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens
}
} else {
liquidity = Math.min(amount0.mul(_totalSupply) / _reserve0, amount1.mul(_totalSupply) / _reserve1);
}
require(liquidity > 0, 'NEXUS: INSUFFICIENT_LIQUIDITY_MINTED');
_mint(to, liquidity);
_update(balance0, balance1, _reserve0, _reserve1);
if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date
emit Mint(msg.sender, amount0, amount1);
}
// this low-level function should be called from a contract which performs important safety checks
function burn(address to) external lock returns (uint amount0, uint amount1) {
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
address _token0 = token0; // gas savings
address _token1 = token1; // gas savings
uint balance0 = IERC20Uniswap(_token0).balanceOf(address(this));
uint balance1 = IERC20Uniswap(_token1).balanceOf(address(this));
uint liquidity = balanceOf[address(this)];
bool feeOn = _mintFee(_reserve0, _reserve1);
uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
amount0 = liquidity.mul(balance0) / _totalSupply; // using balances ensures pro-rata distribution
amount1 = liquidity.mul(balance1) / _totalSupply; // using balances ensures pro-rata distribution
require(amount0 > 0 && amount1 > 0, 'NEXUS: INSUFFICIENT_LIQUIDITY_BURNED');
_burn(address(this), liquidity);
_safeTransfer(_token0, to, amount0);
_safeTransfer(_token1, to, amount1);
balance0 = IERC20Uniswap(_token0).balanceOf(address(this));
balance1 = IERC20Uniswap(_token1).balanceOf(address(this));
_update(balance0, balance1, _reserve0, _reserve1);
if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date
emit Burn(msg.sender, amount0, amount1, to);
}
// this low-level function should be called from a contract which performs important safety checks
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external lock {
require(amount0Out > 0 || amount1Out > 0, 'NEXUS: INSUFFICIENT_OUTPUT_AMOUNT');
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
require(amount0Out < _reserve0 && amount1Out < _reserve1, 'NEXUS: INSUFFICIENT_LIQUIDITY');
uint balance0;
uint balance1;
{ // scope for _token{0,1}, avoids stack too deep errors
address _token0 = token0;
address _token1 = token1;
require(to != _token0 && to != _token1, 'NEXUS: INVALID_TO');
if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out); // optimistically transfer tokens
if (amount1Out > 0) _safeTransfer(_token1, to, amount1Out); // optimistically transfer tokens
if (data.length > 0) INexusSwapCallee(to).NexusSwapCall(msg.sender, amount0Out, amount1Out, data);
balance0 = IERC20Uniswap(_token0).balanceOf(address(this));
balance1 = IERC20Uniswap(_token1).balanceOf(address(this));
}
uint amount0In = balance0 > _reserve0 - amount0Out ? balance0 - (_reserve0 - amount0Out) : 0;
uint amount1In = balance1 > _reserve1 - amount1Out ? balance1 - (_reserve1 - amount1Out) : 0;
require(amount0In > 0 || amount1In > 0, 'NEXUS: INSUFFICIENT_INPUT_AMOUNT');
{ // scope for reserve{0,1}Adjusted, avoids stack too deep errors
uint balance0Adjusted = balance0.mul(1000).sub(amount0In.mul(3));
uint balance1Adjusted = balance1.mul(1000).sub(amount1In.mul(3));
require(balance0Adjusted.mul(balance1Adjusted) >= uint(_reserve0).mul(_reserve1).mul(1000**2), 'NEXUS: K');
}
_update(balance0, balance1, _reserve0, _reserve1);
emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);
}
// force balances to match reserves
function skim(address to) external lock {
address _token0 = token0; // gas savings
address _token1 = token1; // gas savings
_safeTransfer(_token0, to, IERC20Uniswap(_token0).balanceOf(address(this)).sub(reserve0));
_safeTransfer(_token1, to, IERC20Uniswap(_token1).balanceOf(address(this)).sub(reserve1));
}
// force reserves to match balances
function sync() external lock {
_update(IERC20Uniswap(token0).balanceOf(address(this)), IERC20Uniswap(token1).balanceOf(address(this)), reserve0, reserve1);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
interface IERC20Uniswap {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(
address owner,
address spender
) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(
address from,
address to,
uint value
) external returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function migrator() external view returns (address);
function getPair(
address tokenA,
address tokenB
) external view returns (address pair);
function allPairs(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(
address tokenA,
address tokenB
) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
function setMigrator(address) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
library Math {
function min(uint x, uint y) internal pure returns (uint z) {
z = x < y ? x : y;
}
// babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
function sqrt(uint y) internal pure returns (uint z) {
if (y > 3) {
z = y;
uint x = y / 2 + 1;
while (x < z) {
z = x;
x = (y / x + x) / 2;
}
} else if (y != 0) {
z = 1;
}
}
}{
"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
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_feeToSetter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"PairCreated","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allPairsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"createPair","outputs":[{"internalType":"address","name":"pair","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeToSetter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairCodeHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_feeTo","type":"address"}],"name":"setFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeToSetter","type":"address"}],"name":"setFeeToSetter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50604051612c10380380612c1083398101604081905261002f91610054565b600180546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b612b7d806100936000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80637cd07e47116100715780637cd07e471461012b5780639aab92481461013e578063a2e74af614610146578063c9c6539614610159578063e6a439051461016c578063f46901ed146101a057600080fd5b8063017e7e58146100ae578063094b7415146100de5780631e3dd18b146100f157806323cf311814610104578063574f2ba314610119575b600080fd5b6000546100c1906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6001546100c1906001600160a01b031681565b6100c16100ff3660046105fa565b6101b3565b61011761011236600461062f565b6101dd565b005b6004545b6040519081526020016100d5565b6002546100c1906001600160a01b031681565b61011d610232565b61011761015436600461062f565b610264565b6100c1610167366004610651565b6102b0565b6100c161017a366004610651565b60036020908152600092835260408084209091529082529020546001600160a01b031681565b6101176101ae36600461062f565b6105a1565b600481815481106101c357600080fd5b6000918252602090912001546001600160a01b0316905081565b6001546001600160a01b031633146102105760405162461bcd60e51b815260040161020790610684565b60405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600060405180602001610244906105ed565b6020820181038252601f19601f8201166040525080519060200120905090565b6001546001600160a01b0316331461028e5760405162461bcd60e51b815260040161020790610684565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000816001600160a01b0316836001600160a01b031614156103145760405162461bcd60e51b815260206004820152601a60248201527f4e455855533a204944454e544943414c5f4144445245535345530000000000006044820152606401610207565b600080836001600160a01b0316856001600160a01b03161061033757838561033a565b84845b90925090506001600160a01b03821661038b5760405162461bcd60e51b81526020600482015260136024820152724e455855533a205a45524f5f4144445245535360681b6044820152606401610207565b6001600160a01b038281166000908152600360209081526040808320858516845290915290205416156103f55760405162461bcd60e51b81526020600482015260126024820152714e455855533a20504149525f45584953545360701b6044820152606401610207565b600060405180602001610407906105ed565b601f1982820381018352601f9091011660408190526bffffffffffffffffffffffff19606086811b8216602084015285901b166034820152909150600090604801604051602081830303815290604052805190602001209050808251602084016000f560405163485cc95560e01b81526001600160a01b03868116600483015285811660248301529196509086169063485cc95590604401600060405180830381600087803b1580156104b957600080fd5b505af11580156104cd573d6000803e3d6000fd5b505050506001600160a01b0384811660008181526003602081815260408084208987168086529083528185208054978d166001600160a01b031998891681179091559383528185208686528352818520805488168517905560048054600181018255958190527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9095018054909716841790965592548351928352908201527f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9910160405180910390a35050505092915050565b6001546001600160a01b031633146105cb5760405162461bcd60e51b815260040161020790610684565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b612499806106af83390190565b60006020828403121561060c57600080fd5b5035919050565b80356001600160a01b038116811461062a57600080fd5b919050565b60006020828403121561064157600080fd5b61064a82610613565b9392505050565b6000806040838503121561066457600080fd5b61066d83610613565b915061067b60208401610613565b90509250929050565b60208082526010908201526f2722ac2aa99d102327a92124a22222a760811b60408201526060019056fe60806040526001600c5534801561001557600080fd5b50604080518082018252600e81526d2722ac2aa9902628102a37b5b2b760911b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527e24906b47cf332ffd9ec1a7a506bcfd621ed91d1c133ce18e0088f914bceaa5818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c09091019092528151910120600355600580546001600160a01b0319163317905561238e8061010b6000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a714610409578063d505accf1461041c578063dd62ed3e1461042f578063fff6cae91461045a57600080fd5b8063ba9a7a56146103da578063bc25cf77146103e3578063c45a0155146103f657600080fd5b80637ecebe00116100d35780637ecebe001461035d57806389afcb441461037d57806395d89b41146103a5578063a9059cbb146103c757600080fd5b80636a6278421461032157806370a08231146103345780637464fc3d1461035457600080fd5b806323b872dd116101665780633644e515116101405780633644e515146102f3578063485cc955146102fc5780635909c0d51461030f5780635a3d54931461031857600080fd5b806323b872dd1461029f57806330adf81f146102b2578063313ce567146102d957600080fd5b8063022c0d9f146101ae57806306fdde03146101c35780630902f1ac14610206578063095ea7b31461023a5780630dfe16811461025d57806318160ddd14610288575b600080fd5b6101c16101bc366004611f07565b610462565b005b6101f06040518060400160405280600e81526020016d2722ac2aa9902628102a37b5b2b760911b81525081565b6040516101fd9190611fcd565b60405180910390f35b61020e610946565b604080516001600160701b03948516815293909216602084015263ffffffff16908201526060016101fd565b61024d610248366004612000565b610970565b60405190151581526020016101fd565b600654610270906001600160a01b031681565b6040516001600160a01b0390911681526020016101fd565b61029160005481565b6040519081526020016101fd565b61024d6102ad36600461202c565b610987565b6102917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6102e1601281565b60405160ff90911681526020016101fd565b61029160035481565b6101c161030a36600461206d565b610a1b565b61029160095481565b610291600a5481565b61029161032f3660046120a6565b610a96565b6102916103423660046120a6565b60016020526000908152604090205481565b610291600b5481565b61029161036b3660046120a6565b60046020526000908152604090205481565b61039061038b3660046120a6565b610ee7565b604080519283526020830191909152016101fd565b6101f06040518060400160405280600381526020016204e4c560ec1b81525081565b61024d6103d5366004612000565b611248565b6102916103e881565b6101c16103f13660046120a6565b611255565b600554610270906001600160a01b031681565b600754610270906001600160a01b031681565b6101c161042a3660046120c3565b611369565b61029161043d36600461206d565b600260209081526000928352604080842090915290825290205481565b6101c1611579565b600c5460011461048d5760405162461bcd60e51b81526004016104849061213a565b60405180910390fd5b6000600c55841515806104a05750600084115b6104f65760405162461bcd60e51b815260206004820152602160248201527f4e455855533a20494e53554646494349454e545f4f55545055545f414d4f554e6044820152601560fa1b6064820152608401610484565b600080610501610946565b5091509150816001600160701b0316871080156105265750806001600160701b031686105b6105725760405162461bcd60e51b815260206004820152601d60248201527f4e455855533a20494e53554646494349454e545f4c49515549444954590000006044820152606401610484565b60065460075460009182916001600160a01b039182169190811690891682148015906105b05750806001600160a01b0316896001600160a01b031614155b6105f05760405162461bcd60e51b81526020600482015260116024820152704e455855533a20494e56414c49445f544f60781b6044820152606401610484565b8a1561060157610601828a8d61169d565b891561061257610612818a8c61169d565b861561067f57604051636bbc7d9760e01b81526001600160a01b038a1690636bbc7d979061064c9033908f908f908e908e90600401612161565b600060405180830381600087803b15801561066657600080fd5b505af115801561067a573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156106c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e791906121ad565b6040516370a0823160e01b81523060048201529094506001600160a01b038216906370a0823190602401602060405180830381865afa15801561072e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075291906121ad565b92505050600089856001600160701b031661076d91906121dc565b831161077a576000610797565b61078d8a6001600160701b0387166121dc565b61079790846121dc565b905060006107ae8a6001600160701b0387166121dc565b83116107bb5760006107d8565b6107ce8a6001600160701b0387166121dc565b6107d890846121dc565b905060008211806107e95750600081115b6108355760405162461bcd60e51b815260206004820181905260248201527f4e455855533a20494e53554646494349454e545f494e5055545f414d4f554e546044820152606401610484565b60006108576108458460036117e1565b610851876103e86117e1565b90611848565b905060006108696108458460036117e1565b905061088e620f42406108886001600160701b038b8116908b166117e1565b906117e1565b61089883836117e1565b10156108d15760405162461bcd60e51b81526020600482015260086024820152674e455855533a204b60c01b6044820152606401610484565b50506108df8484888861189e565b60408051838152602081018390529081018c9052606081018b90526001600160a01b038a169033907fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229060800160405180910390a350506001600c55505050505050505050565b6008546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b600061097d338484611a86565b5060015b92915050565b6001600160a01b038316600090815260026020908152604080832033845290915281205460001914610a06576001600160a01b03841660009081526002602090815260408083203384529091529020546109e19083611848565b6001600160a01b03851660009081526002602090815260408083203384529091529020555b610a11848484611ae8565b5060019392505050565b6005546001600160a01b03163314610a685760405162461bcd60e51b815260206004820152601060248201526f2722ac2aa99d102327a92124a22222a760811b6044820152606401610484565b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b6000600c54600114610aba5760405162461bcd60e51b81526004016104849061213a565b6000600c81905580610aca610946565b506006546040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610b1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4091906121ad565b6007546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb291906121ad565b90506000610bc9836001600160701b038716611848565b90506000610be0836001600160701b038716611848565b90506000610bee8787611b8e565b60005490915080610db65760055460408051637cd07e4760e01b815290516000926001600160a01b031691637cd07e479160048083019260209291908290030181865afa158015610c43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6791906121f3565b9050336001600160a01b0382161415610d3957806001600160a01b03166340dc0e376040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdc91906121ad565b995060008a118015610cf057506000198a14155b610d345760405162461bcd60e51b81526020600482015260156024820152744261642064657369726564206c697175696469747960581b6044820152606401610484565b610db0565b6001600160a01b03811615610d895760405162461bcd60e51b815260206004820152601660248201527526bab9ba103737ba103430bb329036b4b3b930ba37b960511b6044820152606401610484565b610da16103e8610851610d9c88886117e1565b611ccb565b9950610db060006103e8611d3b565b50610dfd565b610dfa6001600160701b038916610dcd86846117e1565b610dd79190612226565b6001600160701b038916610deb86856117e1565b610df59190612226565b611dca565b98505b60008911610e595760405162461bcd60e51b8152602060048201526024808201527f4e455855533a20494e53554646494349454e545f4c49515549444954595f4d496044820152631395115160e21b6064820152608401610484565b610e638a8a611d3b565b610e6f86868a8a61189e565b8115610e9957600854610e95906001600160701b0380821691600160701b9004166117e1565b600b555b604080518581526020810185905233917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a250506001600c5550949695505050505050565b600080600c54600114610f0c5760405162461bcd60e51b81526004016104849061213a565b6000600c81905580610f1c610946565b506006546007546040516370a0823160e01b81523060048201529395509193506001600160a01b039081169291169060009083906370a0823190602401602060405180830381865afa158015610f76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9a91906121ad565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610fe4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100891906121ad565b306000908152600160205260408120549192506110258888611b8e565b6000549091508061103684876117e1565b6110409190612226565b9a508061104d84866117e1565b6110579190612226565b995060008b118015611069575060008a115b6110c15760405162461bcd60e51b8152602060048201526024808201527f4e455855533a20494e53554646494349454e545f4c49515549444954595f42556044820152631493915160e21b6064820152608401610484565b6110cb3084611de2565b6110d6878d8d61169d565b6110e1868d8c61169d565b6040516370a0823160e01b81523060048201526001600160a01b038816906370a0823190602401602060405180830381865afa158015611125573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114991906121ad565b6040516370a0823160e01b81523060048201529095506001600160a01b038716906370a0823190602401602060405180830381865afa158015611190573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b491906121ad565b93506111c285858b8b61189e565b81156111ec576008546111e8906001600160701b0380821691600160701b9004166117e1565b600b555b604080518c8152602081018c90526001600160a01b038e169133917fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496910160405180910390a35050505050505050506001600c81905550915091565b600061097d338484611ae8565b600c546001146112775760405162461bcd60e51b81526004016104849061213a565b6000600c556006546007546008546040516370a0823160e01b81523060048201526001600160a01b039384169390921691611312918491869161130d916001600160701b039091169084906370a08231906024015b602060405180830381865afa1580156112e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085191906121ad565b61169d565b6008546040516370a0823160e01b815230600482015261135f918391869161130d91600160701b9091046001600160701b0316906001600160a01b038516906370a08231906024016112cc565b50506001600c5550565b428410156113aa5760405162461bcd60e51b815260206004820152600e60248201526d1391561554ce881156141254915160921b6044820152606401610484565b6003546001600160a01b038816600090815260046020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b9190876113fd8361223a565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161147692919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa1580156114e1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906115175750886001600160a01b0316816001600160a01b0316145b6115635760405162461bcd60e51b815260206004820152601860248201527f4e455855533a20494e56414c49445f5349474e415455524500000000000000006044820152606401610484565b61156e898989611a86565b505050505050505050565b600c5460011461159b5760405162461bcd60e51b81526004016104849061213a565b6000600c556006546040516370a0823160e01b8152306004820152611696916001600160a01b0316906370a0823190602401602060405180830381865afa1580156115ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160e91906121ad565b6007546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611656573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167a91906121ad565b6008546001600160701b0380821691600160701b90041661189e565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b179052915160009283928716916117299190612255565b6000604051808303816000865af19150503d8060008114611766576040519150601f19603f3d011682016040523d82523d6000602084013e61176b565b606091505b50915091508180156117955750805115806117955750808060200190518101906117959190612271565b6117da5760405162461bcd60e51b81526020600482015260166024820152751391561554ce881514905394d1915497d1905253115160521b6044820152606401610484565b5050505050565b6000811580611805575082826117f78183612293565b92506118039083612226565b145b6109815760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b6044820152606401610484565b60008261185583826121dc565b91508111156109815760405162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b6044820152606401610484565b6001600160701b0384118015906118bc57506001600160701b038311155b6118fa5760405162461bcd60e51b815260206004820152600f60248201526e4e455855533a204f564552464c4f5760881b6044820152606401610484565b600061190b640100000000426122b2565b60085490915060009061192b90600160e01b900463ffffffff16836122c6565b905060008163ffffffff1611801561194b57506001600160701b03841615155b801561195f57506001600160701b03831615155b156119ee578063ffffffff166119878561197886611e6c565b6001600160e01b031690611e85565b6001600160e01b031661199a9190612293565b600960008282546119ab91906122eb565b909155505063ffffffff81166119c48461197887611e6c565b6001600160e01b03166119d79190612293565b600a60008282546119e891906122eb565b90915550505b6008805463ffffffff8416600160e01b026001600160e01b036001600160701b03898116600160701b9081026001600160e01b03199095168c83161794909417918216831794859055604080519382169282169290921783529290930490911660208201527f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1910160405180910390a1505050505050565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316600090815260016020526040902054611b0b9082611848565b6001600160a01b038085166000908152600160205260408082209390935590841681522054611b3a9082611e9a565b6001600160a01b0380841660008181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611adb9085815260200190565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b8152600401602060405180830381865afa158015611be4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0891906121f3565b600b546001600160a01b038216158015945091925090611cb7578015611cb2576000611c43610d9c6001600160701b038881169088166117e1565b90506000611c5083611ccb565b905080821115611caf576000611c72611c698484611848565b600054906117e1565b90506000611c8b83611c858660056117e1565b90611e9a565b90506000611c998284612226565b90508015611cab57611cab8782611d3b565b5050505b50505b611cc3565b8015611cc3576000600b555b505092915050565b60006003821115611d2c5750806000611ce5600283612226565b611cf09060016122eb565b90505b81811015611d2657905080600281611d0b8186612226565b611d1591906122eb565b611d1f9190612226565b9050611cf3565b50919050565b8115611d36575060015b919050565b600054611d489082611e9a565b60009081556001600160a01b038316815260016020526040902054611d6d9082611e9a565b6001600160a01b0383166000818152600160205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611dbe9085815260200190565b60405180910390a35050565b6000818310611dd95781611ddb565b825b9392505050565b6001600160a01b038216600090815260016020526040902054611e059082611848565b6001600160a01b03831660009081526001602052604081209190915554611e2c9082611848565b60009081556040518281526001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611dbe565b6000610981600160701b6001600160701b038416612303565b6000611ddb6001600160701b03831684612332565b600082611ea783826122eb565b91508110156109815760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b6044820152606401610484565b6001600160a01b0381168114611f0457600080fd5b50565b600080600080600060808688031215611f1f57600080fd5b85359450602086013593506040860135611f3881611eef565b9250606086013567ffffffffffffffff80821115611f5557600080fd5b818801915088601f830112611f6957600080fd5b813581811115611f7857600080fd5b896020828501011115611f8a57600080fd5b9699959850939650602001949392505050565b60005b83811015611fb8578181015183820152602001611fa0565b83811115611fc7576000848401525b50505050565b6020815260008251806020840152611fec816040850160208701611f9d565b601f01601f19169190910160400192915050565b6000806040838503121561201357600080fd5b823561201e81611eef565b946020939093013593505050565b60008060006060848603121561204157600080fd5b833561204c81611eef565b9250602084013561205c81611eef565b929592945050506040919091013590565b6000806040838503121561208057600080fd5b823561208b81611eef565b9150602083013561209b81611eef565b809150509250929050565b6000602082840312156120b857600080fd5b8135611ddb81611eef565b600080600080600080600060e0888a0312156120de57600080fd5b87356120e981611eef565b965060208801356120f981611eef565b95506040880135945060608801359350608088013560ff8116811461211d57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6020808252600d908201526c1391561554ce881313d0d2d151609a1b604082015260600190565b60018060a01b038616815284602082015283604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f909201601f19160101949350505050565b6000602082840312156121bf57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156121ee576121ee6121c6565b500390565b60006020828403121561220557600080fd5b8151611ddb81611eef565b634e487b7160e01b600052601260045260246000fd5b60008261223557612235612210565b500490565b600060001982141561224e5761224e6121c6565b5060010190565b60008251612267818460208701611f9d565b9190910192915050565b60006020828403121561228357600080fd5b81518015158114611ddb57600080fd5b60008160001904831182151516156122ad576122ad6121c6565b500290565b6000826122c1576122c1612210565b500690565b600063ffffffff838116908316818110156122e3576122e36121c6565b039392505050565b600082198211156122fe576122fe6121c6565b500190565b60006001600160e01b0382811684821681151582840482111615612329576123296121c6565b02949350505050565b60006001600160e01b038381168061234c5761234c612210565b9216919091049291505056fea264697066735822122084b9deb1565406f8285e08452bb33720542bf95cdb2f5a42694c55e33529005f64736f6c634300080c0033a2646970667358221220aeae4eacfbb871dc6fa8e97c1fde157dd2549b67a5c3f2083da9f9c304acea9c64736f6c634300080c0033000000000000000000000000d244e2e0b6e90124b6b59401b06b2cf15aac78e5
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80637cd07e47116100715780637cd07e471461012b5780639aab92481461013e578063a2e74af614610146578063c9c6539614610159578063e6a439051461016c578063f46901ed146101a057600080fd5b8063017e7e58146100ae578063094b7415146100de5780631e3dd18b146100f157806323cf311814610104578063574f2ba314610119575b600080fd5b6000546100c1906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6001546100c1906001600160a01b031681565b6100c16100ff3660046105fa565b6101b3565b61011761011236600461062f565b6101dd565b005b6004545b6040519081526020016100d5565b6002546100c1906001600160a01b031681565b61011d610232565b61011761015436600461062f565b610264565b6100c1610167366004610651565b6102b0565b6100c161017a366004610651565b60036020908152600092835260408084209091529082529020546001600160a01b031681565b6101176101ae36600461062f565b6105a1565b600481815481106101c357600080fd5b6000918252602090912001546001600160a01b0316905081565b6001546001600160a01b031633146102105760405162461bcd60e51b815260040161020790610684565b60405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600060405180602001610244906105ed565b6020820181038252601f19601f8201166040525080519060200120905090565b6001546001600160a01b0316331461028e5760405162461bcd60e51b815260040161020790610684565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000816001600160a01b0316836001600160a01b031614156103145760405162461bcd60e51b815260206004820152601a60248201527f4e455855533a204944454e544943414c5f4144445245535345530000000000006044820152606401610207565b600080836001600160a01b0316856001600160a01b03161061033757838561033a565b84845b90925090506001600160a01b03821661038b5760405162461bcd60e51b81526020600482015260136024820152724e455855533a205a45524f5f4144445245535360681b6044820152606401610207565b6001600160a01b038281166000908152600360209081526040808320858516845290915290205416156103f55760405162461bcd60e51b81526020600482015260126024820152714e455855533a20504149525f45584953545360701b6044820152606401610207565b600060405180602001610407906105ed565b601f1982820381018352601f9091011660408190526bffffffffffffffffffffffff19606086811b8216602084015285901b166034820152909150600090604801604051602081830303815290604052805190602001209050808251602084016000f560405163485cc95560e01b81526001600160a01b03868116600483015285811660248301529196509086169063485cc95590604401600060405180830381600087803b1580156104b957600080fd5b505af11580156104cd573d6000803e3d6000fd5b505050506001600160a01b0384811660008181526003602081815260408084208987168086529083528185208054978d166001600160a01b031998891681179091559383528185208686528352818520805488168517905560048054600181018255958190527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9095018054909716841790965592548351928352908201527f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9910160405180910390a35050505092915050565b6001546001600160a01b031633146105cb5760405162461bcd60e51b815260040161020790610684565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b612499806106af83390190565b60006020828403121561060c57600080fd5b5035919050565b80356001600160a01b038116811461062a57600080fd5b919050565b60006020828403121561064157600080fd5b61064a82610613565b9392505050565b6000806040838503121561066457600080fd5b61066d83610613565b915061067b60208401610613565b90509250929050565b60208082526010908201526f2722ac2aa99d102327a92124a22222a760811b60408201526060019056fe60806040526001600c5534801561001557600080fd5b50604080518082018252600e81526d2722ac2aa9902628102a37b5b2b760911b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527e24906b47cf332ffd9ec1a7a506bcfd621ed91d1c133ce18e0088f914bceaa5818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c09091019092528151910120600355600580546001600160a01b0319163317905561238e8061010b6000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a714610409578063d505accf1461041c578063dd62ed3e1461042f578063fff6cae91461045a57600080fd5b8063ba9a7a56146103da578063bc25cf77146103e3578063c45a0155146103f657600080fd5b80637ecebe00116100d35780637ecebe001461035d57806389afcb441461037d57806395d89b41146103a5578063a9059cbb146103c757600080fd5b80636a6278421461032157806370a08231146103345780637464fc3d1461035457600080fd5b806323b872dd116101665780633644e515116101405780633644e515146102f3578063485cc955146102fc5780635909c0d51461030f5780635a3d54931461031857600080fd5b806323b872dd1461029f57806330adf81f146102b2578063313ce567146102d957600080fd5b8063022c0d9f146101ae57806306fdde03146101c35780630902f1ac14610206578063095ea7b31461023a5780630dfe16811461025d57806318160ddd14610288575b600080fd5b6101c16101bc366004611f07565b610462565b005b6101f06040518060400160405280600e81526020016d2722ac2aa9902628102a37b5b2b760911b81525081565b6040516101fd9190611fcd565b60405180910390f35b61020e610946565b604080516001600160701b03948516815293909216602084015263ffffffff16908201526060016101fd565b61024d610248366004612000565b610970565b60405190151581526020016101fd565b600654610270906001600160a01b031681565b6040516001600160a01b0390911681526020016101fd565b61029160005481565b6040519081526020016101fd565b61024d6102ad36600461202c565b610987565b6102917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6102e1601281565b60405160ff90911681526020016101fd565b61029160035481565b6101c161030a36600461206d565b610a1b565b61029160095481565b610291600a5481565b61029161032f3660046120a6565b610a96565b6102916103423660046120a6565b60016020526000908152604090205481565b610291600b5481565b61029161036b3660046120a6565b60046020526000908152604090205481565b61039061038b3660046120a6565b610ee7565b604080519283526020830191909152016101fd565b6101f06040518060400160405280600381526020016204e4c560ec1b81525081565b61024d6103d5366004612000565b611248565b6102916103e881565b6101c16103f13660046120a6565b611255565b600554610270906001600160a01b031681565b600754610270906001600160a01b031681565b6101c161042a3660046120c3565b611369565b61029161043d36600461206d565b600260209081526000928352604080842090915290825290205481565b6101c1611579565b600c5460011461048d5760405162461bcd60e51b81526004016104849061213a565b60405180910390fd5b6000600c55841515806104a05750600084115b6104f65760405162461bcd60e51b815260206004820152602160248201527f4e455855533a20494e53554646494349454e545f4f55545055545f414d4f554e6044820152601560fa1b6064820152608401610484565b600080610501610946565b5091509150816001600160701b0316871080156105265750806001600160701b031686105b6105725760405162461bcd60e51b815260206004820152601d60248201527f4e455855533a20494e53554646494349454e545f4c49515549444954590000006044820152606401610484565b60065460075460009182916001600160a01b039182169190811690891682148015906105b05750806001600160a01b0316896001600160a01b031614155b6105f05760405162461bcd60e51b81526020600482015260116024820152704e455855533a20494e56414c49445f544f60781b6044820152606401610484565b8a1561060157610601828a8d61169d565b891561061257610612818a8c61169d565b861561067f57604051636bbc7d9760e01b81526001600160a01b038a1690636bbc7d979061064c9033908f908f908e908e90600401612161565b600060405180830381600087803b15801561066657600080fd5b505af115801561067a573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156106c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e791906121ad565b6040516370a0823160e01b81523060048201529094506001600160a01b038216906370a0823190602401602060405180830381865afa15801561072e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075291906121ad565b92505050600089856001600160701b031661076d91906121dc565b831161077a576000610797565b61078d8a6001600160701b0387166121dc565b61079790846121dc565b905060006107ae8a6001600160701b0387166121dc565b83116107bb5760006107d8565b6107ce8a6001600160701b0387166121dc565b6107d890846121dc565b905060008211806107e95750600081115b6108355760405162461bcd60e51b815260206004820181905260248201527f4e455855533a20494e53554646494349454e545f494e5055545f414d4f554e546044820152606401610484565b60006108576108458460036117e1565b610851876103e86117e1565b90611848565b905060006108696108458460036117e1565b905061088e620f42406108886001600160701b038b8116908b166117e1565b906117e1565b61089883836117e1565b10156108d15760405162461bcd60e51b81526020600482015260086024820152674e455855533a204b60c01b6044820152606401610484565b50506108df8484888861189e565b60408051838152602081018390529081018c9052606081018b90526001600160a01b038a169033907fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229060800160405180910390a350506001600c55505050505050505050565b6008546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b600061097d338484611a86565b5060015b92915050565b6001600160a01b038316600090815260026020908152604080832033845290915281205460001914610a06576001600160a01b03841660009081526002602090815260408083203384529091529020546109e19083611848565b6001600160a01b03851660009081526002602090815260408083203384529091529020555b610a11848484611ae8565b5060019392505050565b6005546001600160a01b03163314610a685760405162461bcd60e51b815260206004820152601060248201526f2722ac2aa99d102327a92124a22222a760811b6044820152606401610484565b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b6000600c54600114610aba5760405162461bcd60e51b81526004016104849061213a565b6000600c81905580610aca610946565b506006546040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610b1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4091906121ad565b6007546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb291906121ad565b90506000610bc9836001600160701b038716611848565b90506000610be0836001600160701b038716611848565b90506000610bee8787611b8e565b60005490915080610db65760055460408051637cd07e4760e01b815290516000926001600160a01b031691637cd07e479160048083019260209291908290030181865afa158015610c43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6791906121f3565b9050336001600160a01b0382161415610d3957806001600160a01b03166340dc0e376040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdc91906121ad565b995060008a118015610cf057506000198a14155b610d345760405162461bcd60e51b81526020600482015260156024820152744261642064657369726564206c697175696469747960581b6044820152606401610484565b610db0565b6001600160a01b03811615610d895760405162461bcd60e51b815260206004820152601660248201527526bab9ba103737ba103430bb329036b4b3b930ba37b960511b6044820152606401610484565b610da16103e8610851610d9c88886117e1565b611ccb565b9950610db060006103e8611d3b565b50610dfd565b610dfa6001600160701b038916610dcd86846117e1565b610dd79190612226565b6001600160701b038916610deb86856117e1565b610df59190612226565b611dca565b98505b60008911610e595760405162461bcd60e51b8152602060048201526024808201527f4e455855533a20494e53554646494349454e545f4c49515549444954595f4d496044820152631395115160e21b6064820152608401610484565b610e638a8a611d3b565b610e6f86868a8a61189e565b8115610e9957600854610e95906001600160701b0380821691600160701b9004166117e1565b600b555b604080518581526020810185905233917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a250506001600c5550949695505050505050565b600080600c54600114610f0c5760405162461bcd60e51b81526004016104849061213a565b6000600c81905580610f1c610946565b506006546007546040516370a0823160e01b81523060048201529395509193506001600160a01b039081169291169060009083906370a0823190602401602060405180830381865afa158015610f76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9a91906121ad565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610fe4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100891906121ad565b306000908152600160205260408120549192506110258888611b8e565b6000549091508061103684876117e1565b6110409190612226565b9a508061104d84866117e1565b6110579190612226565b995060008b118015611069575060008a115b6110c15760405162461bcd60e51b8152602060048201526024808201527f4e455855533a20494e53554646494349454e545f4c49515549444954595f42556044820152631493915160e21b6064820152608401610484565b6110cb3084611de2565b6110d6878d8d61169d565b6110e1868d8c61169d565b6040516370a0823160e01b81523060048201526001600160a01b038816906370a0823190602401602060405180830381865afa158015611125573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114991906121ad565b6040516370a0823160e01b81523060048201529095506001600160a01b038716906370a0823190602401602060405180830381865afa158015611190573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b491906121ad565b93506111c285858b8b61189e565b81156111ec576008546111e8906001600160701b0380821691600160701b9004166117e1565b600b555b604080518c8152602081018c90526001600160a01b038e169133917fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496910160405180910390a35050505050505050506001600c81905550915091565b600061097d338484611ae8565b600c546001146112775760405162461bcd60e51b81526004016104849061213a565b6000600c556006546007546008546040516370a0823160e01b81523060048201526001600160a01b039384169390921691611312918491869161130d916001600160701b039091169084906370a08231906024015b602060405180830381865afa1580156112e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085191906121ad565b61169d565b6008546040516370a0823160e01b815230600482015261135f918391869161130d91600160701b9091046001600160701b0316906001600160a01b038516906370a08231906024016112cc565b50506001600c5550565b428410156113aa5760405162461bcd60e51b815260206004820152600e60248201526d1391561554ce881156141254915160921b6044820152606401610484565b6003546001600160a01b038816600090815260046020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b9190876113fd8361223a565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161147692919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa1580156114e1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906115175750886001600160a01b0316816001600160a01b0316145b6115635760405162461bcd60e51b815260206004820152601860248201527f4e455855533a20494e56414c49445f5349474e415455524500000000000000006044820152606401610484565b61156e898989611a86565b505050505050505050565b600c5460011461159b5760405162461bcd60e51b81526004016104849061213a565b6000600c556006546040516370a0823160e01b8152306004820152611696916001600160a01b0316906370a0823190602401602060405180830381865afa1580156115ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160e91906121ad565b6007546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611656573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167a91906121ad565b6008546001600160701b0380821691600160701b90041661189e565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b179052915160009283928716916117299190612255565b6000604051808303816000865af19150503d8060008114611766576040519150601f19603f3d011682016040523d82523d6000602084013e61176b565b606091505b50915091508180156117955750805115806117955750808060200190518101906117959190612271565b6117da5760405162461bcd60e51b81526020600482015260166024820152751391561554ce881514905394d1915497d1905253115160521b6044820152606401610484565b5050505050565b6000811580611805575082826117f78183612293565b92506118039083612226565b145b6109815760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b6044820152606401610484565b60008261185583826121dc565b91508111156109815760405162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b6044820152606401610484565b6001600160701b0384118015906118bc57506001600160701b038311155b6118fa5760405162461bcd60e51b815260206004820152600f60248201526e4e455855533a204f564552464c4f5760881b6044820152606401610484565b600061190b640100000000426122b2565b60085490915060009061192b90600160e01b900463ffffffff16836122c6565b905060008163ffffffff1611801561194b57506001600160701b03841615155b801561195f57506001600160701b03831615155b156119ee578063ffffffff166119878561197886611e6c565b6001600160e01b031690611e85565b6001600160e01b031661199a9190612293565b600960008282546119ab91906122eb565b909155505063ffffffff81166119c48461197887611e6c565b6001600160e01b03166119d79190612293565b600a60008282546119e891906122eb565b90915550505b6008805463ffffffff8416600160e01b026001600160e01b036001600160701b03898116600160701b9081026001600160e01b03199095168c83161794909417918216831794859055604080519382169282169290921783529290930490911660208201527f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1910160405180910390a1505050505050565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316600090815260016020526040902054611b0b9082611848565b6001600160a01b038085166000908152600160205260408082209390935590841681522054611b3a9082611e9a565b6001600160a01b0380841660008181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611adb9085815260200190565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b8152600401602060405180830381865afa158015611be4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0891906121f3565b600b546001600160a01b038216158015945091925090611cb7578015611cb2576000611c43610d9c6001600160701b038881169088166117e1565b90506000611c5083611ccb565b905080821115611caf576000611c72611c698484611848565b600054906117e1565b90506000611c8b83611c858660056117e1565b90611e9a565b90506000611c998284612226565b90508015611cab57611cab8782611d3b565b5050505b50505b611cc3565b8015611cc3576000600b555b505092915050565b60006003821115611d2c5750806000611ce5600283612226565b611cf09060016122eb565b90505b81811015611d2657905080600281611d0b8186612226565b611d1591906122eb565b611d1f9190612226565b9050611cf3565b50919050565b8115611d36575060015b919050565b600054611d489082611e9a565b60009081556001600160a01b038316815260016020526040902054611d6d9082611e9a565b6001600160a01b0383166000818152600160205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611dbe9085815260200190565b60405180910390a35050565b6000818310611dd95781611ddb565b825b9392505050565b6001600160a01b038216600090815260016020526040902054611e059082611848565b6001600160a01b03831660009081526001602052604081209190915554611e2c9082611848565b60009081556040518281526001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611dbe565b6000610981600160701b6001600160701b038416612303565b6000611ddb6001600160701b03831684612332565b600082611ea783826122eb565b91508110156109815760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b6044820152606401610484565b6001600160a01b0381168114611f0457600080fd5b50565b600080600080600060808688031215611f1f57600080fd5b85359450602086013593506040860135611f3881611eef565b9250606086013567ffffffffffffffff80821115611f5557600080fd5b818801915088601f830112611f6957600080fd5b813581811115611f7857600080fd5b896020828501011115611f8a57600080fd5b9699959850939650602001949392505050565b60005b83811015611fb8578181015183820152602001611fa0565b83811115611fc7576000848401525b50505050565b6020815260008251806020840152611fec816040850160208701611f9d565b601f01601f19169190910160400192915050565b6000806040838503121561201357600080fd5b823561201e81611eef565b946020939093013593505050565b60008060006060848603121561204157600080fd5b833561204c81611eef565b9250602084013561205c81611eef565b929592945050506040919091013590565b6000806040838503121561208057600080fd5b823561208b81611eef565b9150602083013561209b81611eef565b809150509250929050565b6000602082840312156120b857600080fd5b8135611ddb81611eef565b600080600080600080600060e0888a0312156120de57600080fd5b87356120e981611eef565b965060208801356120f981611eef565b95506040880135945060608801359350608088013560ff8116811461211d57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6020808252600d908201526c1391561554ce881313d0d2d151609a1b604082015260600190565b60018060a01b038616815284602082015283604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f909201601f19160101949350505050565b6000602082840312156121bf57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156121ee576121ee6121c6565b500390565b60006020828403121561220557600080fd5b8151611ddb81611eef565b634e487b7160e01b600052601260045260246000fd5b60008261223557612235612210565b500490565b600060001982141561224e5761224e6121c6565b5060010190565b60008251612267818460208701611f9d565b9190910192915050565b60006020828403121561228357600080fd5b81518015158114611ddb57600080fd5b60008160001904831182151516156122ad576122ad6121c6565b500290565b6000826122c1576122c1612210565b500690565b600063ffffffff838116908316818110156122e3576122e36121c6565b039392505050565b600082198211156122fe576122fe6121c6565b500190565b60006001600160e01b0382811684821681151582840482111615612329576123296121c6565b02949350505050565b60006001600160e01b038381168061234c5761234c612210565b9216919091049291505056fea264697066735822122084b9deb1565406f8285e08452bb33720542bf95cdb2f5a42694c55e33529005f64736f6c634300080c0033a2646970667358221220aeae4eacfbb871dc6fa8e97c1fde157dd2549b67a5c3f2083da9f9c304acea9c64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d244e2e0b6e90124b6b59401b06b2cf15aac78e5
-----Decoded View---------------
Arg [0] : _feeToSetter (address): 0xD244e2E0b6E90124b6b59401b06B2CF15aaC78E5
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d244e2e0b6e90124b6b59401b06b2cf15aac78e5
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in XDC
Multichain Portfolio | 32 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.