Token migration announcement. CRYPTO10 Hedged token contract has migrated to a new address.
ERC-20
Overview
Max Total Supply
2,493,084.752887001874263417 C10
Holders
4,351
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
C10Token
Compiler Version
v0.5.8+commit.23d335f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-05-02 */ /** * Invictus Capital - CRYPTO10 Hedged * https://invictuscapital.com * MIT License - https://github.com/invictuscapital/smartcontracts/ * Uses code from the OpenZeppelin project */ // File: contracts/openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.6; /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol pragma solidity ^0.5.6; /** * @title ERC20Detailed token * @dev The decimals are only for visualization purposes. * All the operations are done using the smallest and indivisible token unit, * just as on Ethereum all the operations are done in wei. */ contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @return the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @return the symbol of the token. */ function symbol() public view returns (string memory) { return _symbol; } /** * @return the number of decimals of the token. */ function decimals() public view returns (uint8) { return _decimals; } } // File: contracts/openzeppelin-solidity/contracts/math/SafeMath.sol pragma solidity ^0.5.6; /** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on 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-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } /** * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; } /** * @dev Adds two unsigned integers, reverts on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } /** * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; } } // File: contracts/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol pragma solidity ^0.5.6; /** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approval events, allowing applications to reconstruct the allowance status for * all accounts just by listening to said events. Note that this isn't required by the specification, and other * compliant implementations may not do it. */ contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev Gets the balance of the specified address. * @param owner The address to query the balance of. * @return An uint256 representing the amount owned by the passed address. */ function balanceOf(address owner) public view returns (uint256) { return _balances[owner]; } /** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param owner address The address which owns the funds. * @param spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowed[owner][spender]; } /** * @dev Transfer token for a specified address * @param to The address to transfer to. * @param value The amount to be transferred. */ function transfer(address to, uint256 value) public returns (bool) { _transfer(msg.sender, to, value); return true; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * 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 * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. */ function approve(address spender, uint256 value) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } /** * @dev Transfer tokens from one address to another. * Note that while this function emits an Approval event, this is not required as per the specification, * and other compliant implementations may not emit the event. * @param from address The address which you want to send tokens from * @param to address The address which you want to transfer to * @param value uint256 the amount of tokens to be transferred */ function transferFrom(address from, address to, uint256 value) public returns (bool) { _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value); _transfer(from, to, value); emit Approval(from, msg.sender, _allowed[from][msg.sender]); return true; } /** * @dev Increase the amount of tokens that an owner allowed to a spender. * approve should be called when allowed_[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Emits an Approval event. * @param spender The address which will spend the funds. * @param addedValue The amount of tokens to increase the allowance by. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = _allowed[msg.sender][spender].add(addedValue); emit Approval(msg.sender, spender, _allowed[msg.sender][spender]); return true; } /** * @dev Decrease the amount of tokens that an owner allowed to a spender. * approve should be called when allowed_[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Emits an Approval event. * @param spender The address which will spend the funds. * @param subtractedValue The amount of tokens to decrease the allowance by. */ function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = _allowed[msg.sender][spender].sub(subtractedValue); emit Approval(msg.sender, spender, _allowed[msg.sender][spender]); return true; } /** * @dev Transfer token for a specified addresses * @param from The address to transfer from. * @param to The address to transfer to. * @param value The amount to be transferred. */ function _transfer(address from, address to, uint256 value) internal { require(to != address(0)); _balances[from] = _balances[from].sub(value); _balances[to] = _balances[to].add(value); emit Transfer(from, to, value); } /** * @dev Internal function that mints an amount of the token and assigns it to * an account. This encapsulates the modification of balances such that the * proper events are emitted. * @param account The account that will receive the created tokens. * @param value The amount that will be created. */ function _mint(address account, uint256 value) internal { require(account != address(0)); _totalSupply = _totalSupply.add(value); _balances[account] = _balances[account].add(value); emit Transfer(address(0), account, value); } /** * @dev Internal function that burns an amount of the token of a given * account. * @param account The account whose tokens will be burnt. * @param value The amount that will be burnt. */ function _burn(address account, uint256 value) internal { require(account != address(0)); _totalSupply = _totalSupply.sub(value); _balances[account] = _balances[account].sub(value); emit Transfer(account, address(0), value); } /** * @dev Internal function that burns an amount of the token of a given * account, deducting from the sender's allowance for said account. Uses the * internal burn function. * Emits an Approval event (reflecting the reduced allowance). * @param account The account whose tokens will be burnt. * @param value The amount that will be burnt. */ function _burnFrom(address account, uint256 value) internal { _allowed[account][msg.sender] = _allowed[account][msg.sender].sub(value); _burn(account, value); emit Approval(account, msg.sender, _allowed[account][msg.sender]); } } // File: contracts/openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol pragma solidity ^0.5.6; /** * @title Burnable Token * @dev Token that can be irreversibly burned (destroyed). */ contract ERC20Burnable is ERC20 { /** * @dev Burns a specific amount of tokens. * @param value The amount of token to be burned. */ function burn(uint256 value) public { _burn(msg.sender, value); } /** * @dev Burns a specific amount of tokens from the target address and decrements allowance * @param from address The address which you want to send tokens from * @param value uint256 The amount of token to be burned */ function burnFrom(address from, uint256 value) public { _burnFrom(from, value); } } // File: contracts/openzeppelin-solidity/contracts/ownership/Ownable.sol pragma solidity ^0.5.6; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } /** * @return the address of the owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner()); _; } /** * @return true if `msg.sender` is the owner of the contract. */ function isOwner() public view returns (bool) { return msg.sender == _owner; } /** * @dev Allows the current owner to relinquish control of the contract. * @notice Renouncing to ownership will leave the contract without an owner. * It will not be possible to call the functions with the `onlyOwner` * modifier anymore. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0)); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: contracts/openzeppelin-solidity/contracts/access/Roles.sol pragma solidity ^0.5.6; /** * @title Roles * @dev Library for managing addresses assigned to a Role. */ library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an account access to this role */ function add(Role storage role, address account) internal { require(account != address(0)); require(!has(role, account)); role.bearer[account] = true; } /** * @dev remove an account's access to this role */ function remove(Role storage role, address account) internal { require(account != address(0)); require(has(role, account)); role.bearer[account] = false; } /** * @dev check if an account has this role * @return bool */ function has(Role storage role, address account) internal view returns (bool) { require(account != address(0)); return role.bearer[account]; } } // File: contracts/openzeppelin-solidity/contracts/access/roles/PauserRole.sol pragma solidity ^0.5.6; contract PauserRole { using Roles for Roles.Role; event PauserAdded(address indexed account); event PauserRemoved(address indexed account); Roles.Role private _pausers; constructor () internal { _addPauser(msg.sender); } modifier onlyPauser() { require(isPauser(msg.sender)); _; } function isPauser(address account) public view returns (bool) { return _pausers.has(account); } function addPauser(address account) public onlyPauser { _addPauser(account); } function renouncePauser() public { _removePauser(msg.sender); } function _addPauser(address account) internal { _pausers.add(account); emit PauserAdded(account); } function _removePauser(address account) internal { _pausers.remove(account); emit PauserRemoved(account); } } // File: contracts/openzeppelin-solidity/contracts/lifecycle/Pausable.sol pragma solidity ^0.5.6; /** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */ contract Pausable is PauserRole { event Paused(address account); event Unpaused(address account); bool private _paused; constructor () internal { _paused = false; } /** * @return true if the contract is paused, false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!_paused); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(_paused); _; } /** * @dev called by the owner to pause, triggers stopped state */ function pause() public onlyPauser whenNotPaused { _paused = true; emit Paused(msg.sender); } /** * @dev called by the owner to unpause, returns to normal state */ function unpause() public onlyPauser whenPaused { _paused = false; emit Unpaused(msg.sender); } } // File: contracts/openzeppelin-solidity/contracts/access/roles/MinterRole.sol pragma solidity ^0.5.6; contract MinterRole { using Roles for Roles.Role; event MinterAdded(address indexed account); event MinterRemoved(address indexed account); Roles.Role private _minters; constructor () internal { _addMinter(msg.sender); } modifier onlyMinter() { require(isMinter(msg.sender)); _; } function isMinter(address account) public view returns (bool) { return _minters.has(account); } function addMinter(address account) public onlyMinter { _addMinter(account); } function renounceMinter() public { _removeMinter(msg.sender); } function _addMinter(address account) internal { _minters.add(account); emit MinterAdded(account); } function _removeMinter(address account) internal { _minters.remove(account); emit MinterRemoved(account); } } // File: contracts/openzeppelin-solidity/contracts/access/roles/WhitelistAdminRole.sol pragma solidity ^0.5.6; /** * @title WhitelistAdminRole * @dev WhitelistAdmins are responsible for assigning and removing Whitelisted accounts. */ contract WhitelistAdminRole { using Roles for Roles.Role; event WhitelistAdminAdded(address indexed account); event WhitelistAdminRemoved(address indexed account); Roles.Role private _whitelistAdmins; constructor () internal { _addWhitelistAdmin(msg.sender); } modifier onlyWhitelistAdmin() { require(isWhitelistAdmin(msg.sender)); _; } function isWhitelistAdmin(address account) public view returns (bool) { return _whitelistAdmins.has(account); } function addWhitelistAdmin(address account) public onlyWhitelistAdmin { _addWhitelistAdmin(account); } function renounceWhitelistAdmin() public { _removeWhitelistAdmin(msg.sender); } function _addWhitelistAdmin(address account) internal { _whitelistAdmins.add(account); emit WhitelistAdminAdded(account); } function _removeWhitelistAdmin(address account) internal { _whitelistAdmins.remove(account); emit WhitelistAdminRemoved(account); } } // File: contracts/openzeppelin-solidity/contracts/access/roles/WhitelistedRole.sol pragma solidity ^0.5.6; /** * @title WhitelistedRole * @dev Whitelisted accounts have been approved by a WhitelistAdmin to perform certain actions (e.g. participate in a * crowdsale). This role is special in that the only accounts that can add it are WhitelistAdmins (who can also remove * it), and not Whitelisteds themselves. */ contract WhitelistedRole is WhitelistAdminRole { using Roles for Roles.Role; event WhitelistedAdded(address indexed account); event WhitelistedRemoved(address indexed account); Roles.Role private _whitelisteds; modifier onlyWhitelisted() { require(isWhitelisted(msg.sender)); _; } function isWhitelisted(address account) public view returns (bool) { return _whitelisteds.has(account); } function addWhitelisted(address account) public onlyWhitelistAdmin { _addWhitelisted(account); } function removeWhitelisted(address account) public onlyWhitelistAdmin { _removeWhitelisted(account); } function renounceWhitelisted() public { _removeWhitelisted(msg.sender); } function _addWhitelisted(address account) internal { _whitelisteds.add(account); emit WhitelistedAdded(account); } function _removeWhitelisted(address account) internal { _whitelisteds.remove(account); emit WhitelistedRemoved(account); } } // File: contracts/InvictusWhitelist.sol pragma solidity ^0.5.6; /** * Manages whitelisted addresses. * */ contract InvictusWhitelist is Ownable, WhitelistedRole { constructor () WhitelistedRole() public { } /// @dev override to support legacy name function verifyParticipant(address participant) public onlyWhitelistAdmin { if (!isWhitelisted(participant)) { addWhitelisted(participant); } } /// Allow the owner to remove a whitelistAdmin function removeWhitelistAdmin(address account) public onlyOwner { require(account != msg.sender, "Use renounceWhitelistAdmin"); _removeWhitelistAdmin(account); } } // File: contracts/C10Token.sol pragma solidity ^0.5.6; /** * Contract for CRYPTO10 Hedged (C10) fund. * */ contract C10Token is ERC20Detailed, ERC20Burnable, Ownable, Pausable, MinterRole { // Maps participant addresses to the eth balance pending token issuance mapping(address => uint256) public pendingBuys; // The participant accounts waiting for token issuance address[] public participantAddresses; // Maps participant addresses to the withdrawal request mapping (address => uint256) public pendingWithdrawals; address payable[] public withdrawals; uint256 public minimumWei = 50 finney; uint256 public entryFee = 50; // 0.5% , or 50 bips uint256 public exitFee = 50; // 0.5% , or 50 bips uint256 public minTokenRedemption = 1 ether; uint256 public maxAllocationsPerTx = 50; uint256 public maxWithdrawalsPerTx = 50; Price public price; address public whitelistContract; struct Price { uint256 numerator; uint256 denominator; } event PriceUpdate(uint256 numerator, uint256 denominator); event AddLiquidity(uint256 value); event RemoveLiquidity(uint256 value); event DepositReceived(address indexed participant, uint256 value); event TokensIssued(address indexed participant, uint256 amountTokens, uint256 etherAmount); event WithdrawRequest(address indexed participant, uint256 amountTokens); event Withdraw(address indexed participant, uint256 amountTokens, uint256 etherAmount); event WithdrawInvalidAddress(address indexed participant, uint256 amountTokens); event WithdrawFailed(address indexed participant, uint256 amountTokens); event TokensClaimed(address indexed token, uint256 balance); constructor (uint256 priceNumeratorInput, address whitelistContractInput) ERC20Detailed("CRYPTO10 Hedged", "C10", 18) ERC20Burnable() Pausable() public { price = Price(priceNumeratorInput, 1000); require(priceNumeratorInput > 0, "Invalid price numerator"); require(whitelistContractInput != address(0), "Invalid whitelist address"); whitelistContract = whitelistContractInput; } /** * @dev fallback function that buys tokens if the sender is whitelisted. */ function () external payable { buyTokens(msg.sender); } /** * @dev Explicitly buy via contract. */ function buy() external payable { buyTokens(msg.sender); } /** * Sets the maximum number of allocations in a single transaction. * @dev Allows us to configure batch sizes and avoid running out of gas. */ function setMaxAllocationsPerTx(uint256 newMaxAllocationsPerTx) external onlyOwner { require(newMaxAllocationsPerTx > 0, "Must be greater than 0"); maxAllocationsPerTx = newMaxAllocationsPerTx; } /** * Sets the maximum number of withdrawals in a single transaction. * @dev Allows us to configure batch sizes and avoid running out of gas. */ function setMaxWithdrawalsPerTx(uint256 newMaxWithdrawalsPerTx) external onlyOwner { require(newMaxWithdrawalsPerTx > 0, "Must be greater than 0"); maxWithdrawalsPerTx = newMaxWithdrawalsPerTx; } function setEntryFee(uint256 newFee) external onlyOwner { require(newFee < 10000, "Must be less than 100 percent"); entryFee = newFee; } function setExitFee(uint256 newFee) external onlyOwner { require(newFee < 10000, "Must be less than 100 percent"); exitFee = newFee; } /// Sets the minimum wei when buying tokens. function setMinimumBuyValue(uint256 newMinimumWei) external onlyOwner { require(newMinimumWei > 0, "Minimum must be greater than 0"); minimumWei = newMinimumWei; } /// Sets the minimum number of tokens to redeem. function setMinimumTokenRedemption(uint256 newMinTokenRedemption) external onlyOwner { require(newMinTokenRedemption > 0, "Minimum must be greater than 0"); minTokenRedemption = newMinTokenRedemption; } /// Updates the price numerator. function updatePrice(uint256 newNumerator) external onlyMinter { require(newNumerator > 0, "Must be positive value"); price.numerator = newNumerator; allocateTokens(); processWithdrawals(); emit PriceUpdate(price.numerator, price.denominator); } /// Updates the price denominator. function updatePriceDenominator(uint256 newDenominator) external onlyMinter { require(newDenominator > 0, "Must be positive value"); price.denominator = newDenominator; } /** * Whitelisted token holders can request token redemption, and withdraw ETH. * @param amountTokensToWithdraw The number of tokens to withdraw. * @dev withdrawn tokens are burnt. */ function requestWithdrawal(uint256 amountTokensToWithdraw) external whenNotPaused onlyWhitelisted { address payable participant = msg.sender; require(balanceOf(participant) >= amountTokensToWithdraw, "Cannot withdraw more than balance held"); require(amountTokensToWithdraw >= minTokenRedemption, "Too few tokens"); burn(amountTokensToWithdraw); uint256 pendingAmount = pendingWithdrawals[participant]; if (pendingAmount == 0) { withdrawals.push(participant); } pendingWithdrawals[participant] = pendingAmount.add(amountTokensToWithdraw); emit WithdrawRequest(participant, amountTokensToWithdraw); } /// Allows owner to claim any ERC20 tokens. function claimTokens(ERC20 token) external onlyOwner { require(address(token) != address(0), "Invalid address"); uint256 balance = token.balanceOf(address(this)); token.transfer(owner(), token.balanceOf(address(this))); emit TokensClaimed(address(token), balance); } /** * @dev Allows the owner to burn a specific amount of tokens on a participant's behalf. * @param value The amount of tokens to be burned. */ function burnForParticipant(address account, uint256 value) external onlyOwner { _burn(account, value); } /// Adds liquidity to the contract, allowing anyone to deposit ETH function addLiquidity() external payable { require(msg.value > 0, "Must be positive value"); emit AddLiquidity(msg.value); } /// Removes liquidity, allowing owner to transfer eth to the owner. function removeLiquidity(uint256 amount) external onlyOwner { require(amount <= address(this).balance, "Insufficient balance"); msg.sender.transfer(amount); emit RemoveLiquidity(amount); } /// Allow the owner to remove a minter function removeMinter(address account) external onlyOwner { require(account != msg.sender, "Use renounceMinter"); _removeMinter(account); } /// Allow the owner to remove a pauser function removePauser(address account) external onlyOwner { require(account != msg.sender, "Use renouncePauser"); _removePauser(account); } /// returns the number of withdrawals pending. function numberWithdrawalsPending() external view returns (uint256) { return withdrawals.length; } /// returns the number of pending buys, waiting for token issuance. function numberBuysPending() external view returns (uint256) { return participantAddresses.length; } /** * @dev Function to mint tokens when not paused. * @param to The address that will receive the minted tokens. * @param value The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */ function mint(address to, uint256 value) public onlyMinter whenNotPaused returns (bool) { _mint(to, value); return true; } /** * First phase of the 2-part buy, the participant deposits eth and waits * for a price to be set so the tokens can be minted. * @param participant whitelisted buyer. */ function buyTokens(address participant) internal whenNotPaused onlyWhitelisted { assert(participant != address(0)); // Ensure minimum investment is met require(msg.value >= minimumWei, "Minimum wei not met"); uint256 pendingAmount = pendingBuys[participant]; if (pendingAmount == 0) { participantAddresses.push(participant); } // Increase the pending balance and wait for the price update pendingBuys[participant] = pendingAmount.add(msg.value); emit DepositReceived(participant, msg.value); } /// Internal function to allocate token. function allocateTokens() internal { uint256 numberOfAllocations = min(participantAddresses.length, maxAllocationsPerTx); uint256 startingIndex = participantAddresses.length; uint256 endingIndex = participantAddresses.length.sub(numberOfAllocations); for (uint256 i = startingIndex; i > endingIndex; i--) { handleAllocation(i - 1); } } function handleAllocation(uint256 index) internal { address participant = participantAddresses[index]; uint256 deposit = pendingBuys[participant]; uint256 feeAmount = deposit.mul(entryFee) / 10000; uint256 balance = deposit.sub(feeAmount); uint256 newTokens = balance.mul(price.numerator) / price.denominator; pendingBuys[participant] = 0; participantAddresses.pop(); if (feeAmount > 0) { address(uint160(owner())).transfer(feeAmount); } mint(participant, newTokens); emit TokensIssued(participant, newTokens, balance); } /// Internal function to process withdrawals. function processWithdrawals() internal { uint256 numberOfWithdrawals = min(withdrawals.length, maxWithdrawalsPerTx); uint256 startingIndex = withdrawals.length; uint256 endingIndex = withdrawals.length.sub(numberOfWithdrawals); for (uint256 i = startingIndex; i > endingIndex; i--) { handleWithdrawal(i - 1); } } function handleWithdrawal(uint256 index) internal { address payable participant = withdrawals[index]; uint256 tokens = pendingWithdrawals[participant]; uint256 withdrawValue = tokens.mul(price.denominator) / price.numerator; pendingWithdrawals[participant] = 0; withdrawals.pop(); if (address(this).balance < withdrawValue) { mint(participant, tokens); emit WithdrawFailed(participant, tokens); return; } uint256 feeAmount = withdrawValue.mul(exitFee) / 10000; uint256 balance = withdrawValue.sub(feeAmount); if (participant.send(balance)) { if (feeAmount > 0) { address(uint160(owner())).transfer(feeAmount); } emit Withdraw(participant, tokens, balance); } else { mint(participant, tokens); emit WithdrawInvalidAddress(participant, tokens); } } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } modifier onlyWhitelisted() { require(InvictusWhitelist(whitelistContract).isWhitelisted(msg.sender), "Must be whitelisted"); _; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"entryFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxAllocationsPerTx","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"removeMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"pendingBuys","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newMaxWithdrawalsPerTx","type":"uint256"}],"name":"setMaxWithdrawalsPerTx","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isPauser","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"participantAddresses","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minTokenRedemption","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"withdrawals","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxWithdrawalsPerTx","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"value","type":"uint256"}],"name":"burnForParticipant","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"exitFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newMaxAllocationsPerTx","type":"uint256"}],"name":"setMaxAllocationsPerTx","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"removePauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renouncePauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addPauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"whitelistContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newNumerator","type":"uint256"}],"name":"updatePrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"removeLiquidity","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amountTokensToWithdraw","type":"uint256"}],"name":"requestWithdrawal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"price","outputs":[{"name":"numerator","type":"uint256"},{"name":"denominator","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isMinter","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"numberWithdrawalsPending","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"numberBuysPending","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newMinimumWei","type":"uint256"}],"name":"setMinimumBuyValue","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newMinTokenRedemption","type":"uint256"}],"name":"setMinimumTokenRedemption","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newDenominator","type":"uint256"}],"name":"updatePriceDenominator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"}],"name":"claimTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minimumWei","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newFee","type":"uint256"}],"name":"setExitFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"addLiquidity","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"newFee","type":"uint256"}],"name":"setEntryFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"pendingWithdrawals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"priceNumeratorInput","type":"uint256"},{"name":"whitelistContractInput","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"numerator","type":"uint256"},{"indexed":false,"name":"denominator","type":"uint256"}],"name":"PriceUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"value","type":"uint256"}],"name":"AddLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"value","type":"uint256"}],"name":"RemoveLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"participant","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"DepositReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"participant","type":"address"},{"indexed":false,"name":"amountTokens","type":"uint256"},{"indexed":false,"name":"etherAmount","type":"uint256"}],"name":"TokensIssued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"participant","type":"address"},{"indexed":false,"name":"amountTokens","type":"uint256"}],"name":"WithdrawRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"participant","type":"address"},{"indexed":false,"name":"amountTokens","type":"uint256"},{"indexed":false,"name":"etherAmount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"participant","type":"address"},{"indexed":false,"name":"amountTokens","type":"uint256"}],"name":"WithdrawInvalidAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"participant","type":"address"},{"indexed":false,"name":"amountTokens","type":"uint256"}],"name":"WithdrawFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"token","type":"address"},{"indexed":false,"name":"balance","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"PauserRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
608060405266b1a2bc2ec50000600e556032600f556032601055670de0b6b3a7640000601155603260125560326013553480156200003c57600080fd5b5060405160408062002ea8833981018060405260408110156200005e57600080fd5b508051602091820151604080518082018252600f81527f43525950544f31302048656467656400000000000000000000000000000000008186019081528251808401909352600383527f4331300000000000000000000000000000000000000000000000000000000000958301959095528051939492939092601291620000e891600091620003e9565b508151620000fe906001906020850190620003e9565b506002805460ff90921660ff199092169190911790555050600680546001600160a01b0319163317908190556040516001600160a01b0391909116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36200017333620002b960201b60201c565b6008805460ff191690556200018f336200030b602090811b901c565b604080518082019091528281526103e860209091018190526014839055601555816200021c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f496e76616c6964207072696365206e756d657261746f72000000000000000000604482015290519081900360640190fd5b6001600160a01b0381166200029257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496e76616c69642077686974656c697374206164647265737300000000000000604482015290519081900360640190fd5b601680546001600160a01b0319166001600160a01b0392909216919091179055506200048e565b620002d48160076200035d60201b6200254f1790919060201c565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b620003268160096200035d60201b6200254f1790919060201c565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6001600160a01b0381166200037157600080fd5b620003838282620003b360201b60201c565b156200038e57600080fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b038216620003c957600080fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200042c57805160ff19168380011785556200045c565b828001600101855582156200045c579182015b828111156200045c5782518255916020019190600101906200043f565b506200046a9291506200046e565b5090565b6200048b91905b808211156200046a576000815560010162000475565b90565b612a0a806200049e6000396000f3fe6080604052600436106103765760003560e01c806382dc1ec4116101d1578063a9059cbb11610102578063dd62ed3e116100a0578063e8078d941161006f578063e8078d9414610c0d578063eb770d0c14610c15578063f2fde38b14610c3f578063f3f4370314610c7257610376565b8063dd62ed3e14610b60578063df8de3e714610b9b578063e0e267e514610bce578063e5a583a914610be357610376565b8063cc9be27a116100dc578063cc9be27a14610acd578063cf0aed0e14610ae2578063cf60402f14610b0c578063dbb2455414610b3657610376565b8063a9059cbb14610a4c578063aa271e1a14610a85578063c239f6ff14610ab857610376565b8063983b2d561161016f5780639ee679e8116101495780639ee679e8146109b3578063a035b1fe146109dd578063a457c2d714610a0b578063a6f2ae3a14610a4457610376565b8063983b2d561461094157806398650275146109745780639c8f9f231461098957610376565b80638d6cc56d116101ab5780638d6cc56d146108d85780638da5cb5b146109025780638f32d59b1461091757806395d89b411461092c57610376565b806382dc1ec41461087b5780638456cb59146108ae57806384900b04146108c357610376565b806346fbf68e116102ab5780636284ae41116102495780636ef8d66d116102235780636ef8d66d146107e557806370a08231146107fa578063715018a61461082d57806379cc67901461084257610376565b80636284ae4114610773578063640c2544146107885780636b2c0f55146107b257610376565b80635c975abb116102855780635c975abb146106e65780635cc07076146106fb5780636036846d146107255780636130aabf1461073a57610376565b806346fbf68e1461065857806354ffbddb1461068b57806359a747d4146106d157610376565b8063313ce567116103185780633f4ba83a116102f25780633f4ba83a146105b657806340c10f19146105cb57806342966c6814610604578063454adff91461062e57610376565b8063313ce5671461051f57806331a4cbb61461054a578063395093511461057d57610376565b806318160ddd1161035457806318160ddd1461047f57806323b872dd1461049457806327e70606146104d75780633092afd5146104ec57610376565b806306fdde0314610381578063072ea61c1461040b578063095ea7b314610432575b61037f33610ca5565b005b34801561038d57600080fd5b50610396610ebd565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103d05781810151838201526020016103b8565b50505050905090810190601f1680156103fd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561041757600080fd5b50610420610f53565b60408051918252519081900360200190f35b34801561043e57600080fd5b5061046b6004803603604081101561045557600080fd5b506001600160a01b038135169060200135610f59565b604080519115158252519081900360200190f35b34801561048b57600080fd5b50610420610fc4565b3480156104a057600080fd5b5061046b600480360360608110156104b757600080fd5b506001600160a01b03813581169160208101359091169060400135610fca565b3480156104e357600080fd5b50610420611081565b3480156104f857600080fd5b5061037f6004803603602081101561050f57600080fd5b50356001600160a01b0316611087565b34801561052b57600080fd5b50610534611105565b6040805160ff9092168252519081900360200190f35b34801561055657600080fd5b506104206004803603602081101561056d57600080fd5b50356001600160a01b031661110e565b34801561058957600080fd5b5061046b600480360360408110156105a057600080fd5b506001600160a01b038135169060200135611120565b3480156105c257600080fd5b5061037f6111bc565b3480156105d757600080fd5b5061046b600480360360408110156105ee57600080fd5b506001600160a01b03813516906020013561121c565b34801561061057600080fd5b5061037f6004803603602081101561062757600080fd5b5035611253565b34801561063a57600080fd5b5061037f6004803603602081101561065157600080fd5b503561125d565b34801561066457600080fd5b5061046b6004803603602081101561067b57600080fd5b50356001600160a01b03166112cb565b34801561069757600080fd5b506106b5600480360360208110156106ae57600080fd5b50356112de565b604080516001600160a01b039092168252519081900360200190f35b3480156106dd57600080fd5b50610420611305565b3480156106f257600080fd5b5061046b61130b565b34801561070757600080fd5b506106b56004803603602081101561071e57600080fd5b5035611314565b34801561073157600080fd5b50610420611321565b34801561074657600080fd5b5061037f6004803603604081101561075d57600080fd5b506001600160a01b038135169060200135611327565b34801561077f57600080fd5b50610420611346565b34801561079457600080fd5b5061037f600480360360208110156107ab57600080fd5b503561134c565b3480156107be57600080fd5b5061037f600480360360208110156107d557600080fd5b50356001600160a01b03166113ba565b3480156107f157600080fd5b5061037f611435565b34801561080657600080fd5b506104206004803603602081101561081d57600080fd5b50356001600160a01b0316611440565b34801561083957600080fd5b5061037f61145b565b34801561084e57600080fd5b5061037f6004803603604081101561086557600080fd5b506001600160a01b0381351690602001356114b6565b34801561088757600080fd5b5061037f6004803603602081101561089e57600080fd5b50356001600160a01b03166114c0565b3480156108ba57600080fd5b5061037f6114db565b3480156108cf57600080fd5b506106b561153f565b3480156108e457600080fd5b5061037f600480360360208110156108fb57600080fd5b503561154e565b34801561090e57600080fd5b506106b5611611565b34801561092357600080fd5b5061046b611620565b34801561093857600080fd5b50610396611631565b34801561094d57600080fd5b5061037f6004803603602081101561096457600080fd5b50356001600160a01b0316611691565b34801561098057600080fd5b5061037f6116ac565b34801561099557600080fd5b5061037f600480360360208110156109ac57600080fd5b50356116b5565b3480156109bf57600080fd5b5061037f600480360360208110156109d657600080fd5b5035611783565b3480156109e957600080fd5b506109f26119e0565b6040805192835260208301919091528051918290030190f35b348015610a1757600080fd5b5061046b60048036036040811015610a2e57600080fd5b506001600160a01b0381351690602001356119e9565b61037f611a32565b348015610a5857600080fd5b5061046b60048036036040811015610a6f57600080fd5b506001600160a01b038135169060200135611a3b565b348015610a9157600080fd5b5061046b60048036036020811015610aa857600080fd5b50356001600160a01b0316611a48565b348015610ac457600080fd5b50610420611a5b565b348015610ad957600080fd5b50610420611a61565b348015610aee57600080fd5b5061037f60048036036020811015610b0557600080fd5b5035611a67565b348015610b1857600080fd5b5061037f60048036036020811015610b2f57600080fd5b5035611ad5565b348015610b4257600080fd5b5061037f60048036036020811015610b5957600080fd5b5035611b43565b348015610b6c57600080fd5b5061042060048036036040811015610b8357600080fd5b506001600160a01b0381358116916020013516611bb2565b348015610ba757600080fd5b5061037f60048036036020811015610bbe57600080fd5b50356001600160a01b0316611bdd565b348015610bda57600080fd5b50610420611e0c565b348015610bef57600080fd5b5061037f60048036036020811015610c0657600080fd5b5035611e12565b61037f611e81565b348015610c2157600080fd5b5061037f60048036036020811015610c3857600080fd5b5035611f0e565b348015610c4b57600080fd5b5061037f60048036036020811015610c6257600080fd5b50356001600160a01b0316611f7d565b348015610c7e57600080fd5b5061042060048036036020811015610c9557600080fd5b50356001600160a01b0316611f97565b60085460ff1615610cb557600080fd5b60165460408051600160e01b633af32abf02815233600482015290516001600160a01b0390921691633af32abf91602480820192602092909190829003018186803b158015610d0357600080fd5b505afa158015610d17573d6000803e3d6000fd5b505050506040513d6020811015610d2d57600080fd5b5051610d835760408051600160e51b62461bcd02815260206004820152601360248201527f4d7573742062652077686974656c697374656400000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116610d9357fe5b600e54341015610ded5760408051600160e51b62461bcd02815260206004820152601360248201527f4d696e696d756d20776569206e6f74206d657400000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0381166000908152600a602052604090205480610e5757600b80546001810182556000919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b0319166001600160a01b0384161790555b610e67813463ffffffff611fa916565b6001600160a01b0383166000818152600a6020908152604091829020939093558051348152905191927f9936746a4565f9766fa768f88f56a7487c78780ac179562773d1c75c5269537e92918290030190a25050565b60008054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f495780601f10610f1e57610100808354040283529160200191610f49565b820191906000526020600020905b815481529060010190602001808311610f2c57829003601f168201915b5050505050905090565b600f5481565b60006001600160a01b038316610f6e57600080fd5b3360008181526004602090815260408083206001600160a01b0388168085529083529281902086905580518681529051929392600080516020612999833981519152929181900390910190a35060015b92915050565b60055490565b6001600160a01b0383166000908152600460209081526040808320338452909152812054610ffe908363ffffffff611fc216565b6001600160a01b038516600090815260046020908152604080832033845290915290205561102d848484611fd7565b6001600160a01b038416600081815260046020908152604080832033808552908352928190205481519081529051929392600080516020612999833981519152929181900390910190a35060019392505050565b60125481565b61108f611620565b61109857600080fd5b6001600160a01b0381163314156110f95760408051600160e51b62461bcd02815260206004820152601260248201527f5573652072656e6f756e63654d696e7465720000000000000000000000000000604482015290519081900360640190fd5b611102816120a4565b50565b60025460ff1690565b600a6020526000908152604090205481565b60006001600160a01b03831661113557600080fd5b3360009081526004602090815260408083206001600160a01b0387168452909152902054611169908363ffffffff611fa916565b3360008181526004602090815260408083206001600160a01b038916808552908352928190208590558051948552519193600080516020612999833981519152929081900390910190a350600192915050565b6111c5336112cb565b6111ce57600080fd5b60085460ff166111dd57600080fd5b6008805460ff191690556040805133815290517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9181900360200190a1565b600061122733611a48565b61123057600080fd5b60085460ff161561124057600080fd5b61124a83836120ec565b50600192915050565b6111023382612196565b611265611620565b61126e57600080fd5b600081116112c65760408051600160e51b62461bcd02815260206004820152601660248201527f4d7573742062652067726561746572207468616e203000000000000000000000604482015290519081900360640190fd5b601355565b6000610fbe60078363ffffffff61223f16565b600b81815481106112eb57fe5b6000918252602090912001546001600160a01b0316905081565b60115481565b60085460ff1690565b600d81815481106112eb57fe5b60135481565b61132f611620565b61133857600080fd5b6113428282612196565b5050565b60105481565b611354611620565b61135d57600080fd5b600081116113b55760408051600160e51b62461bcd02815260206004820152601660248201527f4d7573742062652067726561746572207468616e203000000000000000000000604482015290519081900360640190fd5b601255565b6113c2611620565b6113cb57600080fd5b6001600160a01b03811633141561142c5760408051600160e51b62461bcd02815260206004820152601260248201527f5573652072656e6f756e63655061757365720000000000000000000000000000604482015290519081900360640190fd5b61110281612274565b61143e33612274565b565b6001600160a01b031660009081526003602052604090205490565b611463611620565b61146c57600080fd5b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b61134282826122bc565b6114c9336112cb565b6114d257600080fd5b6111028161236c565b6114e4336112cb565b6114ed57600080fd5b60085460ff16156114fd57600080fd5b6008805460ff191660011790556040805133815290517f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2589181900360200190a1565b6016546001600160a01b031681565b61155733611a48565b61156057600080fd5b600081116115b85760408051600160e51b62461bcd02815260206004820152601660248201527f4d75737420626520706f7369746976652076616c756500000000000000000000604482015290519081900360640190fd5b60148190556115c56123b4565b6115cd612405565b60145460155460408051928352602083019190915280517f92664190cca12aca9cd5309d87194bdda75bb51362d71c06e1a6f75c7c7657119281900390910190a150565b6006546001600160a01b031690565b6006546001600160a01b0316331490565b60018054604080516020601f60026000196101008789161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f495780601f10610f1e57610100808354040283529160200191610f49565b61169a33611a48565b6116a357600080fd5b61110281612450565b61143e336120a4565b6116bd611620565b6116c657600080fd5b303181111561171f5760408051600160e51b62461bcd02815260206004820152601460248201527f496e73756666696369656e742062616c616e6365000000000000000000000000604482015290519081900360640190fd5b604051339082156108fc029083906000818181858888f1935050505015801561174c573d6000803e3d6000fd5b506040805182815290517f9a5a8a32afd899e7f95003c6e21c9fab2d50e11992439d14472229180c60c7aa9181900360200190a150565b60085460ff161561179357600080fd5b60165460408051600160e01b633af32abf02815233600482015290516001600160a01b0390921691633af32abf91602480820192602092909190829003018186803b1580156117e157600080fd5b505afa1580156117f5573d6000803e3d6000fd5b505050506040513d602081101561180b57600080fd5b50516118615760408051600160e51b62461bcd02815260206004820152601360248201527f4d7573742062652077686974656c697374656400000000000000000000000000604482015290519081900360640190fd5b338161186c82611440565b10156118ac57604051600160e51b62461bcd0281526004018080602001828103825260268152602001806129b96026913960400191505060405180910390fd5b6011548210156119065760408051600160e51b62461bcd02815260206004820152600e60248201527f546f6f2066657720746f6b656e73000000000000000000000000000000000000604482015290519081900360640190fd5b61190f82611253565b6001600160a01b0381166000908152600c60205260409020548061197957600d80546001810182556000919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384161790555b611989818463ffffffff611fa916565b6001600160a01b0383166000818152600c6020908152604091829020939093558051868152905191927f17040713250ec5f668a1c39e7939900e78558350dbaff0ebef34268dfa8ea4ac92918290030190a2505050565b60145460155482565b60006001600160a01b0383166119fe57600080fd5b3360009081526004602090815260408083206001600160a01b0387168452909152902054611169908363ffffffff611fc216565b61143e33610ca5565b600061124a338484611fd7565b6000610fbe60098363ffffffff61223f16565b600d5490565b600b5490565b611a6f611620565b611a7857600080fd5b60008111611ad05760408051600160e51b62461bcd02815260206004820152601e60248201527f4d696e696d756d206d7573742062652067726561746572207468616e20300000604482015290519081900360640190fd5b600e55565b611add611620565b611ae657600080fd5b60008111611b3e5760408051600160e51b62461bcd02815260206004820152601e60248201527f4d696e696d756d206d7573742062652067726561746572207468616e20300000604482015290519081900360640190fd5b601155565b611b4c33611a48565b611b5557600080fd5b60008111611bad5760408051600160e51b62461bcd02815260206004820152601660248201527f4d75737420626520706f7369746976652076616c756500000000000000000000604482015290519081900360640190fd5b601555565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b611be5611620565b611bee57600080fd5b6001600160a01b038116611c4c5760408051600160e51b62461bcd02815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b60408051600160e01b6370a0823102815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b158015611c9957600080fd5b505afa158015611cad573d6000803e3d6000fd5b505050506040513d6020811015611cc357600080fd5b505190506001600160a01b03821663a9059cbb611cde611611565b60408051600160e01b6370a0823102815230600482015290516001600160a01b038716916370a08231916024808301926020929190829003018186803b158015611d2757600080fd5b505afa158015611d3b573d6000803e3d6000fd5b505050506040513d6020811015611d5157600080fd5b50516040805163ffffffff851660e01b81526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b158015611d9d57600080fd5b505af1158015611db1573d6000803e3d6000fd5b505050506040513d6020811015611dc757600080fd5b50506040805182815290516001600160a01b038416917f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e430919081900360200190a25050565b600e5481565b611e1a611620565b611e2357600080fd5b6127108110611e7c5760408051600160e51b62461bcd02815260206004820152601d60248201527f4d757374206265206c657373207468616e203130302070657263656e74000000604482015290519081900360640190fd5b601055565b60003411611ed95760408051600160e51b62461bcd02815260206004820152601660248201527f4d75737420626520706f7369746976652076616c756500000000000000000000604482015290519081900360640190fd5b6040805134815290517ff53d9d58a7ff16a2e1360446f1c4b5e81a427d3efd25615be081f4003662400a9181900360200190a1565b611f16611620565b611f1f57600080fd5b6127108110611f785760408051600160e51b62461bcd02815260206004820152601d60248201527f4d757374206265206c657373207468616e203130302070657263656e74000000604482015290519081900360640190fd5b600f55565b611f85611620565b611f8e57600080fd5b61110281612498565b600c6020526000908152604090205481565b600082820183811015611fbb57600080fd5b9392505050565b600082821115611fd157600080fd5b50900390565b6001600160a01b038216611fea57600080fd5b6001600160a01b038316600090815260036020526040902054612013908263ffffffff611fc216565b6001600160a01b038085166000908152600360205260408082209390935590841681522054612048908263ffffffff611fa916565b6001600160a01b0380841660008181526003602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6120b560098263ffffffff61250716565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b6001600160a01b0382166120ff57600080fd5b600554612112908263ffffffff611fa916565b6005556001600160a01b03821660009081526003602052604090205461213e908263ffffffff611fa916565b6001600160a01b03831660008181526003602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166121a957600080fd5b6005546121bc908263ffffffff611fc216565b6005556001600160a01b0382166000908152600360205260409020546121e8908263ffffffff611fc216565b6001600160a01b0383166000818152600360209081526040808320949094558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050565b60006001600160a01b03821661225457600080fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b61228560078263ffffffff61250716565b6040516001600160a01b038216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b6001600160a01b03821660009081526004602090815260408083203384529091529020546122f0908263ffffffff611fc216565b6001600160a01b038316600090815260046020908152604080832033845290915290205561231e8282612196565b6001600160a01b038216600081815260046020908152604080832033808552908352928190205481519081529051929392600080516020612999833981519152929181900390910190a35050565b61237d60078263ffffffff61254f16565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b600b546012546000916123c69161259b565b600b5490915060006123de828463ffffffff611fc216565b9050815b818111156123ff576123f6600182036125b1565b600019016123e2565b50505050565b600d546013546000916124179161259b565b600d54909150600061242f828463ffffffff611fc216565b9050815b818111156123ff576124476001820361272c565b60001901612433565b61246160098263ffffffff61254f16565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6001600160a01b0381166124ab57600080fd5b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811661251a57600080fd5b612524828261223f565b61252d57600080fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b6001600160a01b03811661256257600080fd5b61256c828261223f565b1561257657600080fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60008183106125aa5781611fbb565b5090919050565b6000600b82815481106125c057fe5b60009182526020808320909101546001600160a01b0316808352600a9091526040822054600f5491935091906127109061260190849063ffffffff61297116565b8161260857fe5b049050600061261d838363ffffffff611fc216565b60155460145491925060009161263a90849063ffffffff61297116565b8161264157fe5b6001600160a01b0387166000908152600a6020526040812055600b8054929091049250908061266c57fe5b600082815260209020810160001990810180546001600160a01b031916905501905582156126d65761269c611611565b6001600160a01b03166108fc849081150290604051600060405180830381858888f193505050501580156126d4573d6000803e3d6000fd5b505b6126e0858261121c565b50604080518281526020810184905281516001600160a01b038816927fc91a3666a5b4764b69624fd864f5f18d75169482bacba07da1dbf4be975f83e2928290030190a2505050505050565b6000600d828154811061273b57fe5b60009182526020808320909101546001600160a01b0316808352600c909152604082205460145460155492945090929161277c90849063ffffffff61297116565b8161278357fe5b6001600160a01b0385166000908152600c6020526040812055600d805492909104925090806127ae57fe5b600082815260209020810160001990810180546001600160a01b0319169055019055303181111561282b576127e3838361121c565b506040805183815290516001600160a01b038516917fa2269912b47133fae1d7f448c9284ea248951ac29b8c7c41d301f8721a38d10d919081900360200190a2505050611102565b60006127106128456010548461297190919063ffffffff16565b8161284c57fe5b0490506000612861838363ffffffff611fc216565b6040519091506001600160a01b0386169082156108fc029083906000818181858888f193505050501561291e5781156128d65761289c611611565b6001600160a01b03166108fc839081150290604051600060405180830381858888f193505050501580156128d4573d6000803e3d6000fd5b505b604080518581526020810183905281516001600160a01b038816927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a2612969565b612928858561121c565b506040805185815290516001600160a01b038716917f93c87512400559004ebab34a251ea23289f1d5e70979a237004610ab7cce9d22919081900360200190a25b505050505050565b60008261298057506000610fbe565b8282028284828161298d57fe5b0414611fbb57600080fdfe8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92543616e6e6f74207769746864726177206d6f7265207468616e2062616c616e63652068656c64a165627a7a723058206cb45074f43f64d08cd6e6024977292ddeff1872c2601ae12cf43a11a8468327002900000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000fdf9eb269b38e39e058f45d7d0ddb60f9
Deployed Bytecode
0x6080604052600436106103765760003560e01c806382dc1ec4116101d1578063a9059cbb11610102578063dd62ed3e116100a0578063e8078d941161006f578063e8078d9414610c0d578063eb770d0c14610c15578063f2fde38b14610c3f578063f3f4370314610c7257610376565b8063dd62ed3e14610b60578063df8de3e714610b9b578063e0e267e514610bce578063e5a583a914610be357610376565b8063cc9be27a116100dc578063cc9be27a14610acd578063cf0aed0e14610ae2578063cf60402f14610b0c578063dbb2455414610b3657610376565b8063a9059cbb14610a4c578063aa271e1a14610a85578063c239f6ff14610ab857610376565b8063983b2d561161016f5780639ee679e8116101495780639ee679e8146109b3578063a035b1fe146109dd578063a457c2d714610a0b578063a6f2ae3a14610a4457610376565b8063983b2d561461094157806398650275146109745780639c8f9f231461098957610376565b80638d6cc56d116101ab5780638d6cc56d146108d85780638da5cb5b146109025780638f32d59b1461091757806395d89b411461092c57610376565b806382dc1ec41461087b5780638456cb59146108ae57806384900b04146108c357610376565b806346fbf68e116102ab5780636284ae41116102495780636ef8d66d116102235780636ef8d66d146107e557806370a08231146107fa578063715018a61461082d57806379cc67901461084257610376565b80636284ae4114610773578063640c2544146107885780636b2c0f55146107b257610376565b80635c975abb116102855780635c975abb146106e65780635cc07076146106fb5780636036846d146107255780636130aabf1461073a57610376565b806346fbf68e1461065857806354ffbddb1461068b57806359a747d4146106d157610376565b8063313ce567116103185780633f4ba83a116102f25780633f4ba83a146105b657806340c10f19146105cb57806342966c6814610604578063454adff91461062e57610376565b8063313ce5671461051f57806331a4cbb61461054a578063395093511461057d57610376565b806318160ddd1161035457806318160ddd1461047f57806323b872dd1461049457806327e70606146104d75780633092afd5146104ec57610376565b806306fdde0314610381578063072ea61c1461040b578063095ea7b314610432575b61037f33610ca5565b005b34801561038d57600080fd5b50610396610ebd565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103d05781810151838201526020016103b8565b50505050905090810190601f1680156103fd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561041757600080fd5b50610420610f53565b60408051918252519081900360200190f35b34801561043e57600080fd5b5061046b6004803603604081101561045557600080fd5b506001600160a01b038135169060200135610f59565b604080519115158252519081900360200190f35b34801561048b57600080fd5b50610420610fc4565b3480156104a057600080fd5b5061046b600480360360608110156104b757600080fd5b506001600160a01b03813581169160208101359091169060400135610fca565b3480156104e357600080fd5b50610420611081565b3480156104f857600080fd5b5061037f6004803603602081101561050f57600080fd5b50356001600160a01b0316611087565b34801561052b57600080fd5b50610534611105565b6040805160ff9092168252519081900360200190f35b34801561055657600080fd5b506104206004803603602081101561056d57600080fd5b50356001600160a01b031661110e565b34801561058957600080fd5b5061046b600480360360408110156105a057600080fd5b506001600160a01b038135169060200135611120565b3480156105c257600080fd5b5061037f6111bc565b3480156105d757600080fd5b5061046b600480360360408110156105ee57600080fd5b506001600160a01b03813516906020013561121c565b34801561061057600080fd5b5061037f6004803603602081101561062757600080fd5b5035611253565b34801561063a57600080fd5b5061037f6004803603602081101561065157600080fd5b503561125d565b34801561066457600080fd5b5061046b6004803603602081101561067b57600080fd5b50356001600160a01b03166112cb565b34801561069757600080fd5b506106b5600480360360208110156106ae57600080fd5b50356112de565b604080516001600160a01b039092168252519081900360200190f35b3480156106dd57600080fd5b50610420611305565b3480156106f257600080fd5b5061046b61130b565b34801561070757600080fd5b506106b56004803603602081101561071e57600080fd5b5035611314565b34801561073157600080fd5b50610420611321565b34801561074657600080fd5b5061037f6004803603604081101561075d57600080fd5b506001600160a01b038135169060200135611327565b34801561077f57600080fd5b50610420611346565b34801561079457600080fd5b5061037f600480360360208110156107ab57600080fd5b503561134c565b3480156107be57600080fd5b5061037f600480360360208110156107d557600080fd5b50356001600160a01b03166113ba565b3480156107f157600080fd5b5061037f611435565b34801561080657600080fd5b506104206004803603602081101561081d57600080fd5b50356001600160a01b0316611440565b34801561083957600080fd5b5061037f61145b565b34801561084e57600080fd5b5061037f6004803603604081101561086557600080fd5b506001600160a01b0381351690602001356114b6565b34801561088757600080fd5b5061037f6004803603602081101561089e57600080fd5b50356001600160a01b03166114c0565b3480156108ba57600080fd5b5061037f6114db565b3480156108cf57600080fd5b506106b561153f565b3480156108e457600080fd5b5061037f600480360360208110156108fb57600080fd5b503561154e565b34801561090e57600080fd5b506106b5611611565b34801561092357600080fd5b5061046b611620565b34801561093857600080fd5b50610396611631565b34801561094d57600080fd5b5061037f6004803603602081101561096457600080fd5b50356001600160a01b0316611691565b34801561098057600080fd5b5061037f6116ac565b34801561099557600080fd5b5061037f600480360360208110156109ac57600080fd5b50356116b5565b3480156109bf57600080fd5b5061037f600480360360208110156109d657600080fd5b5035611783565b3480156109e957600080fd5b506109f26119e0565b6040805192835260208301919091528051918290030190f35b348015610a1757600080fd5b5061046b60048036036040811015610a2e57600080fd5b506001600160a01b0381351690602001356119e9565b61037f611a32565b348015610a5857600080fd5b5061046b60048036036040811015610a6f57600080fd5b506001600160a01b038135169060200135611a3b565b348015610a9157600080fd5b5061046b60048036036020811015610aa857600080fd5b50356001600160a01b0316611a48565b348015610ac457600080fd5b50610420611a5b565b348015610ad957600080fd5b50610420611a61565b348015610aee57600080fd5b5061037f60048036036020811015610b0557600080fd5b5035611a67565b348015610b1857600080fd5b5061037f60048036036020811015610b2f57600080fd5b5035611ad5565b348015610b4257600080fd5b5061037f60048036036020811015610b5957600080fd5b5035611b43565b348015610b6c57600080fd5b5061042060048036036040811015610b8357600080fd5b506001600160a01b0381358116916020013516611bb2565b348015610ba757600080fd5b5061037f60048036036020811015610bbe57600080fd5b50356001600160a01b0316611bdd565b348015610bda57600080fd5b50610420611e0c565b348015610bef57600080fd5b5061037f60048036036020811015610c0657600080fd5b5035611e12565b61037f611e81565b348015610c2157600080fd5b5061037f60048036036020811015610c3857600080fd5b5035611f0e565b348015610c4b57600080fd5b5061037f60048036036020811015610c6257600080fd5b50356001600160a01b0316611f7d565b348015610c7e57600080fd5b5061042060048036036020811015610c9557600080fd5b50356001600160a01b0316611f97565b60085460ff1615610cb557600080fd5b60165460408051600160e01b633af32abf02815233600482015290516001600160a01b0390921691633af32abf91602480820192602092909190829003018186803b158015610d0357600080fd5b505afa158015610d17573d6000803e3d6000fd5b505050506040513d6020811015610d2d57600080fd5b5051610d835760408051600160e51b62461bcd02815260206004820152601360248201527f4d7573742062652077686974656c697374656400000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116610d9357fe5b600e54341015610ded5760408051600160e51b62461bcd02815260206004820152601360248201527f4d696e696d756d20776569206e6f74206d657400000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0381166000908152600a602052604090205480610e5757600b80546001810182556000919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b0319166001600160a01b0384161790555b610e67813463ffffffff611fa916565b6001600160a01b0383166000818152600a6020908152604091829020939093558051348152905191927f9936746a4565f9766fa768f88f56a7487c78780ac179562773d1c75c5269537e92918290030190a25050565b60008054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f495780601f10610f1e57610100808354040283529160200191610f49565b820191906000526020600020905b815481529060010190602001808311610f2c57829003601f168201915b5050505050905090565b600f5481565b60006001600160a01b038316610f6e57600080fd5b3360008181526004602090815260408083206001600160a01b0388168085529083529281902086905580518681529051929392600080516020612999833981519152929181900390910190a35060015b92915050565b60055490565b6001600160a01b0383166000908152600460209081526040808320338452909152812054610ffe908363ffffffff611fc216565b6001600160a01b038516600090815260046020908152604080832033845290915290205561102d848484611fd7565b6001600160a01b038416600081815260046020908152604080832033808552908352928190205481519081529051929392600080516020612999833981519152929181900390910190a35060019392505050565b60125481565b61108f611620565b61109857600080fd5b6001600160a01b0381163314156110f95760408051600160e51b62461bcd02815260206004820152601260248201527f5573652072656e6f756e63654d696e7465720000000000000000000000000000604482015290519081900360640190fd5b611102816120a4565b50565b60025460ff1690565b600a6020526000908152604090205481565b60006001600160a01b03831661113557600080fd5b3360009081526004602090815260408083206001600160a01b0387168452909152902054611169908363ffffffff611fa916565b3360008181526004602090815260408083206001600160a01b038916808552908352928190208590558051948552519193600080516020612999833981519152929081900390910190a350600192915050565b6111c5336112cb565b6111ce57600080fd5b60085460ff166111dd57600080fd5b6008805460ff191690556040805133815290517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9181900360200190a1565b600061122733611a48565b61123057600080fd5b60085460ff161561124057600080fd5b61124a83836120ec565b50600192915050565b6111023382612196565b611265611620565b61126e57600080fd5b600081116112c65760408051600160e51b62461bcd02815260206004820152601660248201527f4d7573742062652067726561746572207468616e203000000000000000000000604482015290519081900360640190fd5b601355565b6000610fbe60078363ffffffff61223f16565b600b81815481106112eb57fe5b6000918252602090912001546001600160a01b0316905081565b60115481565b60085460ff1690565b600d81815481106112eb57fe5b60135481565b61132f611620565b61133857600080fd5b6113428282612196565b5050565b60105481565b611354611620565b61135d57600080fd5b600081116113b55760408051600160e51b62461bcd02815260206004820152601660248201527f4d7573742062652067726561746572207468616e203000000000000000000000604482015290519081900360640190fd5b601255565b6113c2611620565b6113cb57600080fd5b6001600160a01b03811633141561142c5760408051600160e51b62461bcd02815260206004820152601260248201527f5573652072656e6f756e63655061757365720000000000000000000000000000604482015290519081900360640190fd5b61110281612274565b61143e33612274565b565b6001600160a01b031660009081526003602052604090205490565b611463611620565b61146c57600080fd5b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b61134282826122bc565b6114c9336112cb565b6114d257600080fd5b6111028161236c565b6114e4336112cb565b6114ed57600080fd5b60085460ff16156114fd57600080fd5b6008805460ff191660011790556040805133815290517f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2589181900360200190a1565b6016546001600160a01b031681565b61155733611a48565b61156057600080fd5b600081116115b85760408051600160e51b62461bcd02815260206004820152601660248201527f4d75737420626520706f7369746976652076616c756500000000000000000000604482015290519081900360640190fd5b60148190556115c56123b4565b6115cd612405565b60145460155460408051928352602083019190915280517f92664190cca12aca9cd5309d87194bdda75bb51362d71c06e1a6f75c7c7657119281900390910190a150565b6006546001600160a01b031690565b6006546001600160a01b0316331490565b60018054604080516020601f60026000196101008789161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f495780601f10610f1e57610100808354040283529160200191610f49565b61169a33611a48565b6116a357600080fd5b61110281612450565b61143e336120a4565b6116bd611620565b6116c657600080fd5b303181111561171f5760408051600160e51b62461bcd02815260206004820152601460248201527f496e73756666696369656e742062616c616e6365000000000000000000000000604482015290519081900360640190fd5b604051339082156108fc029083906000818181858888f1935050505015801561174c573d6000803e3d6000fd5b506040805182815290517f9a5a8a32afd899e7f95003c6e21c9fab2d50e11992439d14472229180c60c7aa9181900360200190a150565b60085460ff161561179357600080fd5b60165460408051600160e01b633af32abf02815233600482015290516001600160a01b0390921691633af32abf91602480820192602092909190829003018186803b1580156117e157600080fd5b505afa1580156117f5573d6000803e3d6000fd5b505050506040513d602081101561180b57600080fd5b50516118615760408051600160e51b62461bcd02815260206004820152601360248201527f4d7573742062652077686974656c697374656400000000000000000000000000604482015290519081900360640190fd5b338161186c82611440565b10156118ac57604051600160e51b62461bcd0281526004018080602001828103825260268152602001806129b96026913960400191505060405180910390fd5b6011548210156119065760408051600160e51b62461bcd02815260206004820152600e60248201527f546f6f2066657720746f6b656e73000000000000000000000000000000000000604482015290519081900360640190fd5b61190f82611253565b6001600160a01b0381166000908152600c60205260409020548061197957600d80546001810182556000919091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384161790555b611989818463ffffffff611fa916565b6001600160a01b0383166000818152600c6020908152604091829020939093558051868152905191927f17040713250ec5f668a1c39e7939900e78558350dbaff0ebef34268dfa8ea4ac92918290030190a2505050565b60145460155482565b60006001600160a01b0383166119fe57600080fd5b3360009081526004602090815260408083206001600160a01b0387168452909152902054611169908363ffffffff611fc216565b61143e33610ca5565b600061124a338484611fd7565b6000610fbe60098363ffffffff61223f16565b600d5490565b600b5490565b611a6f611620565b611a7857600080fd5b60008111611ad05760408051600160e51b62461bcd02815260206004820152601e60248201527f4d696e696d756d206d7573742062652067726561746572207468616e20300000604482015290519081900360640190fd5b600e55565b611add611620565b611ae657600080fd5b60008111611b3e5760408051600160e51b62461bcd02815260206004820152601e60248201527f4d696e696d756d206d7573742062652067726561746572207468616e20300000604482015290519081900360640190fd5b601155565b611b4c33611a48565b611b5557600080fd5b60008111611bad5760408051600160e51b62461bcd02815260206004820152601660248201527f4d75737420626520706f7369746976652076616c756500000000000000000000604482015290519081900360640190fd5b601555565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b611be5611620565b611bee57600080fd5b6001600160a01b038116611c4c5760408051600160e51b62461bcd02815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b60408051600160e01b6370a0823102815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b158015611c9957600080fd5b505afa158015611cad573d6000803e3d6000fd5b505050506040513d6020811015611cc357600080fd5b505190506001600160a01b03821663a9059cbb611cde611611565b60408051600160e01b6370a0823102815230600482015290516001600160a01b038716916370a08231916024808301926020929190829003018186803b158015611d2757600080fd5b505afa158015611d3b573d6000803e3d6000fd5b505050506040513d6020811015611d5157600080fd5b50516040805163ffffffff851660e01b81526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b158015611d9d57600080fd5b505af1158015611db1573d6000803e3d6000fd5b505050506040513d6020811015611dc757600080fd5b50506040805182815290516001600160a01b038416917f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e430919081900360200190a25050565b600e5481565b611e1a611620565b611e2357600080fd5b6127108110611e7c5760408051600160e51b62461bcd02815260206004820152601d60248201527f4d757374206265206c657373207468616e203130302070657263656e74000000604482015290519081900360640190fd5b601055565b60003411611ed95760408051600160e51b62461bcd02815260206004820152601660248201527f4d75737420626520706f7369746976652076616c756500000000000000000000604482015290519081900360640190fd5b6040805134815290517ff53d9d58a7ff16a2e1360446f1c4b5e81a427d3efd25615be081f4003662400a9181900360200190a1565b611f16611620565b611f1f57600080fd5b6127108110611f785760408051600160e51b62461bcd02815260206004820152601d60248201527f4d757374206265206c657373207468616e203130302070657263656e74000000604482015290519081900360640190fd5b600f55565b611f85611620565b611f8e57600080fd5b61110281612498565b600c6020526000908152604090205481565b600082820183811015611fbb57600080fd5b9392505050565b600082821115611fd157600080fd5b50900390565b6001600160a01b038216611fea57600080fd5b6001600160a01b038316600090815260036020526040902054612013908263ffffffff611fc216565b6001600160a01b038085166000908152600360205260408082209390935590841681522054612048908263ffffffff611fa916565b6001600160a01b0380841660008181526003602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6120b560098263ffffffff61250716565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b6001600160a01b0382166120ff57600080fd5b600554612112908263ffffffff611fa916565b6005556001600160a01b03821660009081526003602052604090205461213e908263ffffffff611fa916565b6001600160a01b03831660008181526003602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166121a957600080fd5b6005546121bc908263ffffffff611fc216565b6005556001600160a01b0382166000908152600360205260409020546121e8908263ffffffff611fc216565b6001600160a01b0383166000818152600360209081526040808320949094558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050565b60006001600160a01b03821661225457600080fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b61228560078263ffffffff61250716565b6040516001600160a01b038216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b6001600160a01b03821660009081526004602090815260408083203384529091529020546122f0908263ffffffff611fc216565b6001600160a01b038316600090815260046020908152604080832033845290915290205561231e8282612196565b6001600160a01b038216600081815260046020908152604080832033808552908352928190205481519081529051929392600080516020612999833981519152929181900390910190a35050565b61237d60078263ffffffff61254f16565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b600b546012546000916123c69161259b565b600b5490915060006123de828463ffffffff611fc216565b9050815b818111156123ff576123f6600182036125b1565b600019016123e2565b50505050565b600d546013546000916124179161259b565b600d54909150600061242f828463ffffffff611fc216565b9050815b818111156123ff576124476001820361272c565b60001901612433565b61246160098263ffffffff61254f16565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6001600160a01b0381166124ab57600080fd5b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811661251a57600080fd5b612524828261223f565b61252d57600080fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b6001600160a01b03811661256257600080fd5b61256c828261223f565b1561257657600080fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60008183106125aa5781611fbb565b5090919050565b6000600b82815481106125c057fe5b60009182526020808320909101546001600160a01b0316808352600a9091526040822054600f5491935091906127109061260190849063ffffffff61297116565b8161260857fe5b049050600061261d838363ffffffff611fc216565b60155460145491925060009161263a90849063ffffffff61297116565b8161264157fe5b6001600160a01b0387166000908152600a6020526040812055600b8054929091049250908061266c57fe5b600082815260209020810160001990810180546001600160a01b031916905501905582156126d65761269c611611565b6001600160a01b03166108fc849081150290604051600060405180830381858888f193505050501580156126d4573d6000803e3d6000fd5b505b6126e0858261121c565b50604080518281526020810184905281516001600160a01b038816927fc91a3666a5b4764b69624fd864f5f18d75169482bacba07da1dbf4be975f83e2928290030190a2505050505050565b6000600d828154811061273b57fe5b60009182526020808320909101546001600160a01b0316808352600c909152604082205460145460155492945090929161277c90849063ffffffff61297116565b8161278357fe5b6001600160a01b0385166000908152600c6020526040812055600d805492909104925090806127ae57fe5b600082815260209020810160001990810180546001600160a01b0319169055019055303181111561282b576127e3838361121c565b506040805183815290516001600160a01b038516917fa2269912b47133fae1d7f448c9284ea248951ac29b8c7c41d301f8721a38d10d919081900360200190a2505050611102565b60006127106128456010548461297190919063ffffffff16565b8161284c57fe5b0490506000612861838363ffffffff611fc216565b6040519091506001600160a01b0386169082156108fc029083906000818181858888f193505050501561291e5781156128d65761289c611611565b6001600160a01b03166108fc839081150290604051600060405180830381858888f193505050501580156128d4573d6000803e3d6000fd5b505b604080518581526020810183905281516001600160a01b038816927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a2612969565b612928858561121c565b506040805185815290516001600160a01b038716917f93c87512400559004ebab34a251ea23289f1d5e70979a237004610ab7cce9d22919081900360200190a25b505050505050565b60008261298057506000610fbe565b8282028284828161298d57fe5b0414611fbb57600080fdfe8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92543616e6e6f74207769746864726177206d6f7265207468616e2062616c616e63652068656c64a165627a7a723058206cb45074f43f64d08cd6e6024977292ddeff1872c2601ae12cf43a11a84683270029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000fdf9eb269b38e39e058f45d7d0ddb60f9
-----Decoded View---------------
Arg [0] : priceNumeratorInput (uint256): 1000
Arg [1] : whitelistContractInput (address): 0x0000000FdF9eb269B38e39E058f45d7d0dDb60f9
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [1] : 0000000000000000000000000000000fdf9eb269b38e39e058f45d7d0ddb60f9
Swarm Source
bzzr://6cb45074f43f64d08cd6e6024977292ddeff1872c2601ae12cf43a11a8468327
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.