Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 44 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap | 10305577 | 1675 days ago | IN | 0 ETH | 0.01641788 | ||||
Swap | 10297553 | 1676 days ago | IN | 0 ETH | 0.04570796 | ||||
Swap | 10289969 | 1677 days ago | IN | 0 ETH | 0.04472111 | ||||
Swap | 10266575 | 1681 days ago | IN | 0 ETH | 0.01878854 | ||||
Swap | 10249189 | 1683 days ago | IN | 0 ETH | 0.03095678 | ||||
Swap | 10240474 | 1685 days ago | IN | 0 ETH | 0.02651907 | ||||
Swap | 10220880 | 1688 days ago | IN | 0 ETH | 0.02940945 | ||||
Swap | 10207988 | 1690 days ago | IN | 0 ETH | 0.02306852 | ||||
Swap | 10202165 | 1691 days ago | IN | 0 ETH | 0.01612774 | ||||
Swap | 10197118 | 1692 days ago | IN | 0 ETH | 0.02757745 | ||||
Swap | 10169377 | 1696 days ago | IN | 0 ETH | 0.02368102 | ||||
Swap | 10144635 | 1700 days ago | IN | 0 ETH | 0.021615 | ||||
Swap | 10110614 | 1705 days ago | IN | 0 ETH | 0.03619652 | ||||
Swap | 10070163 | 1711 days ago | IN | 0 ETH | 0.0368673 | ||||
Swap | 10035160 | 1717 days ago | IN | 0 ETH | 0.00908542 | ||||
Swap | 10027877 | 1718 days ago | IN | 0 ETH | 0.01568744 | ||||
Swap | 9990067 | 1724 days ago | IN | 0 ETH | 0.0098003 | ||||
Swap | 9967967 | 1727 days ago | IN | 0 ETH | 0.01861758 | ||||
Swap | 9967925 | 1727 days ago | IN | 0 ETH | 0.01733725 | ||||
Swap | 9937030 | 1732 days ago | IN | 0 ETH | 0.00606201 | ||||
Swap | 9898888 | 1738 days ago | IN | 0 ETH | 0.00573883 | ||||
Swap | 9886553 | 1740 days ago | IN | 0 ETH | 0.00613268 | ||||
Swap | 9877403 | 1741 days ago | IN | 0 ETH | 0.00957237 | ||||
Swap | 9833988 | 1748 days ago | IN | 0 ETH | 0.00515723 | ||||
Swap | 9814258 | 1751 days ago | IN | 0 ETH | 0.00492294 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
9363592 | 1820 days ago | 0.005 ETH |
Loading...
Loading
Contract Name:
KyberTokenSwap
Compiler Version
v0.5.15+commit.6a57276f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-01-16 */ // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: openzeppelin-solidity/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // 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; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ 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; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: openzeppelin-solidity/contracts/utils/Address.sol pragma solidity ^0.5.5; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing a contract. * * IMPORTANT: It is unsafe to assume that an address for which this * function returns false is an externally-owned account (EOA) and not a * contract. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != 0x0 && codehash != accountHash); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // File: openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.5.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts/Interfaces/IKyberNetwork.sol pragma solidity >=0.4.21 <0.6.0; interface IKyberNetwork { function getExpectedRate(address src, address dest, uint srcQty) external view returns (uint expectedRate, uint slippageRate); function trade( address src, uint srcAmount, address dest, address destAddress, uint maxDestAmount, uint minConversionRate, address walletId ) external payable returns(uint256); } // File: contracts/Interfaces/IBadStaticCallERC20.sol pragma solidity ^0.5.0; /** * @dev Interface to be safe with not so good proxy contracts. */ interface IBadStaticCallERC20 { /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external returns (uint256); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); } // File: openzeppelin-solidity/contracts/GSN/Context.sol pragma solidity ^0.5.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: openzeppelin-solidity/contracts/Ownership/Ownable.sol pragma solidity ^0.5.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = _msgSender(); emit OwnershipTransferred(address(0), _owner); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _owner; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: contracts/Utils/AddressTranslation.sol pragma solidity ^0.5.0; contract AddressTranslation is Ownable { mapping(address => address) public addressTranslationMap; function setAddressTranslation(address from, address to) external onlyOwner { addressTranslationMap[from] = to; } function translateAddress(address from) internal view returns(address to) { to = addressTranslationMap[from]; if (to == address(0)) { to = from; } } } // File: contracts/Utils/Destructible.sol pragma solidity >=0.5.0; /** * @title Destructible * @dev Base contract that can be destroyed by owner. All funds in contract will be sent to the owner. */ contract Destructible is Ownable { /** * @dev Transfers the current balance to the owner and terminates the contract. */ function destroy() public onlyOwner { selfdestruct(address(bytes20(owner()))); } function destroyAndSend(address payable _recipient) public onlyOwner { selfdestruct(_recipient); } } // File: contracts/Utils/Pausable.sol pragma solidity >=0.4.24; /** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */ contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!paused, "The contract is paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(paused, "The contract is not paused"); _; } /** * @dev called by the owner to pause, triggers stopped state */ function pause() public onlyOwner whenNotPaused { paused = true; emit Pause(); } /** * @dev called by the owner to unpause, returns to normal state */ function unpause() public onlyOwner whenPaused { paused = false; emit Unpause(); } } // File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol pragma solidity ^0.5.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for `sender`'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); } } // File: contracts/Utils/Withdrawable.sol pragma solidity >=0.4.24; contract Withdrawable is Ownable { using SafeERC20 for ERC20; address constant ETHER = address(0); event LogWithdrawToken( address indexed _from, address indexed _token, uint amount ); /** * @dev Withdraw asset. * @param _tokenAddress Asset to be withdrawed. * @return bool. */ function withdrawToken(address _tokenAddress) public onlyOwner { uint tokenBalance; if (_tokenAddress == ETHER) { address self = address(this); // workaround for a possible solidity bug tokenBalance = self.balance; msg.sender.transfer(tokenBalance); } else { tokenBalance = ERC20(_tokenAddress).balanceOf(address(this)); ERC20(_tokenAddress).safeTransfer(msg.sender, tokenBalance); } emit LogWithdrawToken(msg.sender, _tokenAddress, tokenBalance); } } // File: contracts/Utils/WithFee.sol pragma solidity ^0.5.0; contract WithFee is Ownable { using SafeERC20 for IERC20; using SafeMath for uint; address payable public feeWallet; uint public storedSpread; uint constant spreadDecimals = 6; uint constant spreadUnit = 10 ** spreadDecimals; event LogFee(address token, uint amount); constructor(address payable _wallet, uint _spread) public { require(_wallet != address(0), "_wallet == address(0)"); require(_spread < spreadUnit, "spread >= spreadUnit"); feeWallet = _wallet; storedSpread = _spread; } function setFeeWallet(address payable _wallet) external onlyOwner { require(_wallet != address(0), "_wallet == address(0)"); feeWallet = _wallet; } function setSpread(uint _spread) external onlyOwner { storedSpread = _spread; } function _getFee(uint underlyingTokenTotal) internal view returns(uint) { return underlyingTokenTotal.mul(storedSpread).div(spreadUnit); } function _payFee(address feeToken, uint fee) internal { if (fee > 0) { if (feeToken == address(0)) { feeWallet.transfer(fee); } else { IERC20(feeToken).safeTransfer(feeWallet, fee); } emit LogFee(feeToken, fee); } } } // File: contracts/Interfaces/IErc20Swap.sol pragma solidity >=0.4.0; interface IErc20Swap { function getRate(address src, address dst, uint256 srcAmount) external view returns(uint expectedRate, uint slippageRate); // real rate = returned value / 1e18 function swap(address src, uint srcAmount, address dest, uint maxDestAmount, uint minConversionRate) external payable; event LogTokenSwap( address indexed _userAddress, address indexed _userSentTokenAddress, uint _userSentTokenAmount, address indexed _userReceivedTokenAddress, uint _userReceivedTokenAmount ); } // File: contracts/base/NetworkBasedTokenSwap.sol pragma solidity >=0.5.0; contract NetworkBasedTokenSwap is Withdrawable, Pausable, Destructible, WithFee, IErc20Swap { using SafeMath for uint; using SafeERC20 for IERC20; address constant ETHER = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; mapping (address => mapping (address => uint)) spreadCustom; event UnexpectedIntialBalance(address token, uint amount); constructor( address payable _wallet, uint _spread ) public WithFee(_wallet, _spread) {} function() external payable { // can receive ethers } // spread value >= spreadUnit means no fee function setSpread(address tokenA, address tokenB, uint spread) public onlyOwner { uint value = spread > spreadUnit ? spreadUnit : spread; spreadCustom[tokenA][tokenB] = value; spreadCustom[tokenB][tokenA] = value; } function getSpread(address tokenA, address tokenB) public view returns(uint) { uint value = spreadCustom[tokenA][tokenB]; if (value == 0) return storedSpread; if (value >= spreadUnit) return 0; else return value; } // kyber network style rate function getNetworkRate(address src, address dest, uint256 srcAmount) internal view returns(uint expectedRate, uint slippageRate); function getRate(address src, address dest, uint256 srcAmount) external view returns(uint expectedRate, uint slippageRate) { (uint256 kExpected, uint256 kSplippage) = getNetworkRate(src, dest, srcAmount); uint256 spread = getSpread(src, dest); expectedRate = kExpected.mul(spreadUnit - spread).div(spreadUnit); slippageRate = kSplippage.mul(spreadUnit - spread).div(spreadUnit); } function _freeUnexpectedTokens(address token) private { uint256 unexpectedBalance = token == ETHER ? _myEthBalance().sub(msg.value) : IBadStaticCallERC20(token).balanceOf(address(this)); if (unexpectedBalance > 0) { _transfer(token, address(bytes20(owner())), unexpectedBalance); emit UnexpectedIntialBalance(token, unexpectedBalance); } } function swap(address src, uint srcAmount, address dest, uint maxDestAmount, uint minConversionRate) public payable { require(src != dest, "src == dest"); require(srcAmount > 0, "srcAmount == 0"); // empty unexpected initial balances _freeUnexpectedTokens(src); _freeUnexpectedTokens(dest); if (src == ETHER) { require(msg.value == srcAmount, "msg.value != srcAmount"); } else { require( IBadStaticCallERC20(src).allowance(msg.sender, address(this)) >= srcAmount, "ERC20 allowance < srcAmount" ); // get user's tokens IERC20(src).safeTransferFrom(msg.sender, address(this), srcAmount); } uint256 spread = getSpread(src, dest); // calculate the minConversionRate and maxDestAmount keeping in mind the fee uint256 adaptedMinRate = minConversionRate.mul(spreadUnit).div(spreadUnit - spread); uint256 adaptedMaxDestAmount = maxDestAmount.mul(spreadUnit).div(spreadUnit - spread); uint256 destTradedAmount = doNetworkTrade(src, srcAmount, dest, adaptedMaxDestAmount, adaptedMinRate); uint256 notTraded = _myBalance(src); uint256 srcTradedAmount = srcAmount.sub(notTraded); require(srcTradedAmount > 0, "no traded tokens"); require( _myBalance(dest) >= destTradedAmount, "No enough dest tokens after trade" ); // pay fee and user uint256 toUserAmount = _payFee(dest, destTradedAmount, spread); _transfer(dest, msg.sender, toUserAmount); // returns not traded tokens if any if (notTraded > 0) { _transfer(src, msg.sender, notTraded); } emit LogTokenSwap( msg.sender, src, srcTradedAmount, dest, toUserAmount ); } function doNetworkTrade(address src, uint srcAmount, address dest, uint maxDestAmount, uint minConversionRate) internal returns(uint256); function _payFee(address token, uint destTradedAmount, uint spread) private returns(uint256 toUserAmount) { uint256 fee = destTradedAmount.mul(spread).div(spreadUnit); toUserAmount = destTradedAmount.sub(fee); // pay fee super._payFee(token == ETHER ? address(0) : token, fee); } // workaround for a solidity bug function _myEthBalance() private view returns(uint256) { address self = address(this); return self.balance; } function _myBalance(address token) private returns(uint256) { return token == ETHER ? _myEthBalance() : IBadStaticCallERC20(token).balanceOf(address(this)); } function _transfer(address token, address payable recipient, uint256 amount) private { if (token == ETHER) { recipient.transfer(amount); } else { IERC20(token).safeTransfer(recipient, amount); } } } // File: contracts/Utils/SafeStaticCallERC20.sol pragma solidity ^0.5.0; library SafeStaticCallERC20 { using SafeMath for uint256; using Address for address; function safeApprove(IBadStaticCallERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeProxyERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IBadStaticCallERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeProxyERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeProxyERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeProxyERC20: ERC20 operation did not succeed"); } } } // File: contracts/KyberTokenSwap.sol pragma solidity >=0.5.0; contract KyberTokenSwap is AddressTranslation, NetworkBasedTokenSwap { using SafeMath for uint; using SafeERC20 for IERC20; using SafeStaticCallERC20 for IBadStaticCallERC20; IKyberNetwork public kyberNetwork; address public kyberFeeWallet; constructor( address _kyberNetwork, address payable _wallet, address _kyberFeeWallet, uint _spread ) public NetworkBasedTokenSwap(_wallet, _spread) { require(_kyberNetwork != address(0), "_kyberNetwork == address(0)"); kyberNetwork = IKyberNetwork(_kyberNetwork); kyberFeeWallet = _kyberFeeWallet; } function setKyberFeeWallet(address _wallet) public onlyOwner { kyberFeeWallet = _wallet; } function getNetworkRate(address src, address dest, uint256 srcAmount) internal view returns(uint expectedRate, uint slippageRate) { return kyberNetwork.getExpectedRate(translateAddress(src), translateAddress(dest), srcAmount); } function doNetworkTrade(address src, uint srcAmount, address dest, uint maxDestAmount, uint minConversionRate) internal returns(uint256) { if (src == ETHER) { return kyberNetwork.trade .value(srcAmount)(translateAddress(src), srcAmount, translateAddress(dest), address(this), maxDestAmount, minConversionRate, kyberFeeWallet); } else { if (IBadStaticCallERC20(src).allowance(address(this), address(kyberNetwork)) > 0) { IBadStaticCallERC20(src).safeApprove(address(kyberNetwork), 0); } IBadStaticCallERC20(src).safeApprove(address(kyberNetwork), srcAmount); return kyberNetwork.trade(translateAddress(src), srcAmount, translateAddress(dest), address(this), maxDestAmount, minConversionRate, kyberFeeWallet); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_kyberNetwork","type":"address"},{"internalType":"address payable","name":"_wallet","type":"address"},{"internalType":"address","name":"_kyberFeeWallet","type":"address"},{"internalType":"uint256","name":"_spread","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_userAddress","type":"address"},{"indexed":true,"internalType":"address","name":"_userSentTokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_userSentTokenAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"_userReceivedTokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_userReceivedTokenAmount","type":"uint256"}],"name":"LogTokenSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogWithdrawToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnexpectedIntialBalance","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressTranslationMap","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"destroy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"_recipient","type":"address"}],"name":"destroyAndSend","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"feeWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"}],"name":"getRate","outputs":[{"internalType":"uint256","name":"expectedRate","type":"uint256"},{"internalType":"uint256","name":"slippageRate","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"getSpread","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"kyberFeeWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"kyberNetwork","outputs":[{"internalType":"contract IKyberNetwork","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"setAddressTranslation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"_wallet","type":"address"}],"name":"setFeeWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"setKyberFeeWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"spread","type":"uint256"}],"name":"setSpread","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_spread","type":"uint256"}],"name":"setSpread","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"storedSpread","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"maxDestAmount","type":"uint256"},{"internalType":"uint256","name":"minConversionRate","type":"uint256"}],"name":"swap","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"withdrawToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526002805460ff191690553480156200001b57600080fd5b50604051620023c7380380620023c7833981810160405260808110156200004157600080fd5b5080516020820151604083015160609093015191929091828181816200006f6001600160e01b036200021e16565b600080546001600160a01b0319166001600160a01b03928316178082556040519216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36001600160a01b03821662000113576040805162461bcd60e51b815260206004820152601560248201527f5f77616c6c6574203d3d20616464726573732830290000000000000000000000604482015290519081900360640190fd5b620f424081106200016b576040805162461bcd60e51b815260206004820152601460248201527f737072656164203e3d20737072656164556e6974000000000000000000000000604482015290519081900360640190fd5b60028054610100600160a81b0319166101006001600160a01b0394851602179055600355861615159150620001e99050576040805162461bcd60e51b815260206004820152601b60248201527f5f6b796265724e6574776f726b203d3d20616464726573732830290000000000604482015290519081900360640190fd5b50600580546001600160a01b039485166001600160a01b03199182161790915560068054929094169116179091555062000222565b3390565b61219580620002326000396000f3fe6080604052600436106101405760003560e01c806389476069116100b6578063e56c174b1161006f578063e56c174b146103f5578063f25f4b5614610451578063f2fde38b14610466578063f5074f4114610499578063f8836078146104cc578063f97c6f841461050757610140565b806389476069146103265780638da5cb5b146103595780638f32d59b1461036e57806390d49b9d14610383578063b66a261c146103b6578063b78b842d146103e057610140565b80635e75228f116101085780635e75228f14610227578063715018a6146102675780637276b69c1461027c57806375ead459146102af57806383197ef0146102fc5780638456cb591461031157610140565b80632220e22e146101425780633f4ba83a1461017357806340a9cadb1461018857806345db5034146101bb5780635c975abb146101fe575b005b34801561014e57600080fd5b5061015761051c565b604080516001600160a01b039092168252519081900360200190f35b34801561017f57600080fd5b5061014061052b565b34801561019457600080fd5b50610140600480360360208110156101ab57600080fd5b50356001600160a01b03166105fe565b3480156101c757600080fd5b50610140600480360360608110156101de57600080fd5b506001600160a01b03813581169160208101359091169060400135610667565b34801561020a57600080fd5b50610213610706565b604080519115158252519081900360200190f35b610140600480360360a081101561023d57600080fd5b506001600160a01b038135811691602081013591604082013516906060810135906080013561070f565b34801561027357600080fd5b50610140610acf565b34801561028857600080fd5b506101576004803603602081101561029f57600080fd5b50356001600160a01b0316610b60565b3480156102bb57600080fd5b506102ea600480360360408110156102d257600080fd5b506001600160a01b0381358116916020013516610b7b565b60408051918252519081900360200190f35b34801561030857600080fd5b50610140610bcf565b34801561031d57600080fd5b50610140610c29565b34801561033257600080fd5b506101406004803603602081101561034957600080fd5b50356001600160a01b0316610cf9565b34801561036557600080fd5b50610157610e5b565b34801561037a57600080fd5b50610213610e6a565b34801561038f57600080fd5b50610140600480360360208110156103a657600080fd5b50356001600160a01b0316610e8e565b3480156103c257600080fd5b50610140600480360360208110156103d957600080fd5b5035610f50565b3480156103ec57600080fd5b50610157610f9c565b34801561040157600080fd5b506104386004803603606081101561041857600080fd5b506001600160a01b03813581169160208101359091169060400135610fab565b6040805192835260208301919091528051918290030190f35b34801561045d57600080fd5b5061015761100f565b34801561047257600080fd5b506101406004803603602081101561048957600080fd5b50356001600160a01b0316611023565b3480156104a557600080fd5b50610140600480360360208110156104bc57600080fd5b50356001600160a01b0316611076565b3480156104d857600080fd5b50610140600480360360408110156104ef57600080fd5b506001600160a01b03813581169160200135166110c9565b34801561051357600080fd5b506102ea61113e565b6006546001600160a01b031681565b610533610e6a565b610572576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b60025460ff166105c9576040805162461bcd60e51b815260206004820152601a60248201527f54686520636f6e7472616374206973206e6f7420706175736564000000000000604482015290519081900360640190fd5b6002805460ff191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b610606610e6a565b610645576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b61066f610e6a565b6106ae576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b6000620f424082116106c057816106c5565b620f42405b6001600160a01b0394851660008181526004602081815260408084209890991683529687528782208490558652868120918152945293909220929092555050565b60025460ff1681565b826001600160a01b0316856001600160a01b03161415610764576040805162461bcd60e51b815260206004820152600b60248201526a1cdc98c80f4f4819195cdd60aa1b604482015290519081900360640190fd5b600084116107aa576040805162461bcd60e51b815260206004820152600e60248201526d0737263416d6f756e74203d3d20360941b604482015290519081900360640190fd5b6107b385611144565b6107bc83611144565b6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156108335783341461082e576040805162461bcd60e51b81526020600482015260166024820152751b5cd9cb9d985b1d5948084f481cdc98d05b5bdd5b9d60521b604482015290519081900360640190fd5b61091e565b60408051636eb1769f60e11b8152336004820152306024820152905185916001600160a01b0388169163dd62ed3e916044808201926020929091908290030181600087803b15801561088457600080fd5b505af1158015610898573d6000803e3d6000fd5b505050506040513d60208110156108ae57600080fd5b50511015610903576040805162461bcd60e51b815260206004820152601b60248201527f455243323020616c6c6f77616e6365203c20737263416d6f756e740000000000604482015290519081900360640190fd5b61091e6001600160a01b03861633308763ffffffff61126716565b600061092a8685610b7b565b90506000610956620f42408381039061094a90869063ffffffff6112c716565b9063ffffffff61132016565b90506000610976620f42408481039061094a90889063ffffffff6112c716565b905060006109878989898587611362565b905060006109948a6115f0565b905060006109a88a8363ffffffff61169f16565b9050600081116109f2576040805162461bcd60e51b815260206004820152601060248201526f6e6f2074726164656420746f6b656e7360801b604482015290519081900360640190fd5b826109fc8a6115f0565b1015610a395760405162461bcd60e51b81526004018080602001828103825260218152602001806120676021913960400191505060405180910390fd5b6000610a468a85896116e1565b9050610a538a338361174d565b8215610a6457610a648c338561174d565b896001600160a01b03168c6001600160a01b0316336001600160a01b03167f3ec01f4da9d8c31a1cdb8e6e7231364ba5ef0850b01daaa44a9f126f920693c68585604051808381526020018281526020019250505060405180910390a4505050505050505050505050565b610ad7610e6a565b610b16576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001602052600090815260409020546001600160a01b031681565b6001600160a01b03808316600090815260046020908152604080832093851683529290529081205480610bb2575050600354610bc9565b620f42408110610bc6576000915050610bc9565b90505b92915050565b610bd7610e6a565b610c16576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b610c1e610e5b565b6001600160a01b0316ff5b610c31610e6a565b610c70576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b60025460ff1615610cc1576040805162461bcd60e51b8152602060048201526016602482015275151a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b604482015290519081900360640190fd5b6002805460ff191660011790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b610d01610e6a565b610d40576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b60006001600160a01b038216610d89575060405130803191339083156108fc029084906000818181858888f19350505050158015610d82573d6000803e3d6000fd5b5050610e17565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b158015610dcf57600080fd5b505afa158015610de3573d6000803e3d6000fd5b505050506040513d6020811015610df957600080fd5b50519050610e176001600160a01b038316338363ffffffff6117cd16565b6040805182815290516001600160a01b0384169133917f46ae78bc7b198b8b534ca0070d125569ac5f955976841c4343223079f3abf0de9181900360200190a35050565b6000546001600160a01b031690565b600080546001600160a01b0316610e7f61181f565b6001600160a01b031614905090565b610e96610e6a565b610ed5576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b6001600160a01b038116610f28576040805162461bcd60e51b81526020600482015260156024820152745f77616c6c6574203d3d206164647265737328302960581b604482015290519081900360640190fd5b600280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b610f58610e6a565b610f97576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b600355565b6005546001600160a01b031681565b600080600080610fbc878787611823565b915091506000610fcc8888610b7b565b9050610fe7620f424061094a8584830363ffffffff6112c716565b9450611002620f424061094a8484830363ffffffff6112c716565b9350505050935093915050565b60025461010090046001600160a01b031681565b61102b610e6a565b61106a576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b611073816118dc565b50565b61107e610e6a565b6110bd576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b806001600160a01b0316ff5b6110d1610e6a565b611110576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b6001600160a01b03918216600090815260016020526040902080546001600160a01b03191691909216179055565b60035481565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146111e357604080516370a0823160e01b815230600482015290516001600160a01b038416916370a082319160248083019260209291908290030181600087803b1580156111b257600080fd5b505af11580156111c6573d6000803e3d6000fd5b505050506040513d60208110156111dc57600080fd5b50516111fb565b6111fb346111ef61197c565b9063ffffffff61169f16565b905080156112635761121e8261120f610e5b565b6001600160a01b03168361174d565b604080516001600160a01b03841681526020810183905281517f53189a8ce98afbf89498c735cf6b58ad2708c8a3a12b6f077bd4f3313dced7a9929181900390910190a15b5050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526112c1908590611981565b50505050565b6000826112d657506000610bc9565b828202828482816112e357fe5b0414610bc65760405162461bcd60e51b81526004018080602001828103825260218152602001806120466021913960400191505060405180910390fd5b6000610bc683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b39565b60006001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415611459576005546001600160a01b031663cb3c28c7866113a489611bdb565b886113ae89611bdb565b600654604080516001600160e01b031960e089901b1681526001600160a01b03958616600482015260248101949094529184166044840152306064840152608483018a905260a483018990529290921660c4820152905160e480830192602092919082900301818588803b15801561142557600080fd5b505af1158015611439573d6000803e3d6000fd5b50505050506040513d602081101561145057600080fd5b505190506115e7565b60055460408051636eb1769f60e11b81523060048201526001600160a01b039283166024820152905160009289169163dd62ed3e91604480830192602092919082900301818787803b1580156114ae57600080fd5b505af11580156114c2573d6000803e3d6000fd5b505050506040513d60208110156114d857600080fd5b5051111561150157600554611501906001600160a01b038881169116600063ffffffff611bff16565b600554611521906001600160a01b0388811691168763ffffffff611bff16565b6005546001600160a01b031663cb3c28c761153b88611bdb565b8761154588611bdb565b600654604080516001600160e01b031960e088901b1681526001600160a01b039586166004820152602481019490945291841660448401523060648401526084830189905260a483018890529290921660c4820152905160e48083019260209291908290030181600087803b1580156115bd57600080fd5b505af11580156115d1573d6000803e3d6000fd5b505050506040513d602081101561145057600080fd5b95945050505050565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461168f57604080516370a0823160e01b815230600482015290516001600160a01b038416916370a082319160248083019260209291908290030181600087803b15801561165e57600080fd5b505af1158015611672573d6000803e3d6000fd5b505050506040513d602081101561168857600080fd5b5051611697565b61169761197c565b90505b919050565b6000610bc683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611d14565b6000806116fb620f424061094a868663ffffffff6112c716565b905061170d848263ffffffff61169f16565b91506117456001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461173c578561173f565b60005b82611d6e565b509392505050565b6001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156117ae576040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156117a8573d6000803e3d6000fd5b506117c8565b6117c86001600160a01b038416838363ffffffff6117cd16565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526117c8908490611981565b3390565b60055460009081906001600160a01b031663809a9e5561184287611bdb565b61184b87611bdb565b604080516001600160e01b031960e086901b1681526001600160a01b03938416600482015291909216602482015260448101879052815160648083019392829003018186803b15801561189d57600080fd5b505afa1580156118b1573d6000803e3d6000fd5b505050506040513d60408110156118c757600080fd5b50805160209091015190969095509350505050565b6001600160a01b0381166119215760405162461bcd60e51b8152600401808060200182810382526026815260200180611ffc6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b303190565b611993826001600160a01b0316611e33565b6119e4576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611a225780518252601f199092019160209182019101611a03565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611a84576040519150601f19603f3d011682016040523d82523d6000602084013e611a89565b606091505b509150915081611ae0576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156112c157808060200190516020811015611afc57600080fd5b50516112c15760405162461bcd60e51b815260040180806020018281038252602a815260200180612137602a913960400191505060405180910390fd5b60008183611bc55760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b8a578181015183820152602001611b72565b50505050905090810190601f168015611bb75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611bd157fe5b0495945050505050565b6001600160a01b03808216600090815260016020526040902054168061169a575090565b801580611c87575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e916044808201926020929091908290030181600087803b158015611c5957600080fd5b505af1158015611c6d573d6000803e3d6000fd5b505050506040513d6020811015611c8357600080fd5b5051155b611cc25760405162461bcd60e51b815260040180806020018281038252603b8152602001806120a8603b913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526117c8908490611e6f565b60008184841115611d665760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611b8a578181015183820152602001611b72565b505050900390565b8015611263576001600160a01b038216611dc6576002546040516101009091046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015611dc0573d6000803e3d6000fd5b50611deb565b600254611deb906001600160a01b03848116916101009004168363ffffffff6117cd16565b604080516001600160a01b03841681526020810183905281517f1cdf74906ad7d5c402e19a20dbe986befe937e6768a0722bdb18918cdba45c4a929181900390910190a15050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590611e675750808214155b949350505050565b611e81826001600160a01b0316611e33565b611ebc5760405162461bcd60e51b81526004018080602001828103825260248152602001806120226024913960400191505060405180910390fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611efa5780518252601f199092019160209182019101611edb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611f5c576040519150601f19603f3d011682016040523d82523d6000602084013e611f61565b606091505b509150915081611fa25760405162461bcd60e51b81526004018080602001828103825260258152602001806121126025913960400191505060405180910390fd5b8051156112c157808060200190516020811015611fbe57600080fd5b50516112c15760405162461bcd60e51b815260040180806020018281038252602f8152602001806120e3602f913960400191505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735361666550726f787945524332303a2063616c6c20746f206e6f6e2d636f6e7472616374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774e6f20656e6f756768206465737420746f6b656e732061667465722074726164654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666550726f787945524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63655361666550726f787945524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666550726f787945524332303a206c6f772d6c6576656c2063616c6c206661696c65645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820b7b2b437227f18fdb0b36208b19a9a58c59c9cf4f9d4eef103c2977aea0a7bdc64736f6c634300050f0032000000000000000000000000818e6fecd516ecc3849daf6845e3ec868087b7550000000000000000000000009b45193131d6129a742b91778482b618c1764e46000000000000000000000000fb0fce9d94f3f69d419dbf11cf35bed84a50103400000000000000000000000000000000000000000000000000000000000003e8
Deployed Bytecode
0x6080604052600436106101405760003560e01c806389476069116100b6578063e56c174b1161006f578063e56c174b146103f5578063f25f4b5614610451578063f2fde38b14610466578063f5074f4114610499578063f8836078146104cc578063f97c6f841461050757610140565b806389476069146103265780638da5cb5b146103595780638f32d59b1461036e57806390d49b9d14610383578063b66a261c146103b6578063b78b842d146103e057610140565b80635e75228f116101085780635e75228f14610227578063715018a6146102675780637276b69c1461027c57806375ead459146102af57806383197ef0146102fc5780638456cb591461031157610140565b80632220e22e146101425780633f4ba83a1461017357806340a9cadb1461018857806345db5034146101bb5780635c975abb146101fe575b005b34801561014e57600080fd5b5061015761051c565b604080516001600160a01b039092168252519081900360200190f35b34801561017f57600080fd5b5061014061052b565b34801561019457600080fd5b50610140600480360360208110156101ab57600080fd5b50356001600160a01b03166105fe565b3480156101c757600080fd5b50610140600480360360608110156101de57600080fd5b506001600160a01b03813581169160208101359091169060400135610667565b34801561020a57600080fd5b50610213610706565b604080519115158252519081900360200190f35b610140600480360360a081101561023d57600080fd5b506001600160a01b038135811691602081013591604082013516906060810135906080013561070f565b34801561027357600080fd5b50610140610acf565b34801561028857600080fd5b506101576004803603602081101561029f57600080fd5b50356001600160a01b0316610b60565b3480156102bb57600080fd5b506102ea600480360360408110156102d257600080fd5b506001600160a01b0381358116916020013516610b7b565b60408051918252519081900360200190f35b34801561030857600080fd5b50610140610bcf565b34801561031d57600080fd5b50610140610c29565b34801561033257600080fd5b506101406004803603602081101561034957600080fd5b50356001600160a01b0316610cf9565b34801561036557600080fd5b50610157610e5b565b34801561037a57600080fd5b50610213610e6a565b34801561038f57600080fd5b50610140600480360360208110156103a657600080fd5b50356001600160a01b0316610e8e565b3480156103c257600080fd5b50610140600480360360208110156103d957600080fd5b5035610f50565b3480156103ec57600080fd5b50610157610f9c565b34801561040157600080fd5b506104386004803603606081101561041857600080fd5b506001600160a01b03813581169160208101359091169060400135610fab565b6040805192835260208301919091528051918290030190f35b34801561045d57600080fd5b5061015761100f565b34801561047257600080fd5b506101406004803603602081101561048957600080fd5b50356001600160a01b0316611023565b3480156104a557600080fd5b50610140600480360360208110156104bc57600080fd5b50356001600160a01b0316611076565b3480156104d857600080fd5b50610140600480360360408110156104ef57600080fd5b506001600160a01b03813581169160200135166110c9565b34801561051357600080fd5b506102ea61113e565b6006546001600160a01b031681565b610533610e6a565b610572576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b60025460ff166105c9576040805162461bcd60e51b815260206004820152601a60248201527f54686520636f6e7472616374206973206e6f7420706175736564000000000000604482015290519081900360640190fd5b6002805460ff191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b610606610e6a565b610645576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b61066f610e6a565b6106ae576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b6000620f424082116106c057816106c5565b620f42405b6001600160a01b0394851660008181526004602081815260408084209890991683529687528782208490558652868120918152945293909220929092555050565b60025460ff1681565b826001600160a01b0316856001600160a01b03161415610764576040805162461bcd60e51b815260206004820152600b60248201526a1cdc98c80f4f4819195cdd60aa1b604482015290519081900360640190fd5b600084116107aa576040805162461bcd60e51b815260206004820152600e60248201526d0737263416d6f756e74203d3d20360941b604482015290519081900360640190fd5b6107b385611144565b6107bc83611144565b6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156108335783341461082e576040805162461bcd60e51b81526020600482015260166024820152751b5cd9cb9d985b1d5948084f481cdc98d05b5bdd5b9d60521b604482015290519081900360640190fd5b61091e565b60408051636eb1769f60e11b8152336004820152306024820152905185916001600160a01b0388169163dd62ed3e916044808201926020929091908290030181600087803b15801561088457600080fd5b505af1158015610898573d6000803e3d6000fd5b505050506040513d60208110156108ae57600080fd5b50511015610903576040805162461bcd60e51b815260206004820152601b60248201527f455243323020616c6c6f77616e6365203c20737263416d6f756e740000000000604482015290519081900360640190fd5b61091e6001600160a01b03861633308763ffffffff61126716565b600061092a8685610b7b565b90506000610956620f42408381039061094a90869063ffffffff6112c716565b9063ffffffff61132016565b90506000610976620f42408481039061094a90889063ffffffff6112c716565b905060006109878989898587611362565b905060006109948a6115f0565b905060006109a88a8363ffffffff61169f16565b9050600081116109f2576040805162461bcd60e51b815260206004820152601060248201526f6e6f2074726164656420746f6b656e7360801b604482015290519081900360640190fd5b826109fc8a6115f0565b1015610a395760405162461bcd60e51b81526004018080602001828103825260218152602001806120676021913960400191505060405180910390fd5b6000610a468a85896116e1565b9050610a538a338361174d565b8215610a6457610a648c338561174d565b896001600160a01b03168c6001600160a01b0316336001600160a01b03167f3ec01f4da9d8c31a1cdb8e6e7231364ba5ef0850b01daaa44a9f126f920693c68585604051808381526020018281526020019250505060405180910390a4505050505050505050505050565b610ad7610e6a565b610b16576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001602052600090815260409020546001600160a01b031681565b6001600160a01b03808316600090815260046020908152604080832093851683529290529081205480610bb2575050600354610bc9565b620f42408110610bc6576000915050610bc9565b90505b92915050565b610bd7610e6a565b610c16576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b610c1e610e5b565b6001600160a01b0316ff5b610c31610e6a565b610c70576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b60025460ff1615610cc1576040805162461bcd60e51b8152602060048201526016602482015275151a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b604482015290519081900360640190fd5b6002805460ff191660011790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b610d01610e6a565b610d40576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b60006001600160a01b038216610d89575060405130803191339083156108fc029084906000818181858888f19350505050158015610d82573d6000803e3d6000fd5b5050610e17565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b158015610dcf57600080fd5b505afa158015610de3573d6000803e3d6000fd5b505050506040513d6020811015610df957600080fd5b50519050610e176001600160a01b038316338363ffffffff6117cd16565b6040805182815290516001600160a01b0384169133917f46ae78bc7b198b8b534ca0070d125569ac5f955976841c4343223079f3abf0de9181900360200190a35050565b6000546001600160a01b031690565b600080546001600160a01b0316610e7f61181f565b6001600160a01b031614905090565b610e96610e6a565b610ed5576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b6001600160a01b038116610f28576040805162461bcd60e51b81526020600482015260156024820152745f77616c6c6574203d3d206164647265737328302960581b604482015290519081900360640190fd5b600280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b610f58610e6a565b610f97576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b600355565b6005546001600160a01b031681565b600080600080610fbc878787611823565b915091506000610fcc8888610b7b565b9050610fe7620f424061094a8584830363ffffffff6112c716565b9450611002620f424061094a8484830363ffffffff6112c716565b9350505050935093915050565b60025461010090046001600160a01b031681565b61102b610e6a565b61106a576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b611073816118dc565b50565b61107e610e6a565b6110bd576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b806001600160a01b0316ff5b6110d1610e6a565b611110576040805162461bcd60e51b81526020600482018190526024820152600080516020612088833981519152604482015290519081900360640190fd5b6001600160a01b03918216600090815260016020526040902080546001600160a01b03191691909216179055565b60035481565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146111e357604080516370a0823160e01b815230600482015290516001600160a01b038416916370a082319160248083019260209291908290030181600087803b1580156111b257600080fd5b505af11580156111c6573d6000803e3d6000fd5b505050506040513d60208110156111dc57600080fd5b50516111fb565b6111fb346111ef61197c565b9063ffffffff61169f16565b905080156112635761121e8261120f610e5b565b6001600160a01b03168361174d565b604080516001600160a01b03841681526020810183905281517f53189a8ce98afbf89498c735cf6b58ad2708c8a3a12b6f077bd4f3313dced7a9929181900390910190a15b5050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526112c1908590611981565b50505050565b6000826112d657506000610bc9565b828202828482816112e357fe5b0414610bc65760405162461bcd60e51b81526004018080602001828103825260218152602001806120466021913960400191505060405180910390fd5b6000610bc683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b39565b60006001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415611459576005546001600160a01b031663cb3c28c7866113a489611bdb565b886113ae89611bdb565b600654604080516001600160e01b031960e089901b1681526001600160a01b03958616600482015260248101949094529184166044840152306064840152608483018a905260a483018990529290921660c4820152905160e480830192602092919082900301818588803b15801561142557600080fd5b505af1158015611439573d6000803e3d6000fd5b50505050506040513d602081101561145057600080fd5b505190506115e7565b60055460408051636eb1769f60e11b81523060048201526001600160a01b039283166024820152905160009289169163dd62ed3e91604480830192602092919082900301818787803b1580156114ae57600080fd5b505af11580156114c2573d6000803e3d6000fd5b505050506040513d60208110156114d857600080fd5b5051111561150157600554611501906001600160a01b038881169116600063ffffffff611bff16565b600554611521906001600160a01b0388811691168763ffffffff611bff16565b6005546001600160a01b031663cb3c28c761153b88611bdb565b8761154588611bdb565b600654604080516001600160e01b031960e088901b1681526001600160a01b039586166004820152602481019490945291841660448401523060648401526084830189905260a483018890529290921660c4820152905160e48083019260209291908290030181600087803b1580156115bd57600080fd5b505af11580156115d1573d6000803e3d6000fd5b505050506040513d602081101561145057600080fd5b95945050505050565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461168f57604080516370a0823160e01b815230600482015290516001600160a01b038416916370a082319160248083019260209291908290030181600087803b15801561165e57600080fd5b505af1158015611672573d6000803e3d6000fd5b505050506040513d602081101561168857600080fd5b5051611697565b61169761197c565b90505b919050565b6000610bc683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611d14565b6000806116fb620f424061094a868663ffffffff6112c716565b905061170d848263ffffffff61169f16565b91506117456001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461173c578561173f565b60005b82611d6e565b509392505050565b6001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156117ae576040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156117a8573d6000803e3d6000fd5b506117c8565b6117c86001600160a01b038416838363ffffffff6117cd16565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526117c8908490611981565b3390565b60055460009081906001600160a01b031663809a9e5561184287611bdb565b61184b87611bdb565b604080516001600160e01b031960e086901b1681526001600160a01b03938416600482015291909216602482015260448101879052815160648083019392829003018186803b15801561189d57600080fd5b505afa1580156118b1573d6000803e3d6000fd5b505050506040513d60408110156118c757600080fd5b50805160209091015190969095509350505050565b6001600160a01b0381166119215760405162461bcd60e51b8152600401808060200182810382526026815260200180611ffc6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b303190565b611993826001600160a01b0316611e33565b6119e4576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611a225780518252601f199092019160209182019101611a03565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611a84576040519150601f19603f3d011682016040523d82523d6000602084013e611a89565b606091505b509150915081611ae0576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156112c157808060200190516020811015611afc57600080fd5b50516112c15760405162461bcd60e51b815260040180806020018281038252602a815260200180612137602a913960400191505060405180910390fd5b60008183611bc55760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b8a578181015183820152602001611b72565b50505050905090810190601f168015611bb75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611bd157fe5b0495945050505050565b6001600160a01b03808216600090815260016020526040902054168061169a575090565b801580611c87575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e916044808201926020929091908290030181600087803b158015611c5957600080fd5b505af1158015611c6d573d6000803e3d6000fd5b505050506040513d6020811015611c8357600080fd5b5051155b611cc25760405162461bcd60e51b815260040180806020018281038252603b8152602001806120a8603b913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526117c8908490611e6f565b60008184841115611d665760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611b8a578181015183820152602001611b72565b505050900390565b8015611263576001600160a01b038216611dc6576002546040516101009091046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015611dc0573d6000803e3d6000fd5b50611deb565b600254611deb906001600160a01b03848116916101009004168363ffffffff6117cd16565b604080516001600160a01b03841681526020810183905281517f1cdf74906ad7d5c402e19a20dbe986befe937e6768a0722bdb18918cdba45c4a929181900390910190a15050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590611e675750808214155b949350505050565b611e81826001600160a01b0316611e33565b611ebc5760405162461bcd60e51b81526004018080602001828103825260248152602001806120226024913960400191505060405180910390fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611efa5780518252601f199092019160209182019101611edb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611f5c576040519150601f19603f3d011682016040523d82523d6000602084013e611f61565b606091505b509150915081611fa25760405162461bcd60e51b81526004018080602001828103825260258152602001806121126025913960400191505060405180910390fd5b8051156112c157808060200190516020811015611fbe57600080fd5b50516112c15760405162461bcd60e51b815260040180806020018281038252602f8152602001806120e3602f913960400191505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735361666550726f787945524332303a2063616c6c20746f206e6f6e2d636f6e7472616374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774e6f20656e6f756768206465737420746f6b656e732061667465722074726164654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666550726f787945524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63655361666550726f787945524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666550726f787945524332303a206c6f772d6c6576656c2063616c6c206661696c65645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820b7b2b437227f18fdb0b36208b19a9a58c59c9cf4f9d4eef103c2977aea0a7bdc64736f6c634300050f0032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000818e6fecd516ecc3849daf6845e3ec868087b7550000000000000000000000009b45193131d6129a742b91778482b618c1764e46000000000000000000000000fb0fce9d94f3f69d419dbf11cf35bed84a50103400000000000000000000000000000000000000000000000000000000000003e8
-----Decoded View---------------
Arg [0] : _kyberNetwork (address): 0x818E6FECD516Ecc3849DAf6845e3EC868087B755
Arg [1] : _wallet (address): 0x9B45193131D6129a742b91778482B618C1764e46
Arg [2] : _kyberFeeWallet (address): 0xFb0fce9D94f3f69D419dBf11Cf35bEd84a501034
Arg [3] : _spread (uint256): 1000
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000818e6fecd516ecc3849daf6845e3ec868087b755
Arg [1] : 0000000000000000000000009b45193131d6129a742b91778482b618c1764e46
Arg [2] : 000000000000000000000000fb0fce9d94f3f69d419dbf11cf35bed84a501034
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Deployed Bytecode Sourcemap
41703:1769:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41933:29;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41933:29:0;;;:::i;:::-;;;;-1:-1:-1;;;;;41933:29:0;;;;;;;;;;;;;;23010:95;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23010:95:0;;;:::i;42323:98::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42323:98:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42323:98:0;-1:-1:-1;;;;;42323:98:0;;:::i;34991:234::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34991:234:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;34991:234:0;;;;;;;;;;;;;;;;;:::i;22333:26::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22333:26:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;36449:1759;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;36449:1759:0;;;;;;;;;;;;;;;;;;;;;;;;;:::i;20275:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20275:140:0;;;:::i;21145:56::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21145:56:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21145:56:0;-1:-1:-1;;;;;21145:56:0;;:::i;35231:237::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35231:237:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;35231:237:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;21863:88;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21863:88:0;;;:::i;22830:93::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22830:93:0;;;:::i;31826:512::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31826:512:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31826:512:0;-1:-1:-1;;;;;31826:512:0;;:::i;19464:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19464:79:0;;;:::i;19830:94::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19830:94:0;;;:::i;32965:160::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32965:160:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32965:160:0;-1:-1:-1;;;;;32965:160:0;;:::i;33131:87::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33131:87:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33131:87:0;;:::i;41893:33::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41893:33:0;;;:::i;35641:411::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35641:411:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;35641:411:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;32514:32;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32514:32:0;;;:::i;20570:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20570:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20570:109:0;-1:-1:-1;;;;;20570:109:0;;:::i;21957:106::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21957:106:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21957:106:0;-1:-1:-1;;;;;21957:106:0;;:::i;21208:121::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21208:121:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;21208:121:0;;;;;;;;;;:::i;32551:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32551:24:0;;;:::i;41933:29::-;;;-1:-1:-1;;;;;41933:29:0;;:::o;23010:95::-;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;22695:6;;;;22687:45;;;;;-1:-1:-1;;;22687:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23064:6;:14;;-1:-1:-1;;23064:14:0;;;23090:9;;;;23073:5;;23090:9;23010:95::o;42323:98::-;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;42391:14;:24;;-1:-1:-1;;;;;;42391:24:0;-1:-1:-1;;;;;42391:24:0;;;;;;;;;;42323:98::o;34991:234::-;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;35079:10;32644:20;35092:19;;:41;;35127:6;35092:41;;;32644:20;35092:41;-1:-1:-1;;;;;35140:20:0;;;;;;;:12;:20;;;;;;;;:28;;;;;;;;;;;;:36;;;35183:20;;;;;:28;;;;;;;;;:36;;;;-1:-1:-1;;34991:234:0:o;22333:26::-;;;;;;:::o;36449:1759::-;36587:4;-1:-1:-1;;;;;36580:11:0;:3;-1:-1:-1;;;;;36580:11:0;;;36572:35;;;;;-1:-1:-1;;;36572:35:0;;;;;;;;;;;;-1:-1:-1;;;36572:35:0;;;;;;;;;;;;;;;36634:1;36622:9;:13;36614:40;;;;;-1:-1:-1;;;36614:40:0;;;;;;;;;;;;-1:-1:-1;;;36614:40:0;;;;;;;;;;;;;;;36705:26;36727:3;36705:21;:26::i;:::-;36738:27;36760:4;36738:21;:27::i;:::-;-1:-1:-1;;;;;36778:12:0;;34584:42;36778:12;36774:359;;;36822:9;36809;:22;36801:57;;;;;-1:-1:-1;;;36801:57:0;;;;;;;;;;;;-1:-1:-1;;;36801:57:0;;;;;;;;;;;;;;;36774:359;;;36899:61;;;-1:-1:-1;;;36899:61:0;;36934:10;36899:61;;;;36954:4;36899:61;;;;;;36964:9;;-1:-1:-1;;;;;36899:34:0;;;;;:61;;;;;;;;;;;;;;;-1:-1:-1;36899:34:0;:61;;;5:2:-1;;;;30:1;27;20:12;5:2;36899:61:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36899:61:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36899:61:0;:74;;36881:141;;;;;-1:-1:-1;;;36881:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;37059:66;-1:-1:-1;;;;;37059:28:0;;37088:10;37108:4;37115:9;37059:66;:28;:66;:::i;:::-;37141:14;37158:20;37168:3;37173:4;37158:9;:20::i;:::-;37141:37;-1:-1:-1;37269:22:0;37294:58;32644:20;37332:19;;;;37294:33;;:17;;:33;:21;:33;:::i;:::-;:37;:58;:37;:58;:::i;:::-;37269:83;-1:-1:-1;37359:28:0;37390:54;32644:20;37424:19;;;;37390:29;;:13;;:29;:17;:29;:::i;:54::-;37359:85;;37451:24;37478:74;37493:3;37498:9;37509:4;37515:20;37537:14;37478;:74::i;:::-;37451:101;;37561:17;37581:15;37592:3;37581:10;:15::i;:::-;37561:35;-1:-1:-1;37603:23:0;37629:24;:9;37561:35;37629:24;:13;:24;:::i;:::-;37603:50;;37686:1;37668:15;:19;37660:48;;;;;-1:-1:-1;;;37660:48:0;;;;;;;;;;;;-1:-1:-1;;;37660:48:0;;;;;;;;;;;;;;;37751:16;37731;37742:4;37731:10;:16::i;:::-;:36;;37715:103;;;;-1:-1:-1;;;37715:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37850:20;37873:39;37881:4;37887:16;37905:6;37873:7;:39::i;:::-;37850:62;;37919:41;37929:4;37935:10;37947:12;37919:9;:41::i;:::-;38012:13;;38008:73;;38036:37;38046:3;38051:10;38063:9;38036;:37::i;:::-;38170:4;-1:-1:-1;;;;;38094:108:0;38134:3;-1:-1:-1;;;;;38094:108:0;38115:10;-1:-1:-1;;;;;38094:108:0;;38146:15;38183:12;38094:108;;;;;;;;;;;;;;;;;;;;;;;;36449:1759;;;;;;;;;;;;:::o;20275:140::-;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;20374:1;20358:6;;20337:40;;-1:-1:-1;;;;;20358:6:0;;;;20337:40;;20374:1;;20337:40;20405:1;20388:19;;-1:-1:-1;;;;;;20388:19:0;;;20275:140::o;21145:56::-;;;;;;;;;;;;-1:-1:-1;;;;;21145:56:0;;:::o;35231:237::-;-1:-1:-1;;;;;35328:20:0;;;35302:4;35328:20;;;:12;:20;;;;;;;;:28;;;;;;;;;;;;35367:10;35363:35;;-1:-1:-1;;35386:12:0;;35379:19;;35363:35;32644:20;35409:19;;35405:57;;35437:1;35430:8;;;;;35405:57;35457:5;-1:-1:-1;35231:237:0;;;;;:::o;21863:88::-;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;21935:7;:5;:7::i;:::-;-1:-1:-1;;;;;21919:25:0;21906:39;22830:93;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;22509:6;;;;22508:7;22500:42;;;;;-1:-1:-1;;;22500:42:0;;;;;;;;;;;;-1:-1:-1;;;22500:42:0;;;;;;;;;;;;;;;22885:6;:13;;-1:-1:-1;;22885:13:0;22894:4;22885:13;;;22910:7;;;;22885:6;;22910:7;22830:93::o;31826:512::-;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;31896:17;-1:-1:-1;;;;;31924:22:0;;31920:344;;-1:-1:-1;32072:33:0;;31980:4;32051:12;;;32072:10;;:33;;;;;32051:12;;31957;32072:33;31957:12;32072:33;32051:12;32072:10;:33;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32072:33:0;31920:344;;;;32143:45;;;-1:-1:-1;;;32143:45:0;;32182:4;32143:45;;;;;;-1:-1:-1;;;;;32143:30:0;;;;;:45;;;;;;;;;;;;;;:30;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;32143:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32143:45:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32143:45:0;;-1:-1:-1;32197:59:0;-1:-1:-1;;;;;32197:33:0;;32231:10;32143:45;32197:59;:33;:59;:::i;:::-;32275:57;;;;;;;;-1:-1:-1;;;;;32275:57:0;;;32292:10;;32275:57;;;;;;;;;19733:1;31826:512;:::o;19464:79::-;19502:7;19529:6;-1:-1:-1;;;;;19529:6:0;19464:79;:::o;19830:94::-;19870:4;19910:6;;-1:-1:-1;;;;;19910:6:0;19894:12;:10;:12::i;:::-;-1:-1:-1;;;;;19894:22:0;;19887:29;;19830:94;:::o;32965:160::-;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;33046:21:0;;33038:55;;;;;-1:-1:-1;;;33038:55:0;;;;;;;;;;;;-1:-1:-1;;;33038:55:0;;;;;;;;;;;;;;;33100:9;:19;;-1:-1:-1;;;;;33100:19:0;;;;;-1:-1:-1;;;;;;33100:19:0;;;;;;;;;32965:160::o;33131:87::-;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;33190:12;:22;33131:87::o;41893:33::-;;;-1:-1:-1;;;;;41893:33:0;;:::o;35641:411::-;35731:17;35750;35780;35799:18;35821:36;35836:3;35841:4;35847:9;35821:14;:36::i;:::-;35779:78;;;;35864:14;35881:20;35891:3;35896:4;35881:9;:20::i;:::-;35864:37;-1:-1:-1;35923:50:0;32644:20;35923:34;:9;35937:19;;;35923:34;:13;:34;:::i;:50::-;35908:65;-1:-1:-1;35995:51:0;32644:20;35995:35;:10;36010:19;;;35995:35;:14;:35;:::i;:51::-;35980:66;;35641:411;;;;;;;;;:::o;32514:32::-;;;;;;-1:-1:-1;;;;;32514:32:0;;:::o;20570:109::-;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;20643:28;20662:8;20643:18;:28::i;:::-;20570:109;:::o;21957:106::-;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;22046:10;-1:-1:-1;;;;;22033:24:0;;21208:121;19676:9;:7;:9::i;:::-;19668:54;;;;;-1:-1:-1;;;19668:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19668:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;21291:27:0;;;;;;;:21;:27;;;;;:32;;-1:-1:-1;;;;;;21291:32:0;;;;;;;;21208:121::o;32551:24::-;;;;:::o;36058:385::-;36119:25;-1:-1:-1;;;;;36147:14:0;;34584:42;36147:14;:115;;36211:51;;;-1:-1:-1;;;36211:51:0;;36256:4;36211:51;;;;;;-1:-1:-1;;;;;36211:36:0;;;;;:51;;;;;;;;;;;;;;-1:-1:-1;36211:36:0;:51;;;5:2:-1;;;;30:1;27;20:12;5:2;36211:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36211:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36211:51:0;36147:115;;;36171:30;36191:9;36171:15;:13;:15::i;:::-;:19;:30;:19;:30;:::i;:::-;36119:143;-1:-1:-1;36273:21:0;;36269:169;;36305:62;36315:5;36338:7;:5;:7::i;:::-;-1:-1:-1;;;;;36322:25:0;36349:17;36305:9;:62::i;:::-;36381:49;;;-1:-1:-1;;;;;36381:49:0;;;;;;;;;;;;;;;;;;;;;;;36269:169;36058:385;;:::o;12396:204::-;12523:68;;;-1:-1:-1;;;;;12523:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12523:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12497:95:0;;12516:5;;12497:18;:95::i;:::-;12396:204;;;;:::o;5181:471::-;5239:7;5484:6;5480:47;;-1:-1:-1;5514:1:0;5507:8;;5480:47;5551:5;;;5555:1;5551;:5;:1;5575:5;;;;;:10;5567:56;;;;-1:-1:-1;;;5567:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6120:132;6178:7;6205:39;6209:1;6212;6205:39;;;;;;;;;;;;;;;;;:3;:39::i;42677:790::-;42810:7;-1:-1:-1;;;;;42833:12:0;;34584:42;42833:12;42829:633;;;42863:12;;-1:-1:-1;;;;;42863:12:0;:18;42898:9;42909:21;42926:3;42909:16;:21::i;:::-;42932:9;42943:22;42960:4;42943:16;:22::i;:::-;43016:14;;42863:168;;;-1:-1:-1;;;;;;42863:168:0;;;;;;;-1:-1:-1;;;;;42863:168:0;;;;;;;;;;;;;;;;;;;;;42975:4;42863:168;;;;;;;;;;;;;;;;43016:14;;;;42863:168;;;;;;;;;;;;;;;;;;;;;;;;;5:2:-1;;;;30:1;27;20:12;5:2;42863:168:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42863:168:0;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42863:168:0;;-1:-1:-1;42856:175:0;;42829:633;43116:12;;43058:72;;;-1:-1:-1;;;43058:72:0;;43101:4;43058:72;;;;-1:-1:-1;;;;;43116:12:0;;;43058:72;;;;;;43133:1;;43058:34;;;;;:72;;;;;;;;;;;;;;43133:1;43058:34;:72;;;5:2:-1;;;;30:1;27;20:12;5:2;43058:72:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43058:72:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43058:72:0;:76;43054:165;;;43192:12;;43147:62;;-1:-1:-1;;;;;43147:36:0;;;;43192:12;;43147:62;:36;:62;:::i;:::-;43272:12;;43227:70;;-1:-1:-1;;;;;43227:36:0;;;;43272:12;43287:9;43227:70;:36;:70;:::i;:::-;43313:12;;-1:-1:-1;;;;;43313:12:0;:18;43332:21;43349:3;43332:16;:21::i;:::-;43355:9;43366:22;43383:4;43366:16;:22::i;:::-;43439:14;;43313:141;;;-1:-1:-1;;;;;;43313:141:0;;;;;;;-1:-1:-1;;;;;43313:141:0;;;;;;;;;;;;;;;;;;;;;43398:4;43313:141;;;;;;;;;;;;;;;;43439:14;;;;43313:141;;;;;;;;;;;;;;;;;;;;43439:14;43313:141;;;;5:2:-1;;;;30:1;27;20:12;5:2;43313:141:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43313:141:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;42829:633:0;42677:790;;;;;;;:::o;38829:180::-;38880:7;-1:-1:-1;;;;;38903:14:0;;34584:42;38903:14;:100;;38952:51;;;-1:-1:-1;;;38952:51:0;;38997:4;38952:51;;;;;;-1:-1:-1;;;;;38952:36:0;;;;;:51;;;;;;;;;;;;;;-1:-1:-1;38952:36:0;:51;;;5:2:-1;;;;30:1;27;20:12;5:2;38952:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38952:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38952:51:0;38903:100;;;38927:15;:13;:15::i;:::-;38896:107;;38829:180;;;;:::o;4265:136::-;4323:7;4350:43;4354:1;4357;4350:43;;;;;;;;;;;;;;;;;:3;:43::i;38357:302::-;38441:20;;38484:44;32644:20;38484:28;:16;38505:6;38484:28;:20;:28;:::i;:44::-;38470:58;-1:-1:-1;38550:25:0;:16;38470:58;38550:25;:20;:25;:::i;:::-;38535:40;-1:-1:-1;38598:55:0;-1:-1:-1;;;;;38612:14:0;;34584:42;38612:14;:35;;38642:5;38612:35;;;38637:1;38612:35;38649:3;38598:13;:55::i;:::-;38357:302;;;;;;:::o;39015:228::-;-1:-1:-1;;;;;39111:14:0;;34584:42;39111:14;39107:131;;;39136:26;;-1:-1:-1;;;;;39136:18:0;;;:26;;;;;39155:6;;39136:26;;;;39155:6;39136:18;:26;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39136:26:0;39107:131;;;39185:45;-1:-1:-1;;;;;39185:26:0;;39212:9;39223:6;39185:45;:26;:45;:::i;:::-;39015:228;;;:::o;12212:176::-;12321:58;;;-1:-1:-1;;;;;12321:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12321:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12295:85:0;;12314:5;;12295:18;:85::i;18205:98::-;18285:10;18205:98;:::o;42427:244::-;42579:12;;42524:17;;;;-1:-1:-1;;;;;42579:12:0;:28;42608:21;42625:3;42608:16;:21::i;:::-;42631:22;42648:4;42631:16;:22::i;:::-;42579:86;;;-1:-1:-1;;;;;;42579:86:0;;;;;;;-1:-1:-1;;;;;42579:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:2:-1;;;;30:1;27;20:12;5:2;42579:86:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42579:86:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42579:86:0;;;;;;;;;;;-1:-1:-1;42427:244:0;-1:-1:-1;;;;42427:244:0:o;20785:229::-;-1:-1:-1;;;;;20859:22:0;;20851:73;;;;-1:-1:-1;;;20851:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20961:6;;;20940:38;;-1:-1:-1;;;;;20940:38:0;;;;20961:6;;;20940:38;;;20989:6;:17;;-1:-1:-1;;;;;;20989:17:0;-1:-1:-1;;;;;20989:17:0;;;;;;;;;;20785:229::o;38701:122::-;38786:4;38805:12;38701:122;:::o;14251:1114::-;14855:27;14863:5;-1:-1:-1;;;;;14855:25:0;;:27::i;:::-;14847:71;;;;;-1:-1:-1;;;14847:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14992:12;15006:23;15041:5;-1:-1:-1;;;;;15033:19:0;15053:4;15033:25;;;;;;;;;;;;;36:153:-1;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;;;15033:25: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;;14991:67:0;;;;15077:7;15069:52;;;;;-1:-1:-1;;;15069:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15138:17;;:21;15134:224;;15280:10;15269:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15269:30:0;15261:85;;;;-1:-1:-1;;;15261:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6782:345;6868:7;6970:12;6963:5;6955:28;;;;-1:-1:-1;;;6955:28: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;6955:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6994:9;7010:1;7006;:5;;;;;;;6782:345;-1:-1:-1;;;;;6782:345:0:o;21335:173::-;-1:-1:-1;;;;;21421:27:0;;;21397:10;21421:27;;;:21;:27;;;;;;;21459:16;21455:48;;-1:-1:-1;21491:4:0;21335:173::o;39439:639::-;39822:10;;;39821:62;;-1:-1:-1;39838:39:0;;;-1:-1:-1;;;39838:39:0;;39862:4;39838:39;;;;-1:-1:-1;;;;;39838:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;-1:-1:-1;39838:15:0;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;39838:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39838:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39838:39:0;:44;39821:62;39813:157;;;;-1:-1:-1;;;39813:157:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40007:62;;;-1:-1:-1;;;;;40007:62:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;40007:62:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;39981:89:0;;40000:5;;39981:18;:89::i;4738:192::-;4824:7;4860:12;4852:6;;;;4844:29;;;;-1:-1:-1;;;4844:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4844:29:0;-1:-1:-1;;;4896:5:0;;;4738:192::o;33376:274::-;33441:7;;33437:208;;-1:-1:-1;;;;;33463:22:0;;33459:144;;33498:9;;:23;;:9;;;;-1:-1:-1;;;;;33498:9:0;;:23;;;;;;;;;;;;:9;:23;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33498:23:0;33459:144;;;33578:9;;33548:45;;-1:-1:-1;;;;;33548:29:0;;;;33578:9;;;;33589:3;33548:45;:29;:45;:::i;:::-;33616:21;;;-1:-1:-1;;;;;33616:21:0;;;;;;;;;;;;;;;;;;;;;;;33376:274;;:::o;9042:810::-;9102:4;9761:20;;9604:66;9801:15;;;;;:42;;;9832:11;9820:8;:23;;9801:42;9793:51;9042:810;-1:-1:-1;;;;9042:810:0:o;40469:1142::-;41086:27;41094:5;-1:-1:-1;;;;;41086:25:0;;:27::i;:::-;41078:76;;;;-1:-1:-1;;;41078:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41228:12;41242:23;41277:5;-1:-1:-1;;;;;41269:19:0;41289:4;41269:25;;;;;;;;;;;;;36:153:-1;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;;;41269:25: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;;41227:67:0;;;;41313:7;41305:57;;;;-1:-1:-1;;;41305:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41379:17;;:21;41375:229;;41521:10;41510:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41510:30:0;41502:90;;;;-1:-1:-1;;;41502:90:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
bzzr://b7b2b437227f18fdb0b36208b19a9a58c59c9cf4f9d4eef103c2977aea0a7bdc
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.