Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,846 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 11407065 | 1441 days ago | IN | 1.5 ETH | 0.000546 | ||||
Transfer | 11407051 | 1441 days ago | IN | 1.6008949 ETH | 0.000546 | ||||
Claim Tokens | 11344272 | 1451 days ago | IN | 0 ETH | 0.00036259 | ||||
Claim Tokens | 11343016 | 1451 days ago | IN | 0 ETH | 0.00054752 | ||||
Withdraw Funds | 11342965 | 1451 days ago | IN | 0 ETH | 0.00096368 | ||||
Distribute | 11342954 | 1451 days ago | IN | 0 ETH | 0.09472318 | ||||
Claim Tokens | 11342254 | 1451 days ago | IN | 0 ETH | 0.00144969 | ||||
Claim Tokens | 11342063 | 1451 days ago | IN | 0 ETH | 0.00190272 | ||||
Claim Tokens | 11341839 | 1451 days ago | IN | 0 ETH | 0.00181212 | ||||
Claim Tokens | 11341835 | 1451 days ago | IN | 0 ETH | 0.00434908 | ||||
Claim Tokens | 11341689 | 1451 days ago | IN | 0 ETH | 0.00318933 | ||||
Claim Tokens | 11341680 | 1451 days ago | IN | 0 ETH | 0.00471151 | ||||
Claim Tokens | 11341604 | 1451 days ago | IN | 0 ETH | 0.00543636 | ||||
Claim Tokens | 11341561 | 1451 days ago | IN | 0 ETH | 0.0045303 | ||||
Claim Tokens | 11341521 | 1451 days ago | IN | 0 ETH | 0.00371484 | ||||
Claim Tokens | 11341451 | 1451 days ago | IN | 0 ETH | 0.00443969 | ||||
Claim Tokens | 11341449 | 1451 days ago | IN | 0 ETH | 0.00443969 | ||||
Claim Tokens | 11341427 | 1451 days ago | IN | 0 ETH | 0.00407727 | ||||
Claim Tokens | 11341396 | 1451 days ago | IN | 0 ETH | 0.00289939 | ||||
Claim Tokens | 11341375 | 1451 days ago | IN | 0 ETH | 0.00308966 | ||||
Claim Tokens | 11341367 | 1451 days ago | IN | 0 ETH | 0.00335242 | ||||
Claim Tokens | 11341354 | 1451 days ago | IN | 0 ETH | 0.00089542 | ||||
Claim Tokens | 11341354 | 1451 days ago | IN | 0 ETH | 0.00326181 | ||||
Claim Tokens | 11341322 | 1451 days ago | IN | 0 ETH | 0.00407727 | ||||
Claim Tokens | 11341259 | 1451 days ago | IN | 0 ETH | 0.00289939 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
11337076 | 1452 days ago | 2,597.18061477 ETH |
Loading...
Loading
Contract Name:
KiraAuction
Compiler Version
v0.6.2+commit.bacdbe57
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-11-19 */ pragma solidity 0.6.2; // SPDX-License-Identifier: MIT /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // SPDX-License-Identifier: MIT /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // SPDX-License-Identifier: MIT /** * @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. */ 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. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { 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. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // SPDX-License-Identifier: MIT /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is 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. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ 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. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @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]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // SPDX-License-Identifier: MIT /** * @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 {ERC20PresetMinterPauser}. * * 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; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override 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 virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override 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 virtual override 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 virtual 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 virtual 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 virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _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 virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _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 virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _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 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 virtual { 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 Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // SPDX-License-Identifier: MIT /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /** * @title KiraAuction * @dev Liquidity Auction Contract for the final round of the KEX token distribution. * * The Liquidity Auction works in the similar fashion to the Polkadot Reverse Dutch auction * with the difference that in case of oversubscription all tokens that overflowed the hard * cap would be used to add liquidity to the uniswap or as MM war chest in case of listing * to support price on the market. * * Reverse Dutch auction starts with a very very high initial valuation that cannot possibly * be fulfilled and decreases towards predefined valuation at predefined rate. Auction ends * instantly if value of assets deposited is greater or equals to the valuation, or if auction * times out. */ contract KiraAuction is Ownable { using SafeMath for uint256; /* Configurable P1, P2, P3, T1, T2, Auction Start, Tx rate limiting, Tx size per time limit, whitelist */ struct UserInfo { bool whitelisted; uint256 claimed_wei; uint256 last_deposit_time; bool claimed; bool distributed; } uint256 public startTime; uint256 private P1; uint256 private P2; uint256 private P3; uint256 private T1; uint256 private T2; uint256 private MIN_WEI; uint256 private MAX_WEI; uint256 private INTERVAL_LIMIT; uint256 private totalWeiAmount; uint256 public latestPrice; address payable public wallet; bool public isFinished; ERC20 private kiraToken; mapping(address => UserInfo) private customers; address[] private arrayAddress; // Events event AuctionConfigured(uint256 _startTime); event WhitelistConfigured(address[] addrs, bool allow); event ProcessedBuy(address addr, uint256 amount); event ClaimedTokens(address addr, uint256 amount); event DistributeTokens(uint256 distributedAmount); event WithdrawedFunds(address _wallet, uint256 ethAmount, uint256 kexAmount); // MODIFIERS modifier onlyInProgress() { require(startTime != 0, 'KiraAuction: start time is not configured yet. So not in progress.'); require((startTime <= now) && (now <= startTime + T1 + T2), 'KiraAuction: it is out of processing period.'); uint256 cap = _getCurrentCap(); require(cap >= totalWeiAmount, 'KiraAuction: overflowed the cap, so it is ended'); _; } modifier onlyBeforeAuction() { require(startTime == 0 || (now < startTime), 'KiraAuction: should be before auction starts'); _; } modifier onlyAfterAuction() { uint256 cap; if (isFinished == false) { cap = _getCurrentCap(); } require( isFinished || (startTime != 0 && ((startTime + T1 + T2 < now) || (cap < totalWeiAmount))), 'KiraAuction: should be after auction ends' ); if (isFinished == false) { isFinished = true; } _; } // Constructor constructor(address _kiraTokenAddr) public { kiraToken = ERC20(_kiraTokenAddr); wallet = msg.sender; } // External Views function getTokenContractAddress() external view returns (address) { return address(kiraToken); } function totalDeposited() external view returns (uint256) { return totalWeiAmount; } function whitelisted(address addr) external view returns (bool) { return customers[addr].whitelisted; } function getCustomerInfo(address addr) external view returns ( bool, uint256, uint256, bool, bool ) { UserInfo storage customer = customers[addr]; return (customer.whitelisted, customer.claimed_wei, customer.last_deposit_time, customer.claimed, customer.distributed); } function getAuctionConfigInfo() external view returns ( uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256 ) { return (startTime, P1, P2, P3, T1, T2, INTERVAL_LIMIT, MIN_WEI, MAX_WEI); } // Internal function _getCurrentAuctionPrice() internal returns (uint256) { /* ^ P1 | * | '* | ' * | ' * P2 | ' * | ' ' * | ' ' * | ' ' * P3 | ' ' * | ' ' ' |--------|---|---------------|------------------> Timeline T1 T2 */ uint256 price = 0; if ((startTime <= now) && (now < startTime + T1)) { // Slope 1 // y = p1 - (x * (p1 - p2) / t1) uint256 x = now - startTime; uint256 delta = x.mul(P1 - P2).div(T1); price = P1.sub(delta); } else if ((startTime + T1 <= now) && (now <= startTime + T1 + T2)) { // Slope 2 // y = p2 - (x * (p2 - p3) / t2) uint256 x = now - startTime - T1; uint256 delta = x.mul(P2 - P3).div(T2); price = P2.sub(delta); } return price; } function _getCurrentCap() internal returns (uint256) { uint256 price = _getCurrentAuctionPrice(); uint256 exp = 10**uint256(kiraToken.decimals()); uint256 numberOfTokens = kiraToken.balanceOf(address(this)).div(exp); uint256 cap = price.mul(numberOfTokens); return cap; } function getAvailableClaimAmount() external onlyAfterAuction returns (uint256) { UserInfo memory customer = customers[msg.sender]; require(customer.whitelisted && (customer.claimed_wei > 0), 'KiraAuction: you did not contribute.'); require(!customer.claimed, 'KiraAuction: you already claimed.'); require(!customer.distributed, 'KiraAuction: we already sent to your wallet.'); uint256 exp = 10**uint256(kiraToken.decimals()); uint256 amountToClaim = customer.claimed_wei.mul(exp).div(latestPrice); return amountToClaim; } // Auction Config Method only for owner. only before auction function setTokenContract(address _kiraTokenAddr) external onlyOwner onlyBeforeAuction { kiraToken = ERC20(_kiraTokenAddr); } function setWallet(address payable _wallet) external onlyOwner onlyBeforeAuction { wallet = _wallet; } function configAuction( uint256 _startTime, uint256 _p1, uint256 _p2, uint256 _p3, uint256 _t1, uint256 _t2, uint256 _txIntervalLimit, uint256 _txMinWeiAmount, uint256 _txMaxWeiAmount ) external onlyOwner onlyBeforeAuction { require(_startTime > now, 'KiraAuction: start time should be greater than now'); require((_p1 > _p2) && (_p2 > _p3) && (_p3 >= 0), 'KiraAuction: price should go decreasing.'); require( _t2 > _t1 && _t1 > 0, 'KiraAuction: the first slope should have faster decreasing rate and the period of each slope should be greater than zero' ); require(_txMaxWeiAmount > 0, 'KiraAuction: the maximum amount per tx should be valid'); startTime = _startTime; P1 = _p1; P2 = _p2; P3 = _p3; T1 = _t1; T2 = _t2; INTERVAL_LIMIT = _txIntervalLimit; MIN_WEI = _txMinWeiAmount; MAX_WEI = _txMaxWeiAmount; emit AuctionConfigured(startTime); } function whitelist(address[] calldata addrs, bool allow) external onlyOwner onlyBeforeAuction { for (uint256 i = 0; i < addrs.length; i++) { address addr = addrs[i]; require(addr != address(0), 'KiraAuction: not be able to whitelist/blacklist address(0).'); customers[addr].whitelisted = allow; } emit WhitelistConfigured(addrs, allow); } // only in progress receive() external payable { _processBuy(msg.sender, msg.value); } function _processBuy(address beneficiary, uint256 weiAmount) private onlyInProgress { require(beneficiary != address(0), 'KiraAuction: Not zero address'); require(beneficiary != owner(), 'KiraAuction: Not owner'); require(customers[beneficiary].whitelisted, "KiraAuction: You're not whitelisted, wait a moment."); require(weiAmount >= MIN_WEI, 'KiraAuction: That is not enough.'); require(weiAmount <= MAX_WEI, 'KiraAuction: That is too much.'); require(now - customers[beneficiary].last_deposit_time >= INTERVAL_LIMIT, 'KiraAuction: it exceeds the tx rate limit'); uint256 cap = _getCurrentCap(); require(totalWeiAmount.add(weiAmount) < cap, 'KiraAuction: Your contribution overflows the hard cap!'); if (customers[beneficiary].claimed_wei == 0) { arrayAddress.push(beneficiary); } customers[beneficiary].claimed_wei = customers[beneficiary].claimed_wei.add(weiAmount); customers[beneficiary].last_deposit_time = now; totalWeiAmount = totalWeiAmount.add(weiAmount); emit ProcessedBuy(beneficiary, weiAmount); uint256 exp = 10**uint256(kiraToken.decimals()); uint256 numberOfTokens = kiraToken.balanceOf(address(this)).div(exp); latestPrice = totalWeiAmount.div(numberOfTokens); if (latestPrice < P3) { latestPrice = P3; } } // only after auction function distribute() external onlyOwner onlyAfterAuction { uint256 totalDistributed; uint256 exp = 10**uint256(kiraToken.decimals()); uint256 numberOfContributors = arrayAddress.length; for (uint256 i = 0; i < numberOfContributors; i++) { address addr = arrayAddress[i]; UserInfo storage customer = customers[addr]; if (customer.claimed_wei > 0 && !customer.claimed && !customer.distributed) { uint256 tokensToSend = customer.claimed_wei.mul(exp).div(latestPrice); uint256 currentBalance = kiraToken.balanceOf(address(this)); customer.distributed = true; if (currentBalance < tokensToSend) { tokensToSend = currentBalance; } if (tokensToSend > 0) { totalDistributed = totalDistributed.add(tokensToSend); kiraToken.transfer(addr, tokensToSend); } } } require(totalDistributed > 0, 'KiraAuction: nothing to distribute. already claimed or distributed all!'); emit DistributeTokens(totalDistributed); } function claimTokens() external onlyAfterAuction { UserInfo storage customer = customers[msg.sender]; require(!customer.claimed, 'KiraAuction: you claimed already.'); require(!customer.distributed, 'KiraAuction: we already sent to your wallet.'); require(customer.whitelisted && (customer.claimed_wei > 0), 'KiraAuction: you did not contribute.'); customer.claimed = true; uint256 exp = 10**uint256(kiraToken.decimals()); uint256 amountToClaim = customer.claimed_wei.mul(exp).div(latestPrice); kiraToken.transfer(msg.sender, amountToClaim); emit ClaimedTokens(msg.sender, amountToClaim); } function withdrawFunds() external onlyOwner onlyAfterAuction { uint256 ethBalance = address(this).balance; uint256 kexBalance = kiraToken.balanceOf(address(this)); require(ethBalance > 0 || kexBalance > 0, 'KiraAuction: nothing left to withdraw'); if (ethBalance > 0) { wallet.transfer(ethBalance); } if (kexBalance > 0) { kiraToken.transfer(wallet, kexBalance); } emit WithdrawedFunds(wallet, ethBalance, kexBalance); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_kiraTokenAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"AuctionConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimedTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"distributedAmount","type":"uint256"}],"name":"DistributeTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ProcessedBuy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"addrs","type":"address[]"},{"indexed":false,"internalType":"bool","name":"allow","type":"bool"}],"name":"WhitelistConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"kexAmount","type":"uint256"}],"name":"WithdrawedFunds","type":"event"},{"inputs":[],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_p1","type":"uint256"},{"internalType":"uint256","name":"_p2","type":"uint256"},{"internalType":"uint256","name":"_p3","type":"uint256"},{"internalType":"uint256","name":"_t1","type":"uint256"},{"internalType":"uint256","name":"_t2","type":"uint256"},{"internalType":"uint256","name":"_txIntervalLimit","type":"uint256"},{"internalType":"uint256","name":"_txMinWeiAmount","type":"uint256"},{"internalType":"uint256","name":"_txMaxWeiAmount","type":"uint256"}],"name":"configAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAuctionConfigInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAvailableClaimAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getCustomerInfo","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFinished","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_kiraTokenAddr","type":"address"}],"name":"setTokenContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_wallet","type":"address"}],"name":"setWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"},{"internalType":"bool","name":"allow","type":"bool"}],"name":"whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161287a38038061287a8339818101604052602081101561003357600080fd5b505160006100486001600160e01b036100c016565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600d80546001600160a01b039092166001600160a01b0319928316179055600c8054909116331790556100c4565b3390565b6127a7806100d36000396000f3fe6080604052600436106101235760003560e01c80638da5cb5b116100a0578063d936547e11610064578063d936547e1461041b578063deaa59df1461044e578063e4fc6b6d14610481578063f2fde38b14610496578063ff50abdc146104c957610134565b80638da5cb5b146102fe578063a3e6ba9414610313578063b320541014610328578063bbcd5bbe1461038c578063d2e69de3146103bf57610134565b8063521eb273116100e7578063521eb2731461023a57806365e64f501461024f578063715018a6146102ab57806378e97925146102c05780637b352962146102d557610134565b806301b38af51461013957806322e45584146101b857806324600fc3146101e957806348c54b9d146101fe578063515be4e01461021357610134565b366101345761013233346104de565b005b600080fd5b34801561014557600080fd5b506101326004803603604081101561015c57600080fd5b81019060208101813564010000000081111561017757600080fd5b82018360208201111561018957600080fd5b803590602001918460208302840111640100000000831117156101ab57600080fd5b9193509150351515610a96565b3480156101c457600080fd5b506101cd610c56565b604080516001600160a01b039092168252519081900360200190f35b3480156101f557600080fd5b50610132610c65565b34801561020a57600080fd5b50610132610f5a565b34801561021f57600080fd5b50610228611277565b60408051918252519081900360200190f35b34801561024657600080fd5b506101cd611508565b34801561025b57600080fd5b50610132600480360361012081101561027357600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c08101359060e0810135906101000135611517565b3480156102b757600080fd5b5061013261173f565b3480156102cc57600080fd5b506102286117e1565b3480156102e157600080fd5b506102ea6117e7565b604080519115158252519081900360200190f35b34801561030a57600080fd5b506101cd6117f7565b34801561031f57600080fd5b50610228611806565b34801561033457600080fd5b5061035b6004803603602081101561034b57600080fd5b50356001600160a01b031661180c565b6040805195151586526020860194909452848401929092521515606084015215156080830152519081900360a00190f35b34801561039857600080fd5b50610132600480360360208110156103af57600080fd5b50356001600160a01b031661184c565b3480156103cb57600080fd5b506103d4611911565b60408051998a5260208a0198909852888801969096526060880194909452608087019290925260a086015260c085015260e084015261010083015251908190036101200190f35b34801561042757600080fd5b506102ea6004803603602081101561043e57600080fd5b50356001600160a01b0316611937565b34801561045a57600080fd5b506101326004803603602081101561047157600080fd5b50356001600160a01b0316611955565b34801561048d57600080fd5b50610132611a1a565b3480156104a257600080fd5b50610132600480360360208110156104b957600080fd5b50356001600160a01b0316611e04565b3480156104d557600080fd5b50610228611efc565b60015461051c5760405162461bcd60e51b81526004018080602001828103825260428152602001806126db6042913960600191505060405180910390fd5b4260015411158015610538575060065460055460015401014211155b6105735760405162461bcd60e51b815260040180806020018281038252602c8152602001806124d5602c913960400191505060405180910390fd5b600061057d611f02565b9050600a548110156105c05760405162461bcd60e51b815260040180806020018281038252602f8152602001806123e8602f913960400191505060405180910390fd5b6001600160a01b03831661061b576040805162461bcd60e51b815260206004820152601d60248201527f4b69726141756374696f6e3a204e6f74207a65726f2061646472657373000000604482015290519081900360640190fd5b6106236117f7565b6001600160a01b0316836001600160a01b03161415610682576040805162461bcd60e51b815260206004820152601660248201527525b4b930a0bab1ba34b7b71d102737ba1037bbb732b960511b604482015290519081900360640190fd5b6001600160a01b0383166000908152600e602052604090205460ff166106d95760405162461bcd60e51b81526004018080602001828103825260338152602001806126a86033913960400191505060405180910390fd5b600754821015610730576040805162461bcd60e51b815260206004820181905260248201527f4b69726141756374696f6e3a2054686174206973206e6f7420656e6f7567682e604482015290519081900360640190fd5b600854821115610787576040805162461bcd60e51b815260206004820152601e60248201527f4b69726141756374696f6e3a205468617420697320746f6f206d7563682e0000604482015290519081900360640190fd5b6009546001600160a01b0384166000908152600e6020526040902060020154420310156107e55760405162461bcd60e51b81526004018080602001828103825260298152602001806127496029913960400191505060405180910390fd5b60006107ef611f02565b90508061080784600a54611ffd90919063ffffffff16565b106108435760405162461bcd60e51b815260040180806020018281038252603681526020018061247e6036913960400191505060405180910390fd5b6001600160a01b0384166000908152600e60205260409020600101546108af57600f80546001810182556000919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0384166000908152600e60205260409020600101546108db908463ffffffff611ffd16565b6001600160a01b0385166000908152600e60205260409020600181019190915542600290910155600a54610915908463ffffffff611ffd16565b600a55604080516001600160a01b03861681526020810185905281517fbd2b2ad44c24195eb3b2c8e4dc2613a8ce00edd62b965a3bf3308ea9cfdbaf11929181900390910190a1600d546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b1580156109a157600080fd5b505afa1580156109b5573d6000803e3d6000fd5b505050506040513d60208110156109cb57600080fd5b5051600d54604080516370a0823160e01b8152306004820152905160ff909316600a0a9350600092610a639285926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610a2b57600080fd5b505afa158015610a3f573d6000803e3d6000fd5b505050506040513d6020811015610a5557600080fd5b50519063ffffffff61206016565b600a54909150610a79908263ffffffff61206016565b600b8190556004541115610a8e57600454600b555b505050505050565b610a9e6120a2565b6000546001600160a01b03908116911614610aee576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b6001541580610afe575060015442105b610b395760405162461bcd60e51b815260040180806020018281038252602c815260200180612452602c913960400191505060405180910390fd5b60005b82811015610be1576000848483818110610b5257fe5b905060200201356001600160a01b0316905060006001600160a01b0316816001600160a01b03161415610bb65760405162461bcd60e51b815260040180806020018281038252603b815260200180612417603b913960400191505060405180910390fd5b6001600160a01b03166000908152600e60205260409020805460ff1916831515179055600101610b3c565b507fd723dd81525644e85ea627e7ad727019a328fb3426524797c347f11de9d6956e8383836040518080602001831515151581526020018281038252858582818152602001925060200280828437600083820152604051601f909101601f1916909201829003965090945050505050a1505050565b600d546001600160a01b031690565b610c6d6120a2565b6000546001600160a01b03908116911614610cbd576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b600c54600090600160a01b900460ff16610cdc57610cd9611f02565b90505b600c54600160a01b900460ff1680610d14575060015415801590610d1457504260065460055460015401011080610d145750600a5481105b610d4f5760405162461bcd60e51b81526004018080602001828103825260298152602001806123466029913960400191505060405180910390fd5b600c54600160a01b900460ff16610d7457600c805460ff60a01b1916600160a01b1790555b600d54604080516370a0823160e01b8152306004820152905147926000926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610dc457600080fd5b505afa158015610dd8573d6000803e3d6000fd5b505050506040513d6020811015610dee57600080fd5b5051905081151580610e005750600081115b610e3b5760405162461bcd60e51b81526004018080602001828103825260258152602001806125bf6025913960400191505060405180910390fd5b8115610e7d57600c546040516001600160a01b039091169083156108fc029084906000818181858888f19350505050158015610e7b573d6000803e3d6000fd5b505b8015610f0957600d54600c546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051919092169163a9059cbb9160448083019260209291908290030181600087803b158015610edc57600080fd5b505af1158015610ef0573d6000803e3d6000fd5b505050506040513d6020811015610f0657600080fd5b50505b600c54604080516001600160a01b03909216825260208201849052818101839052517f9663c1ad0eec6028b71e1544d2c3336a5ac20cf1e4757683d294fe222476b1219181900360600190a1505050565b600c54600090600160a01b900460ff16610f7957610f76611f02565b90505b600c54600160a01b900460ff1680610fb1575060015415801590610fb157504260065460055460015401011080610fb15750600a5481105b610fec5760405162461bcd60e51b81526004018080602001828103825260298152602001806123466029913960400191505060405180910390fd5b600c54600160a01b900460ff1661101157600c805460ff60a01b1916600160a01b1790555b336000908152600e60205260409020600381015460ff16156110645760405162461bcd60e51b81526004018080602001828103825260218152602001806123956021913960400191505060405180910390fd5b6003810154610100900460ff16156110ad5760405162461bcd60e51b815260040180806020018281038252602c81526020018061271d602c913960400191505060405180910390fd5b805460ff1680156110c2575060008160010154115b6110fd5760405162461bcd60e51b815260040180806020018281038252602481526020018061265c6024913960400191505060405180910390fd5b60038101805460ff19166001179055600d546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561115157600080fd5b505afa158015611165573d6000803e3d6000fd5b505050506040513d602081101561117b57600080fd5b5051600b54600184015460ff909216600a0a92506000916111b391906111a7908563ffffffff6120a616565b9063ffffffff61206016565b600d546040805163a9059cbb60e01b81523360048201526024810184905290519293506001600160a01b039091169163a9059cbb916044808201926020929091908290030181600087803b15801561120a57600080fd5b505af115801561121e573d6000803e3d6000fd5b505050506040513d602081101561123457600080fd5b5050604080513381526020810183905281517fe9aa550fd75d0d28e07fa9dd67d3ae705678776f6c4a75abd09534f93e7d7907929181900390910190a150505050565b600c546000908190600160a01b900460ff1661129857611295611f02565b90505b600c54600160a01b900460ff16806112d05750600154158015906112d0575042600654600554600154010110806112d05750600a5481105b61130b5760405162461bcd60e51b81526004018080602001828103825260298152602001806123466029913960400191505060405180910390fd5b600c54600160a01b900460ff1661133057600c805460ff60a01b1916600160a01b1790555b611338612317565b50336000908152600e6020908152604091829020825160a081018452815460ff90811615801580845260018501549584019590955260028401549583019590955260039092015480831615156060830152610100900490911615156080820152916113a7575060008160200151115b6113e25760405162461bcd60e51b815260040180806020018281038252602481526020018061265c6024913960400191505060405180910390fd5b8060600151156114235760405162461bcd60e51b81526004018080602001828103825260218152602001806124b46021913960400191505060405180910390fd5b8060800151156114645760405162461bcd60e51b815260040180806020018281038252602c81526020018061271d602c913960400191505060405180910390fd5b600d546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b1580156114a957600080fd5b505afa1580156114bd573d6000803e3d6000fd5b505050506040513d60208110156114d357600080fd5b5051600b54602084015160ff909216600a0a92506000916114ff91906111a7908563ffffffff6120a616565b94505050505090565b600c546001600160a01b031681565b61151f6120a2565b6000546001600160a01b0390811691161461156f576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b600154158061157f575060015442105b6115ba5760405162461bcd60e51b815260040180806020018281038252602c815260200180612452602c913960400191505060405180910390fd5b4289116115f85760405162461bcd60e51b81526004018080602001828103825260328152602001806123b66032913960400191505060405180910390fd5b868811801561160657508587115b8015611610575060015b61164b5760405162461bcd60e51b81526004018080602001828103825260288152602001806126806028913960400191505060405180910390fd5b848411801561165a5750600085115b6116955760405162461bcd60e51b81526004018080602001828103825260788152602001806125e46078913960800191505060405180910390fd5b600081116116d45760405162461bcd60e51b81526004018080602001828103825260368152602001806125486036913960400191505060405180910390fd5b600189905560028890556003879055600486905560058590556006849055600983905560078290556008819055604080518a815290517fadbb0ede2a5ced7c29393800ecf9fcc08157e4b2c8d46ef87fdbe7d546e0366e9181900360200190a1505050505050505050565b6117476120a2565b6000546001600160a01b03908116911614611797576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60015481565b600c54600160a01b900460ff1681565b6000546001600160a01b031690565b600b5481565b6001600160a01b03166000908152600e6020526040902080546001820154600283015460039093015460ff92831694919392808216926101009092041690565b6118546120a2565b6000546001600160a01b039081169116146118a4576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b60015415806118b4575060015442105b6118ef5760405162461bcd60e51b815260040180806020018281038252602c815260200180612452602c913960400191505060405180910390fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600154600254600354600454600554600654600954600754600854909192939495969798565b6001600160a01b03166000908152600e602052604090205460ff1690565b61195d6120a2565b6000546001600160a01b039081169116146119ad576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b60015415806119bd575060015442105b6119f85760405162461bcd60e51b815260040180806020018281038252602c815260200180612452602c913960400191505060405180910390fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b611a226120a2565b6000546001600160a01b03908116911614611a72576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b600c54600090600160a01b900460ff16611a9157611a8e611f02565b90505b600c54600160a01b900460ff1680611ac9575060015415801590611ac957504260065460055460015401011080611ac95750600a5481105b611b045760405162461bcd60e51b81526004018080602001828103825260298152602001806123466029913960400191505060405180910390fd5b600c54600160a01b900460ff16611b2957600c805460ff60a01b1916600160a01b1790555b600080600d60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611b7a57600080fd5b505afa158015611b8e573d6000803e3d6000fd5b505050506040513d6020811015611ba457600080fd5b5051600f5460ff909116600a0a915060005b81811015611d8b576000600f8281548110611bcd57fe5b60009182526020808320909101546001600160a01b0316808352600e909152604090912060018101549192509015801590611c0d5750600381015460ff16155b8015611c2357506003810154610100900460ff16155b15611d81576000611c47600b546111a78885600101546120a690919063ffffffff16565b600d54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611c9857600080fd5b505afa158015611cac573d6000803e3d6000fd5b505050506040513d6020811015611cc257600080fd5b505160038401805461ff001916610100179055905081811015611ce3578091505b8115611d7e57611cf9888363ffffffff611ffd16565b600d546040805163a9059cbb60e01b81526001600160a01b038881166004830152602482018790529151939b5091169163a9059cbb916044808201926020929091908290030181600087803b158015611d5157600080fd5b505af1158015611d65573d6000803e3d6000fd5b505050506040513d6020811015611d7b57600080fd5b50505b50505b5050600101611bb6565b5060008311611dcb5760405162461bcd60e51b81526004018080602001828103825260478152602001806125016047913960600191505060405180910390fd5b6040805184815290517f4ce7b438bc8661be29f76bcbf514c8b1182d5edaa07534daaeaa73554445f9a69181900360200190a150505050565b611e0c6120a2565b6000546001600160a01b03908116911614611e5c576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b6001600160a01b038116611ea15760405162461bcd60e51b815260040180806020018281038252602681526020018061236f6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600a5490565b600080611f0d6120ff565b90506000600d60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611f5f57600080fd5b505afa158015611f73573d6000803e3d6000fd5b505050506040513d6020811015611f8957600080fd5b5051600d54604080516370a0823160e01b8152306004820152905160ff909316600a0a9350600092611fe99285926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610a2b57600080fd5b905060006114ff848363ffffffff6120a616565b600082820183811015612057576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061205783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506121de565b3390565b6000826120b55750600061205a565b828202828482816120c257fe5b04146120575760405162461bcd60e51b815260040180806020018281038252602181526020018061257e6021913960400191505060405180910390fd5b60008060009050426001541115801561211d57506005546001540142105b1561216b57600060015442039050600061214c6005546111a760035460025403856120a690919063ffffffff16565b600254909150612162908263ffffffff61228016565b925050506121d9565b42600554600154011115801561218b575060065460055460015401014211155b156121d9576000600554600154420303905060006121be6006546111a760045460035403856120a690919063ffffffff16565b6003549091506121d4908263ffffffff61228016565b925050505b905090565b6000818361226a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561222f578181015183820152602001612217565b50505050905090810190601f16801561225c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161227657fe5b0495945050505050565b600061205783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506000818484111561230f5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561222f578181015183820152602001612217565b505050900390565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091529056fe4b69726141756374696f6e3a2073686f756c642062652061667465722061756374696f6e20656e64734f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734b69726141756374696f6e3a20796f7520636c61696d656420616c72656164792e4b69726141756374696f6e3a2073746172742074696d652073686f756c642062652067726561746572207468616e206e6f774b69726141756374696f6e3a206f766572666c6f77656420746865206361702c20736f20697420697320656e6465644b69726141756374696f6e3a206e6f742062652061626c6520746f2077686974656c6973742f626c61636b6c69737420616464726573732830292e4b69726141756374696f6e3a2073686f756c64206265206265666f72652061756374696f6e207374617274734b69726141756374696f6e3a20596f757220636f6e747269627574696f6e206f766572666c6f777320746865206861726420636170214b69726141756374696f6e3a20796f7520616c726561647920636c61696d65642e4b69726141756374696f6e3a206974206973206f7574206f662070726f63657373696e6720706572696f642e4b69726141756374696f6e3a206e6f7468696e6720746f20646973747269627574652e20616c726561647920636c61696d6564206f7220646973747269627574656420616c6c214b69726141756374696f6e3a20746865206d6178696d756d20616d6f756e74207065722074782073686f756c642062652076616c6964536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724b69726141756374696f6e3a206e6f7468696e67206c65667420746f2077697468647261774b69726141756374696f6e3a2074686520666972737420736c6f70652073686f756c642068617665206661737465722064656372656173696e67207261746520616e642074686520706572696f64206f66206561636820736c6f70652073686f756c642062652067726561746572207468616e207a65726f4b69726141756374696f6e3a20796f7520646964206e6f7420636f6e747269627574652e4b69726141756374696f6e3a2070726963652073686f756c6420676f2064656372656173696e672e4b69726141756374696f6e3a20596f75277265206e6f742077686974656c69737465642c20776169742061206d6f6d656e742e4b69726141756374696f6e3a2073746172742074696d65206973206e6f7420636f6e66696775726564207965742e20536f206e6f7420696e2070726f67726573732e4b69726141756374696f6e3a20776520616c72656164792073656e7420746f20796f75722077616c6c65742e4b69726141756374696f6e3a2069742065786365656473207468652074782072617465206c696d6974a264697066735822122063fd9103a8eb846a234dffdc37c8302003201375c688c1d5a3c8d529a70704db64736f6c6343000602003300000000000000000000000016980b3b4a3f9d89e33311b5aa8f80303e5ca4f8
Deployed Bytecode
0x6080604052600436106101235760003560e01c80638da5cb5b116100a0578063d936547e11610064578063d936547e1461041b578063deaa59df1461044e578063e4fc6b6d14610481578063f2fde38b14610496578063ff50abdc146104c957610134565b80638da5cb5b146102fe578063a3e6ba9414610313578063b320541014610328578063bbcd5bbe1461038c578063d2e69de3146103bf57610134565b8063521eb273116100e7578063521eb2731461023a57806365e64f501461024f578063715018a6146102ab57806378e97925146102c05780637b352962146102d557610134565b806301b38af51461013957806322e45584146101b857806324600fc3146101e957806348c54b9d146101fe578063515be4e01461021357610134565b366101345761013233346104de565b005b600080fd5b34801561014557600080fd5b506101326004803603604081101561015c57600080fd5b81019060208101813564010000000081111561017757600080fd5b82018360208201111561018957600080fd5b803590602001918460208302840111640100000000831117156101ab57600080fd5b9193509150351515610a96565b3480156101c457600080fd5b506101cd610c56565b604080516001600160a01b039092168252519081900360200190f35b3480156101f557600080fd5b50610132610c65565b34801561020a57600080fd5b50610132610f5a565b34801561021f57600080fd5b50610228611277565b60408051918252519081900360200190f35b34801561024657600080fd5b506101cd611508565b34801561025b57600080fd5b50610132600480360361012081101561027357600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c08101359060e0810135906101000135611517565b3480156102b757600080fd5b5061013261173f565b3480156102cc57600080fd5b506102286117e1565b3480156102e157600080fd5b506102ea6117e7565b604080519115158252519081900360200190f35b34801561030a57600080fd5b506101cd6117f7565b34801561031f57600080fd5b50610228611806565b34801561033457600080fd5b5061035b6004803603602081101561034b57600080fd5b50356001600160a01b031661180c565b6040805195151586526020860194909452848401929092521515606084015215156080830152519081900360a00190f35b34801561039857600080fd5b50610132600480360360208110156103af57600080fd5b50356001600160a01b031661184c565b3480156103cb57600080fd5b506103d4611911565b60408051998a5260208a0198909852888801969096526060880194909452608087019290925260a086015260c085015260e084015261010083015251908190036101200190f35b34801561042757600080fd5b506102ea6004803603602081101561043e57600080fd5b50356001600160a01b0316611937565b34801561045a57600080fd5b506101326004803603602081101561047157600080fd5b50356001600160a01b0316611955565b34801561048d57600080fd5b50610132611a1a565b3480156104a257600080fd5b50610132600480360360208110156104b957600080fd5b50356001600160a01b0316611e04565b3480156104d557600080fd5b50610228611efc565b60015461051c5760405162461bcd60e51b81526004018080602001828103825260428152602001806126db6042913960600191505060405180910390fd5b4260015411158015610538575060065460055460015401014211155b6105735760405162461bcd60e51b815260040180806020018281038252602c8152602001806124d5602c913960400191505060405180910390fd5b600061057d611f02565b9050600a548110156105c05760405162461bcd60e51b815260040180806020018281038252602f8152602001806123e8602f913960400191505060405180910390fd5b6001600160a01b03831661061b576040805162461bcd60e51b815260206004820152601d60248201527f4b69726141756374696f6e3a204e6f74207a65726f2061646472657373000000604482015290519081900360640190fd5b6106236117f7565b6001600160a01b0316836001600160a01b03161415610682576040805162461bcd60e51b815260206004820152601660248201527525b4b930a0bab1ba34b7b71d102737ba1037bbb732b960511b604482015290519081900360640190fd5b6001600160a01b0383166000908152600e602052604090205460ff166106d95760405162461bcd60e51b81526004018080602001828103825260338152602001806126a86033913960400191505060405180910390fd5b600754821015610730576040805162461bcd60e51b815260206004820181905260248201527f4b69726141756374696f6e3a2054686174206973206e6f7420656e6f7567682e604482015290519081900360640190fd5b600854821115610787576040805162461bcd60e51b815260206004820152601e60248201527f4b69726141756374696f6e3a205468617420697320746f6f206d7563682e0000604482015290519081900360640190fd5b6009546001600160a01b0384166000908152600e6020526040902060020154420310156107e55760405162461bcd60e51b81526004018080602001828103825260298152602001806127496029913960400191505060405180910390fd5b60006107ef611f02565b90508061080784600a54611ffd90919063ffffffff16565b106108435760405162461bcd60e51b815260040180806020018281038252603681526020018061247e6036913960400191505060405180910390fd5b6001600160a01b0384166000908152600e60205260409020600101546108af57600f80546001810182556000919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0384166000908152600e60205260409020600101546108db908463ffffffff611ffd16565b6001600160a01b0385166000908152600e60205260409020600181019190915542600290910155600a54610915908463ffffffff611ffd16565b600a55604080516001600160a01b03861681526020810185905281517fbd2b2ad44c24195eb3b2c8e4dc2613a8ce00edd62b965a3bf3308ea9cfdbaf11929181900390910190a1600d546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b1580156109a157600080fd5b505afa1580156109b5573d6000803e3d6000fd5b505050506040513d60208110156109cb57600080fd5b5051600d54604080516370a0823160e01b8152306004820152905160ff909316600a0a9350600092610a639285926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610a2b57600080fd5b505afa158015610a3f573d6000803e3d6000fd5b505050506040513d6020811015610a5557600080fd5b50519063ffffffff61206016565b600a54909150610a79908263ffffffff61206016565b600b8190556004541115610a8e57600454600b555b505050505050565b610a9e6120a2565b6000546001600160a01b03908116911614610aee576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b6001541580610afe575060015442105b610b395760405162461bcd60e51b815260040180806020018281038252602c815260200180612452602c913960400191505060405180910390fd5b60005b82811015610be1576000848483818110610b5257fe5b905060200201356001600160a01b0316905060006001600160a01b0316816001600160a01b03161415610bb65760405162461bcd60e51b815260040180806020018281038252603b815260200180612417603b913960400191505060405180910390fd5b6001600160a01b03166000908152600e60205260409020805460ff1916831515179055600101610b3c565b507fd723dd81525644e85ea627e7ad727019a328fb3426524797c347f11de9d6956e8383836040518080602001831515151581526020018281038252858582818152602001925060200280828437600083820152604051601f909101601f1916909201829003965090945050505050a1505050565b600d546001600160a01b031690565b610c6d6120a2565b6000546001600160a01b03908116911614610cbd576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b600c54600090600160a01b900460ff16610cdc57610cd9611f02565b90505b600c54600160a01b900460ff1680610d14575060015415801590610d1457504260065460055460015401011080610d145750600a5481105b610d4f5760405162461bcd60e51b81526004018080602001828103825260298152602001806123466029913960400191505060405180910390fd5b600c54600160a01b900460ff16610d7457600c805460ff60a01b1916600160a01b1790555b600d54604080516370a0823160e01b8152306004820152905147926000926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610dc457600080fd5b505afa158015610dd8573d6000803e3d6000fd5b505050506040513d6020811015610dee57600080fd5b5051905081151580610e005750600081115b610e3b5760405162461bcd60e51b81526004018080602001828103825260258152602001806125bf6025913960400191505060405180910390fd5b8115610e7d57600c546040516001600160a01b039091169083156108fc029084906000818181858888f19350505050158015610e7b573d6000803e3d6000fd5b505b8015610f0957600d54600c546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051919092169163a9059cbb9160448083019260209291908290030181600087803b158015610edc57600080fd5b505af1158015610ef0573d6000803e3d6000fd5b505050506040513d6020811015610f0657600080fd5b50505b600c54604080516001600160a01b03909216825260208201849052818101839052517f9663c1ad0eec6028b71e1544d2c3336a5ac20cf1e4757683d294fe222476b1219181900360600190a1505050565b600c54600090600160a01b900460ff16610f7957610f76611f02565b90505b600c54600160a01b900460ff1680610fb1575060015415801590610fb157504260065460055460015401011080610fb15750600a5481105b610fec5760405162461bcd60e51b81526004018080602001828103825260298152602001806123466029913960400191505060405180910390fd5b600c54600160a01b900460ff1661101157600c805460ff60a01b1916600160a01b1790555b336000908152600e60205260409020600381015460ff16156110645760405162461bcd60e51b81526004018080602001828103825260218152602001806123956021913960400191505060405180910390fd5b6003810154610100900460ff16156110ad5760405162461bcd60e51b815260040180806020018281038252602c81526020018061271d602c913960400191505060405180910390fd5b805460ff1680156110c2575060008160010154115b6110fd5760405162461bcd60e51b815260040180806020018281038252602481526020018061265c6024913960400191505060405180910390fd5b60038101805460ff19166001179055600d546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561115157600080fd5b505afa158015611165573d6000803e3d6000fd5b505050506040513d602081101561117b57600080fd5b5051600b54600184015460ff909216600a0a92506000916111b391906111a7908563ffffffff6120a616565b9063ffffffff61206016565b600d546040805163a9059cbb60e01b81523360048201526024810184905290519293506001600160a01b039091169163a9059cbb916044808201926020929091908290030181600087803b15801561120a57600080fd5b505af115801561121e573d6000803e3d6000fd5b505050506040513d602081101561123457600080fd5b5050604080513381526020810183905281517fe9aa550fd75d0d28e07fa9dd67d3ae705678776f6c4a75abd09534f93e7d7907929181900390910190a150505050565b600c546000908190600160a01b900460ff1661129857611295611f02565b90505b600c54600160a01b900460ff16806112d05750600154158015906112d0575042600654600554600154010110806112d05750600a5481105b61130b5760405162461bcd60e51b81526004018080602001828103825260298152602001806123466029913960400191505060405180910390fd5b600c54600160a01b900460ff1661133057600c805460ff60a01b1916600160a01b1790555b611338612317565b50336000908152600e6020908152604091829020825160a081018452815460ff90811615801580845260018501549584019590955260028401549583019590955260039092015480831615156060830152610100900490911615156080820152916113a7575060008160200151115b6113e25760405162461bcd60e51b815260040180806020018281038252602481526020018061265c6024913960400191505060405180910390fd5b8060600151156114235760405162461bcd60e51b81526004018080602001828103825260218152602001806124b46021913960400191505060405180910390fd5b8060800151156114645760405162461bcd60e51b815260040180806020018281038252602c81526020018061271d602c913960400191505060405180910390fd5b600d546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b1580156114a957600080fd5b505afa1580156114bd573d6000803e3d6000fd5b505050506040513d60208110156114d357600080fd5b5051600b54602084015160ff909216600a0a92506000916114ff91906111a7908563ffffffff6120a616565b94505050505090565b600c546001600160a01b031681565b61151f6120a2565b6000546001600160a01b0390811691161461156f576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b600154158061157f575060015442105b6115ba5760405162461bcd60e51b815260040180806020018281038252602c815260200180612452602c913960400191505060405180910390fd5b4289116115f85760405162461bcd60e51b81526004018080602001828103825260328152602001806123b66032913960400191505060405180910390fd5b868811801561160657508587115b8015611610575060015b61164b5760405162461bcd60e51b81526004018080602001828103825260288152602001806126806028913960400191505060405180910390fd5b848411801561165a5750600085115b6116955760405162461bcd60e51b81526004018080602001828103825260788152602001806125e46078913960800191505060405180910390fd5b600081116116d45760405162461bcd60e51b81526004018080602001828103825260368152602001806125486036913960400191505060405180910390fd5b600189905560028890556003879055600486905560058590556006849055600983905560078290556008819055604080518a815290517fadbb0ede2a5ced7c29393800ecf9fcc08157e4b2c8d46ef87fdbe7d546e0366e9181900360200190a1505050505050505050565b6117476120a2565b6000546001600160a01b03908116911614611797576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60015481565b600c54600160a01b900460ff1681565b6000546001600160a01b031690565b600b5481565b6001600160a01b03166000908152600e6020526040902080546001820154600283015460039093015460ff92831694919392808216926101009092041690565b6118546120a2565b6000546001600160a01b039081169116146118a4576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b60015415806118b4575060015442105b6118ef5760405162461bcd60e51b815260040180806020018281038252602c815260200180612452602c913960400191505060405180910390fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600154600254600354600454600554600654600954600754600854909192939495969798565b6001600160a01b03166000908152600e602052604090205460ff1690565b61195d6120a2565b6000546001600160a01b039081169116146119ad576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b60015415806119bd575060015442105b6119f85760405162461bcd60e51b815260040180806020018281038252602c815260200180612452602c913960400191505060405180910390fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b611a226120a2565b6000546001600160a01b03908116911614611a72576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b600c54600090600160a01b900460ff16611a9157611a8e611f02565b90505b600c54600160a01b900460ff1680611ac9575060015415801590611ac957504260065460055460015401011080611ac95750600a5481105b611b045760405162461bcd60e51b81526004018080602001828103825260298152602001806123466029913960400191505060405180910390fd5b600c54600160a01b900460ff16611b2957600c805460ff60a01b1916600160a01b1790555b600080600d60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611b7a57600080fd5b505afa158015611b8e573d6000803e3d6000fd5b505050506040513d6020811015611ba457600080fd5b5051600f5460ff909116600a0a915060005b81811015611d8b576000600f8281548110611bcd57fe5b60009182526020808320909101546001600160a01b0316808352600e909152604090912060018101549192509015801590611c0d5750600381015460ff16155b8015611c2357506003810154610100900460ff16155b15611d81576000611c47600b546111a78885600101546120a690919063ffffffff16565b600d54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611c9857600080fd5b505afa158015611cac573d6000803e3d6000fd5b505050506040513d6020811015611cc257600080fd5b505160038401805461ff001916610100179055905081811015611ce3578091505b8115611d7e57611cf9888363ffffffff611ffd16565b600d546040805163a9059cbb60e01b81526001600160a01b038881166004830152602482018790529151939b5091169163a9059cbb916044808201926020929091908290030181600087803b158015611d5157600080fd5b505af1158015611d65573d6000803e3d6000fd5b505050506040513d6020811015611d7b57600080fd5b50505b50505b5050600101611bb6565b5060008311611dcb5760405162461bcd60e51b81526004018080602001828103825260478152602001806125016047913960600191505060405180910390fd5b6040805184815290517f4ce7b438bc8661be29f76bcbf514c8b1182d5edaa07534daaeaa73554445f9a69181900360200190a150505050565b611e0c6120a2565b6000546001600160a01b03908116911614611e5c576040805162461bcd60e51b8152602060048201819052602482015260008051602061259f833981519152604482015290519081900360640190fd5b6001600160a01b038116611ea15760405162461bcd60e51b815260040180806020018281038252602681526020018061236f6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600a5490565b600080611f0d6120ff565b90506000600d60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611f5f57600080fd5b505afa158015611f73573d6000803e3d6000fd5b505050506040513d6020811015611f8957600080fd5b5051600d54604080516370a0823160e01b8152306004820152905160ff909316600a0a9350600092611fe99285926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610a2b57600080fd5b905060006114ff848363ffffffff6120a616565b600082820183811015612057576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061205783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506121de565b3390565b6000826120b55750600061205a565b828202828482816120c257fe5b04146120575760405162461bcd60e51b815260040180806020018281038252602181526020018061257e6021913960400191505060405180910390fd5b60008060009050426001541115801561211d57506005546001540142105b1561216b57600060015442039050600061214c6005546111a760035460025403856120a690919063ffffffff16565b600254909150612162908263ffffffff61228016565b925050506121d9565b42600554600154011115801561218b575060065460055460015401014211155b156121d9576000600554600154420303905060006121be6006546111a760045460035403856120a690919063ffffffff16565b6003549091506121d4908263ffffffff61228016565b925050505b905090565b6000818361226a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561222f578181015183820152602001612217565b50505050905090810190601f16801561225c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161227657fe5b0495945050505050565b600061205783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506000818484111561230f5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561222f578181015183820152602001612217565b505050900390565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091529056fe4b69726141756374696f6e3a2073686f756c642062652061667465722061756374696f6e20656e64734f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734b69726141756374696f6e3a20796f7520636c61696d656420616c72656164792e4b69726141756374696f6e3a2073746172742074696d652073686f756c642062652067726561746572207468616e206e6f774b69726141756374696f6e3a206f766572666c6f77656420746865206361702c20736f20697420697320656e6465644b69726141756374696f6e3a206e6f742062652061626c6520746f2077686974656c6973742f626c61636b6c69737420616464726573732830292e4b69726141756374696f6e3a2073686f756c64206265206265666f72652061756374696f6e207374617274734b69726141756374696f6e3a20596f757220636f6e747269627574696f6e206f766572666c6f777320746865206861726420636170214b69726141756374696f6e3a20796f7520616c726561647920636c61696d65642e4b69726141756374696f6e3a206974206973206f7574206f662070726f63657373696e6720706572696f642e4b69726141756374696f6e3a206e6f7468696e6720746f20646973747269627574652e20616c726561647920636c61696d6564206f7220646973747269627574656420616c6c214b69726141756374696f6e3a20746865206d6178696d756d20616d6f756e74207065722074782073686f756c642062652076616c6964536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724b69726141756374696f6e3a206e6f7468696e67206c65667420746f2077697468647261774b69726141756374696f6e3a2074686520666972737420736c6f70652073686f756c642068617665206661737465722064656372656173696e67207261746520616e642074686520706572696f64206f66206561636820736c6f70652073686f756c642062652067726561746572207468616e207a65726f4b69726141756374696f6e3a20796f7520646964206e6f7420636f6e747269627574652e4b69726141756374696f6e3a2070726963652073686f756c6420676f2064656372656173696e672e4b69726141756374696f6e3a20596f75277265206e6f742077686974656c69737465642c20776169742061206d6f6d656e742e4b69726141756374696f6e3a2073746172742074696d65206973206e6f7420636f6e66696775726564207965742e20536f206e6f7420696e2070726f67726573732e4b69726141756374696f6e3a20776520616c72656164792073656e7420746f20796f75722077616c6c65742e4b69726141756374696f6e3a2069742065786365656473207468652074782072617465206c696d6974a264697066735822122063fd9103a8eb846a234dffdc37c8302003201375c688c1d5a3c8d529a70704db64736f6c63430006020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000016980b3b4a3f9d89e33311b5aa8f80303e5ca4f8
-----Decoded View---------------
Arg [0] : _kiraTokenAddr (address): 0x16980b3B4a3f9D89E33311B5aa8f80303E5ca4F8
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000016980b3b4a3f9d89e33311b5aa8f80303e5ca4f8
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.