Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14721512 | 928 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x32970f62...8955B242d The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
MdexPair
Compiler Version
v0.5.16+commit.9c3226ce
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-10-13 */ pragma solidity =0.5.16; interface IMdexFactory { event PairCreated(address indexed token0, address indexed token1, address pair, uint256); function FEE_RATE_DENOMINATOR() external view returns (uint256); function feeRateNumerator() external view returns (uint256); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function feeToRate() external view returns (uint256); function initCodeHash() external view returns (bytes32); function pairFeeToRate(address) external view returns (uint256); function pairFees(address) external view returns (uint256); 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 addPair(address) external returns (bool); function delPair(address) external returns (bool); function getSupportListLength() external view returns (uint256); function isSupportPair(address pair) external view returns (bool); function getSupportPair(uint256 index) external view returns (address); function setFeeRateNumerator(uint256) external; function setPairFees(address pair, uint256 fee) external; function setDefaultFeeToRate(uint256) external; function setPairFeeToRate(address pair, uint256 rate) external; function getPairFees(address) external view returns (uint256); function getPairRate(address) external view returns (uint256); function sortTokens(address tokenA, address tokenB) external pure returns (address token0, address token1); function pairFor(address tokenA, address tokenB) external view returns (address pair); function getReserves(address tokenA, address tokenB) external view returns (uint256 reserveA, uint256 reserveB); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut, address token0, address token1 ) external view returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut, address token0, address token1 ) external view returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); } interface IMdexPair { event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to); event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } interface IMdexERC20 { event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; } interface IERC20 { event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 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 (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); } interface IswapV2Callee { function swapV2Call( address sender, uint256 amount0, uint256 amount1, bytes calldata data ) external; } library SafeMath { uint256 constant WAD = 10**18; uint256 constant RAY = 10**27; function wad() public pure returns (uint256) { return WAD; } function ray() public pure returns (uint256) { return RAY; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } function mul(uint256 a, uint256 b) internal pure returns (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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a <= b ? a : b; } function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } function sqrt(uint256 a) internal pure returns (uint256 b) { if (a > 3) { b = a; uint256 x = a / 2 + 1; while (x < b) { b = x; x = (a / x + x) / 2; } } else if (a != 0) { b = 1; } } function wmul(uint256 a, uint256 b) internal pure returns (uint256) { return mul(a, b) / WAD; } function wmulRound(uint256 a, uint256 b) internal pure returns (uint256) { return add(mul(a, b), WAD / 2) / WAD; } function rmul(uint256 a, uint256 b) internal pure returns (uint256) { return mul(a, b) / RAY; } function rmulRound(uint256 a, uint256 b) internal pure returns (uint256) { return add(mul(a, b), RAY / 2) / RAY; } function wdiv(uint256 a, uint256 b) internal pure returns (uint256) { return div(mul(a, WAD), b); } function wdivRound(uint256 a, uint256 b) internal pure returns (uint256) { return add(mul(a, WAD), b / 2) / b; } function rdiv(uint256 a, uint256 b) internal pure returns (uint256) { return div(mul(a, RAY), b); } function rdivRound(uint256 a, uint256 b) internal pure returns (uint256) { return add(mul(a, RAY), b / 2) / b; } function wpow(uint256 x, uint256 n) internal pure returns (uint256) { uint256 result = WAD; while (n > 0) { if (n % 2 != 0) { result = wmul(result, x); } x = wmul(x, x); n /= 2; } return result; } function rpow(uint256 x, uint256 n) internal pure returns (uint256) { uint256 result = RAY; while (n > 0) { if (n % 2 != 0) { result = rmul(result, x); } x = rmul(x, x); n /= 2; } return result; } } 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); } } library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } contract MdexERC20 is IMdexERC20 { using SafeMath for uint256; string public constant name = "MDEX LP Token"; string public constant symbol = "ETH_MDEX_LP"; uint8 public constant decimals = 18; uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; bytes32 public DOMAIN_SEPARATOR; // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9; mapping(address => uint256) public nonces; event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 value); constructor() public { uint256 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, uint256 value) internal { totalSupply = totalSupply.add(value); balanceOf[to] = balanceOf[to].add(value); emit Transfer(address(0), to, value); } function _burn(address from, uint256 value) internal { balanceOf[from] = balanceOf[from].sub(value); totalSupply = totalSupply.sub(value); emit Transfer(from, address(0), value); } function _approve( address owner, address spender, uint256 value ) private { allowance[owner][spender] = value; emit Approval(owner, spender, value); } function _transfer( address from, address to, uint256 value ) private { balanceOf[from] = balanceOf[from].sub(value); balanceOf[to] = balanceOf[to].add(value); emit Transfer(from, to, value); } function approve(address spender, uint256 value) external returns (bool) { _approve(msg.sender, spender, value); return true; } function transfer(address to, uint256 value) external returns (bool) { _transfer(msg.sender, to, value); return true; } function transferFrom( address from, address to, uint256 value ) external returns (bool) { if (allowance[from][msg.sender] != uint256(-1)) { allowance[from][msg.sender] = allowance[from][msg.sender].sub(value); } _transfer(from, to, value); return true; } function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external { require(deadline >= block.timestamp, "MdexSwap: 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, "MdexSwap: INVALID_SIGNATURE"); _approve(owner, spender, value); } } contract MdexPair is IMdexPair, MdexERC20 { using SafeMath for uint256; using UQ112x112 for uint224; uint256 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 uint256 public price0CumulativeLast; uint256 public price1CumulativeLast; uint256 public kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event uint256 private unlocked = 1; modifier lock() { require(unlocked == 1, "MdexSwap: 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, uint256 value ) private { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), "MdexSwap: TRANSFER_FAILED"); } event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to); event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to); event Sync(uint112 reserve0, uint112 reserve1); constructor() public { factory = msg.sender; } // called once by the factory at time of deployment function initialize(address _token0, address _token1) external { require(msg.sender == factory, "MdexSwap: FORBIDDEN"); // sufficient check token0 = _token0; token1 = _token1; } // update reserves and, on the first call per block, price accumulators function _update( uint256 balance0, uint256 balance1, uint112 _reserve0, uint112 _reserve1 ) private { require(balance0 <= uint112(-1) && balance1 <= uint112(-1), "MdexSwap: 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 += uint256(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) * timeElapsed; price1CumulativeLast += uint256(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 = IMdexFactory(factory).feeTo(); feeOn = feeTo != address(0) && IMdexFactory(factory).getPairRate(address(this)) != 9; uint256 _kLast = kLast; // gas savings if (feeOn) { if (_kLast != 0) { uint256 rootK = SafeMath.sqrt(uint256(_reserve0).mul(_reserve1)); uint256 rootKLast = SafeMath.sqrt(_kLast); if (rootK > rootKLast) { uint256 numerator = totalSupply.mul(rootK.sub(rootKLast)); uint256 denominator = rootK.mul(IMdexFactory(factory).getPairRate(address(this))).add(rootKLast); uint256 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 (uint256 liquidity) { (uint112 _reserve0, uint112 _reserve1, ) = getReserves(); // gas savings uint256 balance0 = IERC20(token0).balanceOf(address(this)); uint256 balance1 = IERC20(token1).balanceOf(address(this)); uint256 amount0 = balance0.sub(_reserve0); uint256 amount1 = balance1.sub(_reserve1); bool feeOn = _mintFee(_reserve0, _reserve1); uint256 _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee if (_totalSupply == 0) { liquidity = SafeMath.sqrt(amount0.mul(amount1)).sub(MINIMUM_LIQUIDITY); _mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens } else { liquidity = SafeMath.min(amount0.mul(_totalSupply) / _reserve0, amount1.mul(_totalSupply) / _reserve1); } require(liquidity > 0, "MdexSwap: INSUFFICIENT_LIQUIDITY_MINTED"); _mint(to, liquidity); _update(balance0, balance1, _reserve0, _reserve1); if (feeOn) kLast = uint256(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 (uint256 amount0, uint256 amount1) { (uint112 _reserve0, uint112 _reserve1, ) = getReserves(); // gas savings address _token0 = token0; // gas savings address _token1 = token1; // gas savings uint256 balance0 = IERC20(_token0).balanceOf(address(this)); uint256 balance1 = IERC20(_token1).balanceOf(address(this)); uint256 liquidity = balanceOf[address(this)]; bool feeOn = _mintFee(_reserve0, _reserve1); uint256 _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, "MdexSwap: INSUFFICIENT_LIQUIDITY_BURNED"); _burn(address(this), liquidity); _safeTransfer(_token0, to, amount0); _safeTransfer(_token1, to, amount1); balance0 = IERC20(_token0).balanceOf(address(this)); balance1 = IERC20(_token1).balanceOf(address(this)); _update(balance0, balance1, _reserve0, _reserve1); if (feeOn) kLast = uint256(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( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external lock { require(amount0Out > 0 || amount1Out > 0, "MdexSwap: INSUFFICIENT_OUTPUT_AMOUNT"); (uint112 _reserve0, uint112 _reserve1, ) = getReserves(); // gas savings require(amount0Out < _reserve0 && amount1Out < _reserve1, "MdexSwap: INSUFFICIENT_LIQUIDITY"); uint256 balance0; uint256 balance1; { // scope for _token{0,1}, avoids stack too deep errors address _token0 = token0; address _token1 = token1; require(to != _token0 && to != _token1, "MdexSwap: 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) IswapV2Callee(to).swapV2Call(msg.sender, amount0Out, amount1Out, data); balance0 = IERC20(_token0).balanceOf(address(this)); balance1 = IERC20(_token1).balanceOf(address(this)); } uint256 amount0In = balance0 > _reserve0 - amount0Out ? balance0 - (_reserve0 - amount0Out) : 0; uint256 amount1In = balance1 > _reserve1 - amount1Out ? balance1 - (_reserve1 - amount1Out) : 0; require(amount0In > 0 || amount1In > 0, "MdexSwap: INSUFFICIENT_INPUT_AMOUNT"); { // scope for reserve{0,1}Adjusted, avoids stack too deep errors uint256 balance0Adjusted = balance0.mul(1e4).sub(amount0In.mul(IMdexFactory(factory).getPairFees(address(this)))); uint256 balance1Adjusted = balance1.mul(1e4).sub(amount1In.mul(IMdexFactory(factory).getPairFees(address(this)))); require(balance0Adjusted.mul(balance1Adjusted) >= uint256(_reserve0).mul(_reserve1).mul(1e8), "MdexSwap: 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, IERC20(_token0).balanceOf(address(this)).sub(reserve0)); _safeTransfer(_token1, to, IERC20(_token1).balanceOf(address(this)).sub(reserve1)); } // force reserves to match balances function sync() external lock { _update(IERC20(token0).balanceOf(address(this)), IERC20(token1).balanceOf(address(this)), reserve0, reserve1); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint112","name":"reserve0","type":"uint112"},{"indexed":false,"internalType":"uint112","name":"reserve1","type":"uint112"}],"name":"Sync","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MINIMUM_LIQUIDITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"_reserve0","type":"uint112"},{"internalType":"uint112","name":"_reserve1","type":"uint112"},{"internalType":"uint32","name":"_blockTimestampLast","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token0","type":"address"},{"internalType":"address","name":"_token1","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"kLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"price0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"skim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount0Out","type":"uint256"},{"internalType":"uint256","name":"amount1Out","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"sync","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a714610534578063d505accf1461053c578063dd62ed3e1461058d578063fff6cae9146105bb576101a9565b8063ba9a7a56146104fe578063bc25cf7714610506578063c45a01551461052c576101a9565b80637ecebe00116100d35780637ecebe001461046557806389afcb441461048b57806395d89b41146104ca578063a9059cbb146104d2576101a9565b80636a6278421461041157806370a08231146104375780637464fc3d1461045d576101a9565b806323b872dd116101665780633644e515116101405780633644e515146103cb578063485cc955146103d35780635909c0d5146104015780635a3d549314610409576101a9565b806323b872dd1461036f57806330adf81f146103a5578063313ce567146103ad576101a9565b8063022c0d9f146101ae57806306fdde031461023c5780630902f1ac146102b9578063095ea7b3146102f15780630dfe16811461033157806318160ddd14610355575b600080fd5b61023a600480360360808110156101c457600080fd5b8135916020810135916001600160a01b0360408301351691908101906080810160608201356401000000008111156101fb57600080fd5b82018360208201111561020d57600080fd5b8035906020019184600183028401116401000000008311171561022f57600080fd5b5090925090506105c3565b005b610244610bcc565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027e578181015183820152602001610266565b50505050905090810190601f1680156102ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102c1610bf5565b604080516001600160701b03948516815292909316602083015263ffffffff168183015290519081900360600190f35b61031d6004803603604081101561030757600080fd5b506001600160a01b038135169060200135610c1f565b604080519115158252519081900360200190f35b610339610c36565b604080516001600160a01b039092168252519081900360200190f35b61035d610c45565b60408051918252519081900360200190f35b61031d6004803603606081101561038557600080fd5b506001600160a01b03813581169160208101359091169060400135610c4b565b61035d610ce5565b6103b5610d09565b6040805160ff9092168252519081900360200190f35b61035d610d0e565b61023a600480360360408110156103e957600080fd5b506001600160a01b0381358116916020013516610d14565b61035d610d97565b61035d610d9d565b61035d6004803603602081101561042757600080fd5b50356001600160a01b0316610da3565b61035d6004803603602081101561044d57600080fd5b50356001600160a01b03166110a2565b61035d6110b4565b61035d6004803603602081101561047b57600080fd5b50356001600160a01b03166110ba565b6104b1600480360360208110156104a157600080fd5b50356001600160a01b03166110cc565b6040805192835260208301919091528051918290030190f35b610244611471565b61031d600480360360408110156104e857600080fd5b506001600160a01b038135169060200135611498565b61035d6114a5565b61023a6004803603602081101561051c57600080fd5b50356001600160a01b03166114ab565b610339611615565b610339611624565b61023a600480360360e081101561055257600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611633565b61035d600480360360408110156105a357600080fd5b506001600160a01b0381358116916020013516611834565b61023a611851565b600c5460011461060d576040805162461bcd60e51b815260206004820152601060248201526f1359195e14ddd85c0e881313d0d2d15160821b604482015290519081900360640190fd5b6000600c55841515806106205750600084115b61065b5760405162461bcd60e51b81526004018080602001828103825260248152602001806124176024913960400191505060405180910390fd5b600080610666610bf5565b5091509150816001600160701b03168710801561068b5750806001600160701b031686105b6106dc576040805162461bcd60e51b815260206004820181905260248201527f4d646578537761703a20494e53554646494349454e545f4c4951554944495459604482015290519081900360640190fd5b60065460075460009182916001600160a01b0391821691908116908916821480159061071a5750806001600160a01b0316896001600160a01b031614155b610762576040805162461bcd60e51b81526020600482015260146024820152734d646578537761703a20494e56414c49445f544f60601b604482015290519081900360640190fd5b8a1561077357610773828a8d6119b2565b891561078457610784818a8c6119b2565b861561083f57886001600160a01b031663b2ff9f26338d8d8c8c6040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b15801561082657600080fd5b505af115801561083a573d6000803e3d6000fd5b505050505b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561088557600080fd5b505afa158015610899573d6000803e3d6000fd5b505050506040513d60208110156108af57600080fd5b5051604080516370a0823160e01b815230600482015290519195506001600160a01b038316916370a0823191602480820192602092909190829003018186803b1580156108fb57600080fd5b505afa15801561090f573d6000803e3d6000fd5b505050506040513d602081101561092557600080fd5b5051925060009150506001600160701b0385168a90038311610948576000610957565b89856001600160701b03160383035b9050600089856001600160701b0316038311610974576000610983565b89856001600160701b03160383035b905060008211806109945750600081115b6109cf5760405162461bcd60e51b815260040180806020018281038252602381526020018061245c6023913960400191505060405180910390fd5b60055460408051634c2fc06f60e01b81523060048201529051600092610a7c92610a5e926001600160a01b0390921691634c2fc06f91602480820192602092909190829003018186803b158015610a2557600080fd5b505afa158015610a39573d6000803e3d6000fd5b505050506040513d6020811015610a4f57600080fd5b5051859063ffffffff611b4c16565b610a708761271063ffffffff611b4c16565b9063ffffffff611bac16565b60055460408051634c2fc06f60e01b81523060048201529051929350600092610ad592610a5e926001600160a01b0390911691634c2fc06f91602480820192602092909190829003018186803b158015610a2557600080fd5b9050610b076305f5e100610afb6001600160701b038b8116908b1663ffffffff611b4c16565b9063ffffffff611b4c16565b610b17838363ffffffff611b4c16565b1015610b58576040805162461bcd60e51b815260206004820152600b60248201526a4d646578537761703a204b60a81b604482015290519081900360640190fd5b5050610b6684848888611bee565b60408051838152602081018390528082018d9052606081018c905290516001600160a01b038b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600c55505050505050505050565b6040518060400160405280600d81526020016c26a222ac102628102a37b5b2b760991b81525081565b6008546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b6000610c2c338484611db2565b5060015b92915050565b6006546001600160a01b031681565b60005481565b6001600160a01b038316600090815260026020908152604080832033845290915281205460001914610cd0576001600160a01b0384166000908152600260209081526040808320338452909152902054610cab908363ffffffff611bac16565b6001600160a01b03851660009081526002602090815260408083203384529091529020555b610cdb848484611e14565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b6005546001600160a01b03163314610d69576040805162461bcd60e51b815260206004820152601360248201527226b232bc29bbb0b81d102327a92124a22222a760691b604482015290519081900360640190fd5b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b60095481565b600a5481565b6000600c54600114610def576040805162461bcd60e51b815260206004820152601060248201526f1359195e14ddd85c0e881313d0d2d15160821b604482015290519081900360640190fd5b6000600c81905580610dff610bf5565b50600654604080516370a0823160e01b815230600482015290519395509193506000926001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015610e5357600080fd5b505afa158015610e67573d6000803e3d6000fd5b505050506040513d6020811015610e7d57600080fd5b5051600754604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610ed057600080fd5b505afa158015610ee4573d6000803e3d6000fd5b505050506040513d6020811015610efa57600080fd5b505190506000610f19836001600160701b03871663ffffffff611bac16565b90506000610f36836001600160701b03871663ffffffff611bac16565b90506000610f448787611ece565b60005490915080610f8157610f6d6103e8610a70610f68878763ffffffff611b4c16565b61212a565b9850610f7c60006103e861217c565b610fd0565b610fcd6001600160701b038916610f9e868463ffffffff611b4c16565b81610fa557fe5b046001600160701b038916610fc0868563ffffffff611b4c16565b81610fc757fe5b04612212565b98505b6000891161100f5760405162461bcd60e51b815260040180806020018281038252602781526020018061247f6027913960400191505060405180910390fd5b6110198a8a61217c565b61102586868a8a611bee565b811561105557600854611051906001600160701b0380821691600160701b90041663ffffffff611b4c16565b600b555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600c5550949695505050505050565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b600080600c54600114611119576040805162461bcd60e51b815260206004820152601060248201526f1359195e14ddd85c0e881313d0d2d15160821b604482015290519081900360640190fd5b6000600c81905580611129610bf5565b50600654600754604080516370a0823160e01b815230600482015290519496509294506001600160a01b039182169391169160009184916370a08231916024808301926020929190829003018186803b15801561118557600080fd5b505afa158015611199573d6000803e3d6000fd5b505050506040513d60208110156111af57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038516916370a08231916024808301926020929190829003018186803b1580156111fd57600080fd5b505afa158015611211573d6000803e3d6000fd5b505050506040513d602081101561122757600080fd5b5051306000908152600160205260408120549192506112468888611ece565b6000549091508061125d848763ffffffff611b4c16565b8161126457fe5b049a5080611278848663ffffffff611b4c16565b8161127f57fe5b04995060008b118015611292575060008a115b6112cd5760405162461bcd60e51b81526004018080602001828103825260278152602001806123f06027913960400191505060405180910390fd5b6112d73084612229565b6112e2878d8d6119b2565b6112ed868d8c6119b2565b604080516370a0823160e01b815230600482015290516001600160a01b038916916370a08231916024808301926020929190829003018186803b15801561133357600080fd5b505afa158015611347573d6000803e3d6000fd5b505050506040513d602081101561135d57600080fd5b5051604080516370a0823160e01b815230600482015290519196506001600160a01b038816916370a0823191602480820192602092909190829003018186803b1580156113a957600080fd5b505afa1580156113bd573d6000803e3d6000fd5b505050506040513d60208110156113d357600080fd5b505193506113e385858b8b611bee565b81156114135760085461140f906001600160701b0380821691600160701b90041663ffffffff611b4c16565b600b555b604080518c8152602081018c905281516001600160a01b038f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600c81905550915091565b6040518060400160405280600b81526020016a04554485f4d4445585f4c560ac1b81525081565b6000610c2c338484611e14565b6103e881565b600c546001146114f5576040805162461bcd60e51b815260206004820152601060248201526f1359195e14ddd85c0e881313d0d2d15160821b604482015290519081900360640190fd5b6000600c55600654600754600854604080516370a0823160e01b815230600482015290516001600160a01b0394851694909316926115a4928592879261159f926001600160701b03169185916370a0823191602480820192602092909190829003018186803b15801561156757600080fd5b505afa15801561157b573d6000803e3d6000fd5b505050506040513d602081101561159157600080fd5b50519063ffffffff611bac16565b6119b2565b600854604080516370a0823160e01b8152306004820152905161160b928492879261159f92600160701b90046001600160701b0316916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561156757600080fd5b50506001600c5550565b6005546001600160a01b031681565b6007546001600160a01b031681565b4284101561167c576040805162461bcd60e51b81526020600482015260116024820152701359195e14ddd85c0e8811561412549151607a1b604482015290519081900360640190fd5b6003546001600160a01b0380891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e08501825280519083012061190160f01b6101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e280820193601f1981019281900390910190855afa158015611797573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906117cd5750886001600160a01b0316816001600160a01b0316145b61181e576040805162461bcd60e51b815260206004820152601b60248201527f4d646578537761703a20494e56414c49445f5349474e41545552450000000000604482015290519081900360640190fd5b611829898989611db2565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b600c5460011461189b576040805162461bcd60e51b815260206004820152601060248201526f1359195e14ddd85c0e881313d0d2d15160821b604482015290519081900360640190fd5b6000600c55600654604080516370a0823160e01b815230600482015290516119ab926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156118ec57600080fd5b505afa158015611900573d6000803e3d6000fd5b505050506040513d602081101561191657600080fd5b5051600754604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561196357600080fd5b505afa158015611977573d6000803e3d6000fd5b505050506040513d602081101561198d57600080fd5b50516008546001600160701b0380821691600160701b900416611bee565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1781529251815160009460609489169392918291908083835b60208310611a5f5780518252601f199092019160209182019101611a40565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611ac1576040519150601f19603f3d011682016040523d82523d6000602084013e611ac6565b606091505b5091509150818015611af4575080511580611af45750808060200190516020811015611af157600080fd5b50515b611b45576040805162461bcd60e51b815260206004820152601960248201527f4d646578537761703a205452414e534645525f4641494c454400000000000000604482015290519081900360640190fd5b5050505050565b600082611b5b57506000610c30565b82820282848281611b6857fe5b0414611ba55760405162461bcd60e51b815260040180806020018281038252602181526020018061243b6021913960400191505060405180910390fd5b9392505050565b6000611ba583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506122c7565b6001600160701b038411801590611c0c57506001600160701b038311155b611c52576040805162461bcd60e51b81526020600482015260126024820152714d646578537761703a204f564552464c4f5760701b604482015290519081900360640190fd5b60085463ffffffff42811691600160e01b90048116820390811615801590611c8257506001600160701b03841615155b8015611c9657506001600160701b03831615155b15611d07578063ffffffff16611cc485611caf8661235e565b6001600160e01b03169063ffffffff61237016565b600980546001600160e01b03929092169290920201905563ffffffff8116611cef84611caf8761235e565b600a80546001600160e01b0392909216929092020190555b600880546dffffffffffffffffffffffffffff19166001600160701b03888116919091176dffffffffffffffffffffffffffff60701b1916600160701b8883168102919091176001600160e01b0316600160e01b63ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316600090815260016020526040902054611e3d908263ffffffff611bac16565b6001600160a01b038085166000908152600160205260408082209390935590841681522054611e72908263ffffffff61239516565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b158015611f1f57600080fd5b505afa158015611f33573d6000803e3d6000fd5b505050506040513d6020811015611f4957600080fd5b505190506001600160a01b03811615801590611fdc5750600554604080516335d0ea0b60e11b815230600482015290516001600160a01b0390921691636ba1d41691602480820192602092909190829003018186803b158015611fab57600080fd5b505afa158015611fbf573d6000803e3d6000fd5b505050506040513d6020811015611fd557600080fd5b5051600914155b600b54909250821561211657801561211157600061200f610f686001600160701b0388811690881663ffffffff611b4c16565b9050600061201c8361212a565b90508082111561210e57600061204a61203b848463ffffffff611bac16565b6000549063ffffffff611b4c16565b600554604080516335d0ea0b60e11b815230600482015290519293506000926120ea9286926120de926001600160a01b0390921691636ba1d41691602480820192602092909190829003018186803b1580156120a557600080fd5b505afa1580156120b9573d6000803e3d6000fd5b505050506040513d60208110156120cf57600080fd5b5051879063ffffffff611b4c16565b9063ffffffff61239516565b905060008183816120f757fe5b049050801561210a5761210a878261217c565b5050505b50505b612122565b8015612122576000600b555b505092915050565b6000600382111561216d575080600160028204015b818110156121675780915060028182858161215657fe5b04018161215f57fe5b04905061213f565b50612177565b8115612177575060015b919050565b60005461218f908263ffffffff61239516565b60009081556001600160a01b0383168152600160205260409020546121ba908263ffffffff61239516565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818311156122225781611ba5565b5090919050565b6001600160a01b038216600090815260016020526040902054612252908263ffffffff611bac16565b6001600160a01b0383166000908152600160205260408120919091555461227f908263ffffffff611bac16565b60009081556040805183815290516001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b600081848411156123565760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561231b578181015183820152602001612303565b50505050905090810190601f1680156123485780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160701b0316600160701b0290565b60006001600160701b0382166001600160e01b0384168161238d57fe5b049392505050565b600082820183811015611ba5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fdfe4d646578537761703a20494e53554646494349454e545f4c49515549444954595f4255524e45444d646578537761703a20494e53554646494349454e545f4f55545055545f414d4f554e54536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d646578537761703a20494e53554646494349454e545f494e5055545f414d4f554e544d646578537761703a20494e53554646494349454e545f4c49515549444954595f4d494e544544a265627a7a723158200c98fcbdd32df0a46fd03f480b0546352c0ae876452e2ea4e62f57859910393964736f6c63430005100032
Deployed Bytecode Sourcemap
25243:10319:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25243:10319:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32809:2142;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;32809:2142:0;;;;;;;;-1:-1:-1;;;;;32809:2142:0;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;32809:2142:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;32809:2142:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;32809:2142:0;;-1:-1:-1;32809:2142:0;-1:-1:-1;32809:2142:0;:::i;:::-;;21866:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;21866:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26244:313;;;:::i;:::-;;;;-1:-1:-1;;;;;26244:313:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23921:150;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;23921:150:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;25543:21;;;:::i;:::-;;;;-1:-1:-1;;;;;25543:21:0;;;;;;;;;;;;;;22012:26;;;:::i;:::-;;;;;;;;;;;;;;;;24229:341;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;24229:341:0;;;;;;;;;;;;;;;;;:::i;22312:108::-;;;:::i;21970:35::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22169:31;;;:::i;27385:218::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;27385:218:0;;;;;;;;;;:::i;25873:35::-;;;:::i;25915:::-;;;:::i;29787:1310::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29787:1310:0;-1:-1:-1;;;;;29787:1310:0;;:::i;22045:44::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22045:44:0;-1:-1:-1;;;;;22045:44:0;;:::i;25957:20::-;;;:::i;22427:41::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22427:41:0;-1:-1:-1;;;;;22427:41:0;;:::i;31209:1488::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31209:1488:0;-1:-1:-1;;;;;31209:1488:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21918:45;;;:::i;24079:142::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;24079:142:0;;;;;;;;:::i;25361:49::-;;;:::i;35000:352::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35000:352:0;-1:-1:-1;;;;;35000:352:0;;:::i;25514:22::-;;;:::i;25571:21::-;;;:::i;24578:658::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;24578:658:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;22096:64::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;22096:64:0;;;;;;;;;;:::i;35401:158::-;;;:::i;32809:2142::-;26136:8;;26148:1;26136:13;26128:42;;;;;-1:-1:-1;;;26128:42:0;;;;;;;;;;;;-1:-1:-1;;;26128:42:0;;;;;;;;;;;;;;;26192:1;26181:8;:12;32972:14;;;;:32;;;33003:1;32990:10;:14;32972:32;32964:81;;;;-1:-1:-1;;;32964:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33057:17;33076;33099:13;:11;:13::i;:::-;33056:56;;;;;33168:9;-1:-1:-1;;;;;33155:22:0;:10;:22;:48;;;;;33194:9;-1:-1:-1;;;;;33181:22:0;:10;:22;33155:48;33147:93;;;;;-1:-1:-1;;;33147:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33408:6;;33447;;33253:16;;;;-1:-1:-1;;;;;33408:6:0;;;;33447;;;;33476:13;;;;;;;:30;;;33499:7;-1:-1:-1;;;;;33493:13:0;:2;-1:-1:-1;;;;;33493:13:0;;;33476:30;33468:63;;;;;-1:-1:-1;;;33468:63:0;;;;;;;;;;;;-1:-1:-1;;;33468:63:0;;;;;;;;;;;;;;;33550:14;;33546:58;;33566:38;33580:7;33589:2;33593:10;33566:13;:38::i;:::-;33670:14;;33666:58;;33686:38;33700:7;33709:2;33713:10;33686:13;:38::i;:::-;33790:15;;33786:91;;33821:2;-1:-1:-1;;;;;33807:28:0;;33836:10;33848;33860;33872:4;;33807:70;;;;;;;;;;;;;-1:-1:-1;;;;;33807:70:0;-1:-1:-1;;;;;33807:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;33807:70:0;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33807:70:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33807:70:0;;;;33786:91;33903:40;;;-1:-1:-1;;;33903:40:0;;33937:4;33903:40;;;;;;-1:-1:-1;;;;;33903:25:0;;;;;:40;;;;;;;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;33903:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33903:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33903:40:0;33969;;;-1:-1:-1;;;33969:40:0;;34003:4;33969:40;;;;;;33903;;-1:-1:-1;;;;;;33969:25:0;;;;;:40;;;;;33903;;33969;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;33969:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33969:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33969:40:0;;-1:-1:-1;34031:17:0;;-1:-1:-1;;;;;;;34062:22:0;;;;;34051:33;;:75;;34125:1;34051:75;;;34111:10;34099:9;-1:-1:-1;;;;;34099:22:0;;34087:8;:35;34051:75;34031:95;;34137:17;34180:10;34168:9;-1:-1:-1;;;;;34168:22:0;;34157:8;:33;:75;;34231:1;34157:75;;;34217:10;34205:9;-1:-1:-1;;;;;34205:22:0;;34193:8;:35;34157:75;34137:95;;34263:1;34251:9;:13;:30;;;;34280:1;34268:9;:13;34251:30;34243:78;;;;-1:-1:-1;;;34243:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34500:7;;34487:48;;;-1:-1:-1;;;34487:48:0;;34529:4;34487:48;;;;;;34424:24;;34451:86;;34473:63;;-1:-1:-1;;;;;34500:7:0;;;;34487:33;;:48;;;;;;;;;;;;;;;34500:7;34487:48;;;5:2:-1;;;;30:1;27;20:12;5:2;34487:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34487:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34487:48:0;34473:9;;:63;:13;:63;:::i;:::-;34451:17;:8;34464:3;34451:17;:12;:17;:::i;:::-;:21;:86;:21;:86;:::i;:::-;34628:7;;34615:48;;;-1:-1:-1;;;34615:48:0;;34657:4;34615:48;;;;;;34424:113;;-1:-1:-1;34552:24:0;;34579:86;;34601:63;;-1:-1:-1;;;;;34628:7:0;;;;34615:33;;:48;;;;;;;;;;;;;;;34628:7;34615:48;;;5:2:-1;;;;30:1;27;20:12;34579:86:0;34552:113;-1:-1:-1;34730:42:0;34768:3;34730:33;-1:-1:-1;;;;;34730:18:0;;;;:33;;;:22;:33;:::i;:::-;:37;:42;:37;:42;:::i;:::-;34688:38;:16;34709;34688:38;:20;:38;:::i;:::-;:84;;34680:108;;;;;-1:-1:-1;;;34680:108:0;;;;;;;;;;;;-1:-1:-1;;;34680:108:0;;;;;;;;;;;;;;;26204:1;;34812:49;34820:8;34830;34840:9;34851;34812:7;:49::i;:::-;34877:66;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;34877:66:0;;;34882:10;;34877:66;;;;;;;;;-1:-1:-1;;26227:1:0;26216:8;:12;-1:-1:-1;;;;;;;;;32809:2142:0:o;21866:45::-;;;;;;;;;;;;;;-1:-1:-1;;;21866:45:0;;;;:::o;26244:313::-;26459:8;;-1:-1:-1;;;;;26459:8:0;;;;-1:-1:-1;;;26490:8:0;;;;;;-1:-1:-1;;;26531:18:0;;;;;26244:313::o;23921:150::-;23988:4;24005:36;24014:10;24026:7;24035:5;24005:8;:36::i;:::-;-1:-1:-1;24059:4:0;23921:150;;;;;:::o;25543:21::-;;;-1:-1:-1;;;;;25543:21:0;;:::o;22012:26::-;;;;:::o;24229:341::-;-1:-1:-1;;;;;24365:15:0;;24344:4;24365:15;;;:9;:15;;;;;;;;24381:10;24365:27;;;;;;;;-1:-1:-1;;24365:42:0;24361:143;;-1:-1:-1;;;;;24454:15:0;;;;;;:9;:15;;;;;;;;24470:10;24454:27;;;;;;;;:38;;24486:5;24454:38;:31;:38;:::i;:::-;-1:-1:-1;;;;;24424:15:0;;;;;;:9;:15;;;;;;;;24440:10;24424:27;;;;;;;:68;24361:143;24514:26;24524:4;24530:2;24534:5;24514:9;:26::i;:::-;-1:-1:-1;24558:4:0;24229:341;;;;;:::o;22312:108::-;22354:66;22312:108;:::o;21970:35::-;22003:2;21970:35;:::o;22169:31::-;;;;:::o;27385:218::-;27481:7;;-1:-1:-1;;;;;27481:7:0;27467:10;:21;27459:53;;;;;-1:-1:-1;;;27459:53:0;;;;;;;;;;;;-1:-1:-1;;;27459:53:0;;;;;;;;;;;;;;;27552:6;:16;;-1:-1:-1;;;;;27552:16:0;;;-1:-1:-1;;;;;;27552:16:0;;;;;;;27579:6;:16;;;;;;;;;;;27385:218::o;25873:35::-;;;;:::o;25915:::-;;;;:::o;29787:1310::-;29836:17;26136:8;;26148:1;26136:13;26128:42;;;;;-1:-1:-1;;;26128:42:0;;;;;;;;;;;;-1:-1:-1;;;26128:42:0;;;;;;;;;;;;;;;26192:1;26181:8;:12;;;26192:1;29909:13;:11;:13::i;:::-;-1:-1:-1;29983:6:0;;29976:39;;;-1:-1:-1;;;29976:39:0;;30009:4;29976:39;;;;;;29866:56;;-1:-1:-1;29866:56:0;;-1:-1:-1;29957:16:0;;-1:-1:-1;;;;;29983:6:0;;;;29976:24;;:39;;;;;;;;;;;;;;29983:6;29976:39;;;5:2:-1;;;;30:1;27;20:12;5:2;29976:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29976:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29976:39:0;30052:6;;30045:39;;;-1:-1:-1;;;30045:39:0;;30078:4;30045:39;;;;;;29976;;-1:-1:-1;30026:16:0;;-1:-1:-1;;;;;30052:6:0;;;;30045:24;;:39;;;;;29976;;30045;;;;;;;;30052:6;30045:39;;;5:2:-1;;;;30:1;27;20:12;5:2;30045:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30045:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30045:39:0;;-1:-1:-1;30095:15:0;30113:23;:8;-1:-1:-1;;;;;30113:23:0;;;:12;:23;:::i;:::-;30095:41;-1:-1:-1;30147:15:0;30165:23;:8;-1:-1:-1;;;;;30165:23:0;;;:12;:23;:::i;:::-;30147:41;;30201:10;30214:30;30223:9;30234;30214:8;:30::i;:::-;30255:20;30278:11;30201:43;;-1:-1:-1;30391:17:0;30387:374;;30437:58;25405:5;30437:35;30451:20;:7;30463;30451:20;:11;:20;:::i;:::-;30437:13;:35::i;:58::-;30425:70;;30510:36;30524:1;25405:5;30510;:36::i;:::-;30387:374;;;30659:90;-1:-1:-1;;;;;30672:37:0;;:25;:7;30684:12;30672:25;:11;:25;:::i;:::-;:37;;;;;;-1:-1:-1;;;;;30711:37:0;;:25;:7;30723:12;30711:25;:11;:25;:::i;:::-;:37;;;;;;30659:12;:90::i;:::-;30647:102;;30387:374;30791:1;30779:9;:13;30771:65;;;;-1:-1:-1;;;30771:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30847:20;30853:2;30857:9;30847:5;:20::i;:::-;30880:49;30888:8;30898;30908:9;30919;30880:7;:49::i;:::-;30944:5;30940:50;;;30981:8;;30959:31;;-1:-1:-1;;;;;30967:8:0;;;;-1:-1:-1;;;30981:8:0;;;30959:31;:21;:31;:::i;:::-;30951:5;:39;30940:50;31055:34;;;;;;;;;;;;;;31060:10;;31055:34;;;;;;;;-1:-1:-1;;26227:1:0;26216:8;:12;-1:-1:-1;29787:1310:0;;;-1:-1:-1;;;;;;29787:1310:0:o;22045:44::-;;;;;;;;;;;;;:::o;25957:20::-;;;;:::o;22427:41::-;;;;;;;;;;;;;:::o;31209:1488::-;31258:15;31275;26136:8;;26148:1;26136:13;26128:42;;;;;-1:-1:-1;;;26128:42:0;;;;;;;;;;;;-1:-1:-1;;;26128:42:0;;;;;;;;;;;;;;;26192:1;26181:8;:12;;;26192:1;31346:13;:11;:13::i;:::-;-1:-1:-1;31412:6:0;;31471;;31531:40;;;-1:-1:-1;;;31531:40:0;;31565:4;31531:40;;;;;;31303:56;;-1:-1:-1;31303:56:0;;-1:-1:-1;;;;;;31412:6:0;;;;31471;;;31394:15;;31412:6;;31531:25;;:40;;;;;;;;;;;;;;31412:6;31531:40;;;5:2:-1;;;;30:1;27;20:12;5:2;31531:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31531:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31531:40:0;31601;;;-1:-1:-1;;;31601:40:0;;31635:4;31601:40;;;;;;31531;;-1:-1:-1;31582:16:0;;-1:-1:-1;;;;;31601:25:0;;;;;:40;;;;;31531;;31601;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;31601:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31601:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31601:40:0;31690:4;31652:17;31672:24;;;:9;31601:40;31672:24;;;;;31601:40;;-1:-1:-1;31722:30:0;31731:9;31742;31722:8;:30::i;:::-;31763:20;31786:11;31709:43;;-1:-1:-1;31786:11:0;31905:23;:9;31919:8;31905:23;:13;:23;:::i;:::-;:38;;;;;;;-1:-1:-1;32047:12:0;32021:23;:9;32035:8;32021:23;:13;:23;:::i;:::-;:38;;;;;;32011:48;;32145:1;32135:7;:11;:26;;;;;32160:1;32150:7;:11;32135:26;32127:78;;;;-1:-1:-1;;;32127:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32216:31;32230:4;32237:9;32216:5;:31::i;:::-;32258:35;32272:7;32281:2;32285:7;32258:13;:35::i;:::-;32304;32318:7;32327:2;32331:7;32304:13;:35::i;:::-;32361:40;;;-1:-1:-1;;;32361:40:0;;32395:4;32361:40;;;;;;-1:-1:-1;;;;;32361:25:0;;;;;:40;;;;;;;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;32361:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32361:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32361:40:0;32423;;;-1:-1:-1;;;32423:40:0;;32457:4;32423:40;;;;;;32361;;-1:-1:-1;;;;;;32423:25:0;;;;;:40;;;;;32361;;32423;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;32423:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32423:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32423:40:0;;-1:-1:-1;32476:49:0;32484:8;32423:40;32504:9;32515;32476:7;:49::i;:::-;32540:5;32536:50;;;32577:8;;32555:31;;-1:-1:-1;;;;;32563:8:0;;;;-1:-1:-1;;;32577:8:0;;;32555:31;:21;:31;:::i;:::-;32547:5;:39;32536:50;32651:38;;;;;;;;;;;;;;-1:-1:-1;;;;;32651:38:0;;;32656:10;;32651:38;;;;;;;;;;;26204:1;;;;;;;;;26227;26216:8;:12;;;;31209:1488;;;:::o;21918:45::-;;;;;;;;;;;;;;-1:-1:-1;;;21918:45:0;;;;:::o;24079:142::-;24142:4;24159:32;24169:10;24181:2;24185:5;24159:9;:32::i;25361:49::-;25405:5;25361:49;:::o;35000:352::-;26136:8;;26148:1;26136:13;26128:42;;;;;-1:-1:-1;;;26128:42:0;;;;;;;;;;;;-1:-1:-1;;;26128:42:0;;;;;;;;;;;;;;;26192:1;26181:8;:12;35069:6;;35128;;35241:8;;35196:40;;;-1:-1:-1;;;35196:40:0;;35230:4;35196:40;;;;;;-1:-1:-1;;;;;35069:6:0;;;;35128;;;;35169:82;;35069:6;;35192:2;;35196:54;;-1:-1:-1;;;;;35241:8:0;;35069:6;;35196:25;;:40;;;;;;;;;;;;;;;35069:6;35196:40;;;5:2:-1;;;;30:1;27;20:12;5:2;35196:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35196:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35196:40:0;;:54;:44;:54;:::i;:::-;35169:13;:82::i;:::-;35334:8;;35289:40;;;-1:-1:-1;;;35289:40:0;;35323:4;35289:40;;;;;;35262:82;;35276:7;;35285:2;;35289:54;;-1:-1:-1;;;35334:8:0;;-1:-1:-1;;;;;35334:8:0;;-1:-1:-1;;;;;35289:25:0;;;;;:40;;;;;;;;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;35262:82:0;-1:-1:-1;;26227:1:0;26216:8;:12;-1:-1:-1;35000:352:0:o;25514:22::-;;;-1:-1:-1;;;;;25514:22:0;;:::o;25571:21::-;;;-1:-1:-1;;;;;25571:21:0;;:::o;24578:658::-;24800:15;24788:8;:27;;24780:57;;;;;-1:-1:-1;;;24780:57:0;;;;;;;;;;;;-1:-1:-1;;;24780:57:0;;;;;;;;;;;;;;;24904:16;;-1:-1:-1;;;;;24983:13:0;;;24848:14;24983:13;;;:6;:13;;;;;;;;:15;;;;;;;;;24932:77;;22354:66;24932:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;24932:77:0;;;;;24922:88;;;;;;-1:-1:-1;;;24875:136:0;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;24875:136:0;;;;;;24865:147;;;;;;;;;25050:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24848:14;;24983:15;25050:26;;;;;-1:-1:-1;;25050:26:0;;;;;;;;;;24983:15;25050:26;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;25050:26:0;;-1:-1:-1;;25050:26:0;;;-1:-1:-1;;;;;;;25095:30:0;;;;;;:59;;;25149:5;-1:-1:-1;;;;;25129:25:0;:16;-1:-1:-1;;;;;25129:25:0;;25095:59;25087:99;;;;;-1:-1:-1;;;25087:99:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25197:31;25206:5;25213:7;25222:5;25197:8;:31::i;:::-;24578:658;;;;;;;;;:::o;22096:64::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;35401:158::-;26136:8;;26148:1;26136:13;26128:42;;;;;-1:-1:-1;;;26128:42:0;;;;;;;;;;;;-1:-1:-1;;;26128:42:0;;;;;;;;;;;;;;;26192:1;26181:8;:12;35457:6;;35450:39;;;-1:-1:-1;;;35450:39:0;;35483:4;35450:39;;;;;;35442:109;;-1:-1:-1;;;;;35457:6:0;;35450:24;;:39;;;;;;;;;;;;;;35457:6;35450:39;;;5:2:-1;;;;30:1;27;20:12;5:2;35450:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35450:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35450:39:0;35498:6;;35491:39;;;-1:-1:-1;;;35491:39:0;;35524:4;35491:39;;;;;;-1:-1:-1;;;;;35498:6:0;;;;35491:24;;:39;;;;;35450;;35491;;;;;;;;35498:6;35491:39;;;5:2:-1;;;;30:1;27;20:12;5:2;35491:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35491:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35491:39:0;35532:8;;-1:-1:-1;;;;;35532:8:0;;;;-1:-1:-1;;;35542:8:0;;;35442:7;:109::i;:::-;26227:1;26216:8;:12;35401:158::o;26565:323::-;25469:34;;;;;;;;;;;;;;;;;26730:43;;-1:-1:-1;;;;;26730:43:0;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;26730:43:0;;;;;;25:18:-1;;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;26719:55:0;;;;26684:12;;26698:17;;26719:10;;;26730:43;26719:55;;;25:18:-1;26719:55:0;;25:18:-1;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;26719:55:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;26683:91:0;;;;26793:7;:57;;;;-1:-1:-1;26805:11:0;;:16;;:44;;;26836:4;26825:24;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26825:24:0;26805:44;26785:95;;;;;-1:-1:-1;;;26785:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;26565:323;;;;;:::o;8896:471::-;8954:7;9199:6;9195:47;;-1:-1:-1;9229:1:0;9222:8;;9195:47;9266:5;;;9270:1;9266;:5;:1;9290:5;;;;;:10;9282:56;;;;-1:-1:-1;;;9282:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9358:1;8896:471;-1:-1:-1;;;8896:471:0:o;8518:136::-;8576:7;8603:43;8607:1;8610;8603:43;;;;;;;;;;;;;;;;;:3;:43::i;27688:923::-;-1:-1:-1;;;;;27849:23:0;;;;;:50;;-1:-1:-1;;;;;;27876:23:0;;;27849:50;27841:81;;;;;-1:-1:-1;;;27841:81:0;;;;;;;;;;;;-1:-1:-1;;;27841:81:0;;;;;;;;;;;;;;;28037:18;;27964:23;:15;:23;;;-1:-1:-1;;;28037:18:0;;;;28020:35;;;28102:15;;;;;;:33;;-1:-1:-1;;;;;;28121:14:0;;;;28102:33;:51;;;;-1:-1:-1;;;;;;28139:14:0;;;;28102:51;28098:342;;;28311:11;28255:67;;28263:44;28297:9;28263:27;28280:9;28263:16;:27::i;:::-;-1:-1:-1;;;;;28263:33:0;;:44;:33;:44;:::i;:::-;28231:20;:91;;-1:-1:-1;;;;;28255:53:0;;;;:67;;;;28231:91;;;28361:67;;;28369:44;28403:9;28369:27;28386:9;28369:16;:27::i;:44::-;28337:20;:91;;-1:-1:-1;;;;;28361:53:0;;;;:67;;;;28337:91;;;28098:342;28450:8;:28;;-1:-1:-1;;28450:28:0;-1:-1:-1;;;;;28450:28:0;;;;;;;-1:-1:-1;;;;28489:28:0;-1:-1:-1;;;28489:28:0;;;;;;;;;-1:-1:-1;;;;;28528:35:0;-1:-1:-1;;;28528:35:0;;;;;;;;;28579:24;;;28584:8;;;28579:24;;28594:8;;;;;;;28579:24;;;;;;;;;;;;;;;;;27688:923;;;;;;:::o;23442:206::-;-1:-1:-1;;;;;23560:16:0;;;;;;;:9;:16;;;;;;;;:25;;;;;;;;;;;;;:33;;;23609:31;;;;;;;;;;;;;;;;;23442:206;;;:::o;23656:257::-;-1:-1:-1;;;;;23787:15:0;;;;;;:9;:15;;;;;;:26;;23807:5;23787:26;:19;:26;:::i;:::-;-1:-1:-1;;;;;23769:15:0;;;;;;;:9;:15;;;;;;:44;;;;23840:13;;;;;;;:24;;23858:5;23840:24;:17;:24;:::i;:::-;-1:-1:-1;;;;;23824:13:0;;;;;;;:9;:13;;;;;;;;;:40;;;;23880:25;;;;;;;23824:13;;23880:25;;;;;;;;;;;;;23656:257;;;:::o;28701:974::-;28774:10;28797:13;28826:7;;;;;;;;;-1:-1:-1;;;;;28826:7:0;-1:-1:-1;;;;;28813:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28813:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28813:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28813:29:0;;-1:-1:-1;;;;;;28861:19:0;;;;;;:76;;-1:-1:-1;28897:7:0;;28884:48;;;-1:-1:-1;;;28884:48:0;;28926:4;28884:48;;;;;;-1:-1:-1;;;;;28897:7:0;;;;28884:33;;:48;;;;;;;;;;;;;;;28897:7;28884:48;;;5:2:-1;;;;30:1;27;20:12;5:2;28884:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28884:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28884:48:0;28936:1;28884:53;;28861:76;28965:5;;28853:84;;-1:-1:-1;29005:663:0;;;;29035:11;;29031:567;;29067:13;29083:48;29097:33;-1:-1:-1;;;;;29097:18:0;;;;:33;;;:22;:33;:::i;29083:48::-;29067:64;;29150:17;29170:21;29184:6;29170:13;:21::i;:::-;29150:41;;29222:9;29214:5;:17;29210:373;;;29256:17;29276:37;29292:20;:5;29302:9;29292:20;:9;:20;:::i;:::-;29276:11;;;:37;:15;:37;:::i;:::-;29381:7;;29368:48;;;-1:-1:-1;;;29368:48:0;;29410:4;29368:48;;;;;;29256:57;;-1:-1:-1;29336:19:0;;29358:74;;29422:9;;29358:59;;-1:-1:-1;;;;;29381:7:0;;;;29368:33;;:48;;;;;;;;;;;;;;;29381:7;29368:48;;;5:2:-1;;;;30:1;27;20:12;5:2;29368:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29368:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29368:48:0;29358:5;;:59;:9;:59;:::i;:::-;:63;:74;:63;:74;:::i;:::-;29336:96;;29455:17;29487:11;29475:9;:23;;;;;;;-1:-1:-1;29525:13:0;;29521:42;;29540:23;29546:5;29553:9;29540:5;:23::i;:::-;29210:373;;;;29031:567;;;29005:663;;;29619:11;;29615:53;;29655:1;29647:5;:9;29615:53;28701:974;;;;;;:::o;10478:312::-;10526:9;10556:1;10552;:5;10548:235;;;-1:-1:-1;10578:1:0;10614;10610;10606:5;;:9;10630:92;10641:1;10637;:5;10630:92;;;10667:1;10663:5;;10705:1;10700;10696;10692;:5;;;;;;:9;10691:15;;;;;;10687:19;;10630:92;;;10548:235;;;;10743:6;;10739:44;;-1:-1:-1;10770:1:0;10739:44;10478:312;;;:::o;23010:204::-;23086:11;;:22;;23102:5;23086:22;:15;:22;:::i;:::-;23072:11;:36;;;-1:-1:-1;;;;;23135:13:0;;;;:9;:13;;;;;;:24;;23153:5;23135:24;:17;:24;:::i;:::-;-1:-1:-1;;;;;23119:13:0;;;;;;:9;:13;;;;;;;;:40;;;;23175:31;;;;;;;23119:13;;;;23175:31;;;;;;;;;;23010:204;;:::o;10248:107::-;10306:7;10338:1;10333;:6;;:14;;10346:1;10333:14;;;-1:-1:-1;10342:1:0;;10248:107;-1:-1:-1;10248:107:0:o;23222:212::-;-1:-1:-1;;;;;23304:15:0;;;;;;:9;:15;;;;;;:26;;23324:5;23304:26;:19;:26;:::i;:::-;-1:-1:-1;;;;;23286:15:0;;;;;;:9;:15;;;;;:44;;;;23355:11;:22;;23371:5;23355:22;:15;:22;:::i;:::-;23341:11;:36;;;23393:33;;;;;;;;-1:-1:-1;;;;;23393:33:0;;;;;;;;;;;;;23222:212;;:::o;8662:226::-;8782:7;8818:12;8810:6;;;;8802:29;;;;-1:-1:-1;;;8802:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;8802:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8854:5:0;;;8662:226::o;12545:129::-;-1:-1:-1;;;;;12621:10:0;-1:-1:-1;;;12621:17:0;;12545:129::o;12745:108::-;12805:9;-1:-1:-1;;;;;12835:10:0;;-1:-1:-1;;;;;12831:14:0;;12835:10;12831:14;;;;;;12745:108;-1:-1:-1;;;12745:108:0:o;8329:181::-;8387:7;8419:5;;;8443:6;;;;8435:46;;;;;-1:-1:-1;;;8435:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
bzzr://0c98fcbdd32df0a46fd03f480b0546352c0ae876452e2ea4e62f578599103939
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.