ERC-20
Overview
Max Total Supply
1,007,706,870.57667442544105 VIVA
Holders
312
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 Source Code Verified (Exact Match)
Contract Name:
VIVAToken
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-09-24 */ pragma solidity ^0.4.18; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } /** * @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 public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(msg.sender == owner); _; } /** * @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 { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; } } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } /** * @dev Adds two numbers, throws on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20 is ERC20Basic { function allowance(address owner, address spender) public view returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { function safeTransfer(ERC20Basic token, address to, uint256 value) internal { assert(token.transfer(to, value)); } function safeTransferFrom(ERC20 token, address from, address to, uint256 value) internal { assert(token.transferFrom(from, to, value)); } function safeApprove(ERC20 token, address spender, uint256 value) internal { assert(token.approve(spender, value)); } } contract Administrated is Ownable { mapping(address => bool) internal admins; function Administrated() public { } modifier onlyAdmin() { require(isAdmin(msg.sender)); _; } function setAdmin(address _admin, bool _isAdmin) public { require(_admin != address(0)); require(msg.sender == owner || admins[msg.sender] == true); admins[_admin] = _isAdmin; } function isAdmin(address _address) public view returns (bool) { return admins[_address]; } } /** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */ contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @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) { require(_to != address(0)); require(_value <= balances[msg.sender]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; } /** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */ function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } } /** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */ contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @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) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); Transfer(_from, _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) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } /** * @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 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 * @param _spender The address which will spend the funds. * @param _addedValue The amount of tokens to increase the allowance by. */ function increaseApproval(address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); 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 * @param _spender The address which will spend the funds. * @param _subtractedValue The amount of tokens to decrease the allowance by. */ function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); } Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } } /** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */ contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint256 amount); event MintFinished(); bool public mintingFinished = false; modifier canMint() { require(!mintingFinished); _; } /** * @dev Function to mint tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */ function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) { totalSupply_ = totalSupply_.add(_amount); balances[_to] = balances[_to].add(_amount); Mint(_to, _amount); Transfer(address(0), _to, _amount); return true; } /** * @dev Function to stop minting new tokens. * @return True if the operation was successful. */ function finishMinting() onlyOwner canMint public returns (bool) { mintingFinished = true; MintFinished(); return true; } } /** * @title Capped token * @dev Mintable token with a token cap. */ contract CappedToken is MintableToken { uint256 public cap; function CappedToken(uint256 _cap) public { require(_cap > 0); cap = _cap; } /** * @dev Function to mint tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */ function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) { require(totalSupply_.add(_amount) <= cap); return super.mint(_to, _amount); } } /** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */ contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!paused); _; } /** * @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() onlyOwner whenNotPaused public { paused = true; Pause(); } /** * @dev called by the owner to unpause, returns to normal state */ function unpause() onlyOwner whenPaused public { paused = false; Unpause(); } } /** * @title Pausable token * @dev StandardToken modified with pausable transfers. **/ contract PausableToken is StandardToken, Pausable { function transfer(address _to, uint256 _value) public whenNotPaused returns (bool) { return super.transfer(_to, _value); } function transferFrom(address _from, address _to, uint256 _value) public whenNotPaused returns (bool) { return super.transferFrom(_from, _to, _value); } function approve(address _spender, uint256 _value) public whenNotPaused returns (bool) { return super.approve(_spender, _value); } function increaseApproval(address _spender, uint _addedValue) public whenNotPaused returns (bool success) { return super.increaseApproval(_spender, _addedValue); } function decreaseApproval(address _spender, uint _subtractedValue) public whenNotPaused returns (bool success) { return super.decreaseApproval(_spender, _subtractedValue); } } contract VIVAToken is CappedToken, PausableToken { using SafeERC20 for ERC20; string public name = "VIVA Token"; string public symbol = "VIVA"; uint8 public decimals = 18; function VIVAToken(uint256 _cap) public CappedToken(_cap * 10**18) PausableToken() { } } library CrowdsaleTokenUtils { // Events event MintTokens(address beneficiary, uint256 tokens); using SafeMath for uint256; function mintTokens(VIVAToken token, address beneficiary, uint256 tokens) public returns (bool) { require(beneficiary != address(0)); require(tokens > 0); MintTokens(beneficiary, tokens); return token.mint(beneficiary, tokens); } } contract Testable is Ownable { bool internal testing; uint256 public _now; function Testable(bool _testing) public { testing = _testing; _now = now; } modifier whenTesting() { require(testing); _; } function getNow() public view returns (uint256) { if(testing) { return _now; } else { return now; } } function setNow(uint256 __now) public onlyOwner whenTesting { _now = __now; } } // Not a generalized vesting contract - just our compensation protocol contract VIVAVestingVault is Administrated, Testable { using SafeMath for uint256; event Released(address beneficiary, uint256 amount); VIVAToken public token; uint256 public d1; uint256 public d2; mapping(address => uint256) internal totalDue; mapping(address => uint256) internal released; function VIVAVestingVault( VIVAToken _token, uint256 _d1, uint256 _d2, bool _testing ) public Testable(_testing) { token = _token; d1 = _d1; d2 = _d2; } function register(address beneficiary, uint256 due) public onlyAdmin { require(beneficiary != address(0)); require(due >= released[beneficiary]); totalDue[beneficiary] = due; } function release(address beneficiary, uint256 tokens) public { require(beneficiary != address(0)); require(tokens > 0); uint256 releasable = releasableAmount(beneficiary); require(releasable > 0); uint256 toRelease = releasable; require(releasable >= tokens); if(tokens < releasable) { toRelease = tokens; } require(token.balanceOf(this) >= toRelease); assert(released[beneficiary].add(toRelease) <= totalDue[beneficiary]); released[beneficiary] = released[beneficiary].add(toRelease); assert(token.transfer(beneficiary, toRelease)); Released(beneficiary, toRelease); } function releasableAmount(address beneficiary) public view returns (uint256) { uint256 vestedAmount; if (getNow() < d1) { vestedAmount = 0; } else if (getNow() < d2) { vestedAmount = totalDue[beneficiary].div(2); } else { if(isAdmin(msg.sender)) { vestedAmount = totalDue[beneficiary]; } else { vestedAmount = totalDue[beneficiary].div(2); } } return vestedAmount.sub(released[beneficiary]); } function setSchedule(uint256 _d1, uint256 _d2) public onlyAdmin { require(_d1 <= _d2); d1 = _d1; d2 = _d2; } } contract VIVACrowdsaleRound is Ownable, Testable { using SafeMath for uint256; struct Bonus { uint256 tier; uint256 rate; } bool public refundable; uint256 public capAtWei; uint256 public capAtDuration; Bonus[] bonuses; function VIVACrowdsaleRound( bool _refundable, uint256 _capAtWei, uint256 _capAtDuration, bool _testing ) Testable(_testing) public { refundable = _refundable; capAtWei = _capAtWei; capAtDuration = _capAtDuration; } function addBonus(uint256 tier, uint256 rate) public onlyOwner { Bonus memory bonus; bonus.tier = tier; bonus.rate = rate; bonuses.push(bonus); } function setCapAtDuration(uint256 _capAtDuration) onlyOwner public returns (uint256) { capAtDuration = _capAtDuration; } function setCapAtWei(uint256 _capAtWei) onlyOwner whenTesting public { capAtWei = _capAtWei; } function getBonusRate(uint256 baseRate, uint256 weiAmount) public view returns (uint256) { uint256 r = baseRate; for(uint i = 0; i < bonuses.length; i++) { if(weiAmount >= bonuses[i].tier) { r = bonuses[i].rate; } else { break; } } return r; } } /** * @title RefundVault * @dev This contract is used for storing funds while a crowdsale * is in progress. Supports refunding the money if crowdsale fails, * and forwarding it if crowdsale is successful. */ contract RefundVault is Ownable { using SafeMath for uint256; enum State { Active, Refunding, Closed } mapping (address => uint256) public deposited; address public wallet; State public state; event Closed(); event RefundsEnabled(); event Refunded(address indexed beneficiary, uint256 weiAmount); function RefundVault(address _wallet) public { require(_wallet != address(0)); wallet = _wallet; state = State.Active; } function deposit(address investor) onlyOwner public payable { require(state == State.Active); deposited[investor] = deposited[investor].add(msg.value); } function close() onlyOwner public { require(state == State.Active); state = State.Closed; Closed(); wallet.transfer(this.balance); } function enableRefunds() onlyOwner public { require(state == State.Active); state = State.Refunding; RefundsEnabled(); } function refund(address investor) public { require(state == State.Refunding); uint256 depositedValue = deposited[investor]; deposited[investor] = 0; investor.transfer(depositedValue); Refunded(investor, depositedValue); } } contract VIVARefundVault is RefundVault { function VIVARefundVault( address _wallet ) RefundVault(_wallet) public { } function setWallet(address _wallet) onlyOwner public { require(state == State.Active); require(_wallet != address(0)); wallet = _wallet; } function getWallet() public view returns (address) { return wallet; } } contract VIVACrowdsaleData is Administrated { using SafeMath for uint256; // Events event MintTokens(address beneficiary, uint256 tokens); event CloseRefundVault(bool refund); event Finalize(address tokenOwner, bool refundable); event RegisterPrivateContribution(address beneficiary, uint256 tokens); event RegisterPurchase(VIVACrowdsaleRound round, address beneficiary, uint256 tokens, uint256 weiAmount); event UnregisterPurchase(address beneficiary, uint256 tokens, uint256 weiAmount); VIVAToken public token; uint256 public startTime; bool public isFinalized = false; VIVACrowdsaleRound[] public rounds; // Main fund collection (refundable) address public wallet; VIVARefundVault public refundVault; bool public refundVaultClosed = false; // Distribution vaults address public bountyVault; address public reserveVault; address public teamVault; address public advisorVault; // Track general sale progress uint256 public privateContributionTokens; mapping(address => uint256) internal weiContributed; uint256 public mintedForSaleTokens; // Total general sale tokens minted uint256 public weiRaisedForSale; // Verified investors only for > 7ETH (must be pre-approved) uint256 public largeInvestorWei = 7000000000000000000; // 7 ETH mapping(address => uint256) internal approvedLargeInvestors; // And their authorized limits function VIVACrowdsaleData( VIVAToken _token, address _wallet, uint256 _startTime ) public { require(_token != address(0)); require(_wallet != address(0)); token = _token; wallet = _wallet; startTime = _startTime; refundVault = new VIVARefundVault(_wallet); } function getNumRounds() public view returns (uint256) { return rounds.length; } function addRound(VIVACrowdsaleRound round) public onlyAdmin { require(address(round) != address(0)); rounds.push(round); } function removeRound(uint256 i) public onlyAdmin { while (i < rounds.length - 1) { rounds[i] = rounds[i+1]; i++; } rounds.length--; } function setStartTime(uint256 _startTime) public onlyAdmin { startTime = _startTime; } function mintTokens(address beneficiary, uint256 tokens) public onlyAdmin returns (bool) { return CrowdsaleTokenUtils.mintTokens(token, beneficiary, tokens); } function registerPrivateContribution(address beneficiary, uint256 tokens) public onlyAdmin returns (bool) { require(beneficiary != address(0)); privateContributionTokens = privateContributionTokens.add(tokens); RegisterPrivateContribution(beneficiary, tokens); return true; } function registerPurchase(VIVACrowdsaleRound round, address beneficiary, uint256 tokens) public payable onlyAdmin returns (bool) { require(address(round) != address(0)); require(beneficiary != address(0)); if(round.refundable()) { refundVault.deposit.value(msg.value)(beneficiary); } else { wallet.transfer(msg.value); } weiContributed[beneficiary] = msg.value.add(weiContributed[beneficiary]); weiRaisedForSale = weiRaisedForSale.add(msg.value); mintedForSaleTokens = mintedForSaleTokens.add(tokens); RegisterPurchase(round, beneficiary, tokens, msg.value); return true; } function getWeiContributed(address from) public view returns (uint256) { return weiContributed[from]; } function closeRefundVault(bool refund) public onlyAdmin { require(!refundVaultClosed); refundVaultClosed = true; if(refund) { refundVault.enableRefunds(); } else { refundVault.close(); } CloseRefundVault(refund); } function finalize(address tokenOwner, bool refundable) public onlyAdmin { require(tokenOwner != address(0)); require(!isFinalized); isFinalized = true; if(!refundVaultClosed) { closeRefundVault(refundable); } token.finishMinting(); token.transferOwnership(tokenOwner); Finalize(tokenOwner, refundable); } function setWallet(address _wallet) public onlyAdmin { require(_wallet != address(0)); wallet = _wallet; refundVault.setWallet(_wallet); } function setLargeInvestorWei(uint256 _largeInvestorWei) public onlyAdmin { require(_largeInvestorWei >= 0); largeInvestorWei = _largeInvestorWei; } function getLargeInvestorApproval(address beneficiary) public view returns (uint256) { require(beneficiary != address(0)); return approvedLargeInvestors[beneficiary]; } function setLargeInvestorApproval(address beneficiary, uint256 weiLimit) public onlyAdmin { require(beneficiary != address(0)); require(weiLimit >= largeInvestorWei); approvedLargeInvestors[beneficiary] = weiLimit; } function setBountyVault(address vault) public onlyAdmin { bountyVault = vault; } function setReserveVault(address vault) public onlyAdmin { reserveVault = vault; } function setTeamVault(address vault) public onlyAdmin { teamVault = vault; } function setAdvisorVault(address vault) public onlyAdmin { advisorVault = vault; } } contract VIVAVault is Administrated { using SafeMath for uint256; event Released(address beneficiary, uint256 amount); VIVAToken public token; function VIVAVault( VIVAToken _token ) public { token = _token; } function release(address beneficiary, uint256 amount) public onlyAdmin { require(beneficiary != address(0)); require(amount > 0); uint256 releasable = releasableAmount(beneficiary); require(releasable > 0); require(token.balanceOf(this) >= releasable); require(amount <= releasable); assert(token.transfer(beneficiary, amount)); Released(beneficiary, amount); } function releasableAmount(address beneficiary) public view returns (uint256) { require(beneficiary != address(0)); // Any other restrictions we want return token.balanceOf(this); } } library VaultUtils { using SafeMath for uint256; function createVestingVault(VIVACrowdsaleData data, address admin, uint256 tokens, uint256 d1, uint256 d2, bool testing) public returns (VIVAVestingVault) { require(admin != address(0)); VIVAVestingVault vault = new VIVAVestingVault(data.token(), d1, d2, testing); vault.setAdmin(admin, true); assert(data.mintTokens(address(vault), tokens)); return vault; } function createVault(VIVACrowdsaleData data, address admin, uint256 tokens) public returns (VIVAVault) { require(admin != address(0)); VIVAVault vault = new VIVAVault(data.token()); vault.setAdmin(admin, true); assert(data.mintTokens(address(vault), tokens)); return vault; } } library CrowdsaleUtils { using SafeMath for uint256; function getCurrentRound(VIVACrowdsaleData data, uint256 valuationDate, uint256 weiRaisedForSale) public view returns (VIVACrowdsaleRound) { uint256 time = data.startTime(); bool hadTimeRange = false; for(uint i = 0; i < data.getNumRounds(); i++) { bool inTimeRange = valuationDate >= time && valuationDate < time.add(data.rounds(i).capAtDuration()); bool inCapRange = weiRaisedForSale < data.rounds(i).capAtWei(); if(inTimeRange) { if(inCapRange) { return data.rounds(i); } hadTimeRange = true; } else { if(hadTimeRange) { if(inCapRange) { return data.rounds(i); } } } time = time.add(data.rounds(i).capAtDuration()); } } function validPurchase(VIVACrowdsaleData data, VIVACrowdsaleRound round, address beneficiary, uint256 weiAmount, uint256 tokens, uint256 minContributionWeiAmount, uint256 tokensForSale) public view returns (bool) { // Crowdsale must be active if(address(round) == address(0)) { return false; } if(data.isFinalized()) { return false; } // Ensure exceeds min contribution size if(weiAmount < minContributionWeiAmount) { return false; } if(tokens <= 0) { return false; } // Ensure we have enough tokens left for sale if(tokens.add(data.mintedForSaleTokens()) > tokensForSale) { return false; } // Ensure cap not exceeded if(weiAmount.add(data.weiRaisedForSale()) > round.capAtWei()) { return false; } uint256 contributed = weiAmount.add(data.getWeiContributed(beneficiary)); // Ensure large investors are approved if(contributed > data.largeInvestorWei()) { if(data.getLargeInvestorApproval(beneficiary) < contributed) { return false; } } // It's valid! return true; } } contract VIVACrowdsale is Administrated, Testable { using SafeMath for uint256; // Events (more bubble up from VIVACrowdsaleData) event Cancelled(); event Debug(uint256 value); // ms time constants uint256 public constant SECOND = 1000; uint256 public constant MINUTE = SECOND * 60; uint256 public constant HOUR = MINUTE * 60; uint256 public constant DAY = HOUR * 24; uint256 public constant WEEK = DAY * 7; // Crowdsale data store separated from logic VIVACrowdsaleData public data; // ===== Main TGE Parameters (Constant) ================================================= uint256 public constant baseRate = 35714; uint256 public constant minContributionWeiAmount = 1000000000000000; uint256 public constant tokensPrivateInvesting = 50000000 * 10**18; uint256 public constant tokensMarketing = 500000000 * 10**18; uint256 public constant tokensTeam = 300000000 * 10**18; uint256 public constant tokensAdvisor = 150000000 * 10**18; uint256 public constant tokensBounty = 50000000 * 10**18; uint256 public constant tokensReserved = 400000000 * 10**18; uint256 public constant tokensForSale = 3000000000 * 10**18; // ====================================================================================== function VIVACrowdsale( VIVACrowdsaleData _data, bool _testing ) Testable(_testing) public { require(_data != address(0)); data = _data; } function privateContribution(address beneficiary, uint256 tokens) public onlyAdmin { require(beneficiary != address(0)); require(tokens > 0); require(!data.isFinalized()); require(tokens.add(data.privateContributionTokens()) <= tokensPrivateInvesting.add(tokensMarketing)); assert(data.registerPrivateContribution(beneficiary, tokens)); assert(data.mintTokens(beneficiary, tokens)); } function getTokenAmount(VIVACrowdsaleRound round, uint256 weiAmount) public view returns(uint256) { require(address(round) != address(0)); if(weiAmount == 0) return 0; return weiAmount.mul(round.getBonusRate(baseRate, weiAmount)); } function () external payable { buyTokens(); } function buyTokens() public payable { require(!data.isFinalized()); VIVACrowdsaleRound round = getCurrentRound(getNow(), data.weiRaisedForSale()); require(address(round) != address(0)); uint256 tokens = getTokenAmount(round, msg.value); require(CrowdsaleUtils.validPurchase(data, round, msg.sender, msg.value, tokens, minContributionWeiAmount, tokensForSale)); assert(data.registerPurchase.value(msg.value)(round, msg.sender, tokens)); assert(data.mintTokens(msg.sender, tokens)); } function getCurrentRound(uint256 valuationDate, uint256 weiRaisedForSale) public view returns (VIVACrowdsaleRound) { return CrowdsaleUtils.getCurrentRound(data, valuationDate, weiRaisedForSale); } function cancel() onlyAdmin public { require(!data.isFinalized()); data.finalize(msg.sender, true); Cancelled(); } function finalize() onlyAdmin public { require(!data.isFinalized()); data.setBountyVault(VaultUtils.createVault(data, msg.sender, tokensBounty)); data.setReserveVault(VaultUtils.createVault(data, msg.sender, tokensReserved)); data.setTeamVault(VaultUtils.createVestingVault(data, msg.sender, tokensTeam, getNow() + (365 * DAY), getNow() + (365 * DAY), testing)); data.setAdvisorVault(VaultUtils.createVestingVault(data, msg.sender, tokensAdvisor, getNow() + (30 * DAY), getNow() + (90 * DAY), testing)); data.finalize(msg.sender, false); // Unsold tokens are burnt (i.e. never minted) } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[],"name":"mintingFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"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":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"cap","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finishMinting","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","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":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","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":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"success","type":"bool"}],"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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_cap","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[],"name":"MintFinished","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":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","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"}]
Contract Creation Code
60606040526000600360146101000a81548160ff0219169083151502179055506000600560006101000a81548160ff0219169083151502179055506040805190810160405280600a81526020017f5649564120546f6b656e00000000000000000000000000000000000000000000815250600690805190602001906200008792919062000186565b506040805190810160405280600481526020017f564956410000000000000000000000000000000000000000000000000000000081525060079080519060200190620000d592919062000186565b506012600860006101000a81548160ff021916908360ff1602179055503415620000fe57600080fd5b60405160208062001e8b83398101604052808051906020019091905050670de0b6b3a7640000810233600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000811115156200017757600080fd5b80600481905550505062000235565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001c957805160ff1916838001178555620001fa565b82800160010185558215620001fa579182015b82811115620001f9578251825591602001919060010190620001dc565b5b5090506200020991906200020d565b5090565b6200023291905b808211156200022e57600081600090555060010162000214565b5090565b90565b611c4680620002456000396000f300606060405260043610610112576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806305d2035b1461011757806306fdde0314610144578063095ea7b3146101d257806318160ddd1461022c57806323b872dd14610255578063313ce567146102ce578063355274ea146102fd5780633f4ba83a1461032657806340c10f191461033b5780635c975abb1461039557806366188463146103c257806370a082311461041c5780637d64bcb4146104695780638456cb59146104965780638da5cb5b146104ab57806395d89b4114610500578063a9059cbb1461058e578063d73dd623146105e8578063dd62ed3e14610642578063f2fde38b146106ae575b600080fd5b341561012257600080fd5b61012a6106e7565b604051808215151515815260200191505060405180910390f35b341561014f57600080fd5b6101576106fa565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561019757808201518184015260208101905061017c565b50505050905090810190601f1680156101c45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101dd57600080fd5b610212600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610798565b604051808215151515815260200191505060405180910390f35b341561023757600080fd5b61023f6107c8565b6040518082815260200191505060405180910390f35b341561026057600080fd5b6102b4600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506107d2565b604051808215151515815260200191505060405180910390f35b34156102d957600080fd5b6102e1610804565b604051808260ff1660ff16815260200191505060405180910390f35b341561030857600080fd5b610310610817565b6040518082815260200191505060405180910390f35b341561033157600080fd5b61033961081d565b005b341561034657600080fd5b61037b600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506108dd565b604051808215151515815260200191505060405180910390f35b34156103a057600080fd5b6103a861098e565b604051808215151515815260200191505060405180910390f35b34156103cd57600080fd5b610402600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506109a1565b604051808215151515815260200191505060405180910390f35b341561042757600080fd5b610453600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109d1565b6040518082815260200191505060405180910390f35b341561047457600080fd5b61047c610a19565b604051808215151515815260200191505060405180910390f35b34156104a157600080fd5b6104a9610ae1565b005b34156104b657600080fd5b6104be610ba2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561050b57600080fd5b610513610bc8565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610553578082015181840152602081019050610538565b50505050905090810190601f1680156105805780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561059957600080fd5b6105ce600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610c66565b604051808215151515815260200191505060405180910390f35b34156105f357600080fd5b610628600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610c96565b604051808215151515815260200191505060405180910390f35b341561064d57600080fd5b610698600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610cc6565b6040518082815260200191505060405180910390f35b34156106b957600080fd5b6106e5600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610d4d565b005b600360149054906101000a900460ff1681565b60068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107905780601f1061076557610100808354040283529160200191610790565b820191906000526020600020905b81548152906001019060200180831161077357829003601f168201915b505050505081565b6000600560009054906101000a900460ff161515156107b657600080fd5b6107c08383610ea5565b905092915050565b6000600154905090565b6000600560009054906101000a900460ff161515156107f057600080fd5b6107fb848484610f97565b90509392505050565b600860009054906101000a900460ff1681565b60045481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561087957600080fd5b600560009054906101000a900460ff16151561089457600080fd5b6000600560006101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561093b57600080fd5b600360149054906101000a900460ff1615151561095757600080fd5b60045461096f8360015461135190919063ffffffff16565b1115151561097c57600080fd5b610986838361136f565b905092915050565b600560009054906101000a900460ff1681565b6000600560009054906101000a900460ff161515156109bf57600080fd5b6109c98383611555565b905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a7757600080fd5b600360149054906101000a900460ff16151515610a9357600080fd5b6001600360146101000a81548160ff0219169083151502179055507fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0860405160405180910390a16001905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b3d57600080fd5b600560009054906101000a900460ff16151515610b5957600080fd5b6001600560006101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610c5e5780601f10610c3357610100808354040283529160200191610c5e565b820191906000526020600020905b815481529060010190602001808311610c4157829003601f168201915b505050505081565b6000600560009054906101000a900460ff16151515610c8457600080fd5b610c8e83836117e6565b905092915050565b6000600560009054906101000a900460ff16151515610cb457600080fd5b610cbe8383611a05565b905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610da957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610de557600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610fd457600080fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561102157600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156110ac57600080fd5b6110fd826000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c0190919063ffffffff16565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611190826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461135190919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061126182600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c0190919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600080828401905083811015151561136557fe5b8091505092915050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156113cd57600080fd5b600360149054906101000a900460ff161515156113e957600080fd5b6113fe8260015461135190919063ffffffff16565b600181905550611455826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461135190919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885836040518082815260200191505060405180910390a28273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905080831115611666576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506116fa565b6116798382611c0190919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561182357600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561187057600080fd5b6118c1826000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c0190919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611954826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461135190919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b6000611a9682600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461135190919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000828211151515611c0f57fe5b8183039050929150505600a165627a7a7230582044b4f42aab33a27fd5fe9435e2b5e3ee825e91acf6477afe6074c99f82d524a7002900000000000000000000000000000000000000000000000000000000ee6b2800
Deployed Bytecode
0x606060405260043610610112576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806305d2035b1461011757806306fdde0314610144578063095ea7b3146101d257806318160ddd1461022c57806323b872dd14610255578063313ce567146102ce578063355274ea146102fd5780633f4ba83a1461032657806340c10f191461033b5780635c975abb1461039557806366188463146103c257806370a082311461041c5780637d64bcb4146104695780638456cb59146104965780638da5cb5b146104ab57806395d89b4114610500578063a9059cbb1461058e578063d73dd623146105e8578063dd62ed3e14610642578063f2fde38b146106ae575b600080fd5b341561012257600080fd5b61012a6106e7565b604051808215151515815260200191505060405180910390f35b341561014f57600080fd5b6101576106fa565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561019757808201518184015260208101905061017c565b50505050905090810190601f1680156101c45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101dd57600080fd5b610212600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610798565b604051808215151515815260200191505060405180910390f35b341561023757600080fd5b61023f6107c8565b6040518082815260200191505060405180910390f35b341561026057600080fd5b6102b4600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506107d2565b604051808215151515815260200191505060405180910390f35b34156102d957600080fd5b6102e1610804565b604051808260ff1660ff16815260200191505060405180910390f35b341561030857600080fd5b610310610817565b6040518082815260200191505060405180910390f35b341561033157600080fd5b61033961081d565b005b341561034657600080fd5b61037b600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506108dd565b604051808215151515815260200191505060405180910390f35b34156103a057600080fd5b6103a861098e565b604051808215151515815260200191505060405180910390f35b34156103cd57600080fd5b610402600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506109a1565b604051808215151515815260200191505060405180910390f35b341561042757600080fd5b610453600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109d1565b6040518082815260200191505060405180910390f35b341561047457600080fd5b61047c610a19565b604051808215151515815260200191505060405180910390f35b34156104a157600080fd5b6104a9610ae1565b005b34156104b657600080fd5b6104be610ba2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561050b57600080fd5b610513610bc8565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610553578082015181840152602081019050610538565b50505050905090810190601f1680156105805780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561059957600080fd5b6105ce600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610c66565b604051808215151515815260200191505060405180910390f35b34156105f357600080fd5b610628600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610c96565b604051808215151515815260200191505060405180910390f35b341561064d57600080fd5b610698600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610cc6565b6040518082815260200191505060405180910390f35b34156106b957600080fd5b6106e5600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610d4d565b005b600360149054906101000a900460ff1681565b60068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107905780601f1061076557610100808354040283529160200191610790565b820191906000526020600020905b81548152906001019060200180831161077357829003601f168201915b505050505081565b6000600560009054906101000a900460ff161515156107b657600080fd5b6107c08383610ea5565b905092915050565b6000600154905090565b6000600560009054906101000a900460ff161515156107f057600080fd5b6107fb848484610f97565b90509392505050565b600860009054906101000a900460ff1681565b60045481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561087957600080fd5b600560009054906101000a900460ff16151561089457600080fd5b6000600560006101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561093b57600080fd5b600360149054906101000a900460ff1615151561095757600080fd5b60045461096f8360015461135190919063ffffffff16565b1115151561097c57600080fd5b610986838361136f565b905092915050565b600560009054906101000a900460ff1681565b6000600560009054906101000a900460ff161515156109bf57600080fd5b6109c98383611555565b905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a7757600080fd5b600360149054906101000a900460ff16151515610a9357600080fd5b6001600360146101000a81548160ff0219169083151502179055507fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0860405160405180910390a16001905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b3d57600080fd5b600560009054906101000a900460ff16151515610b5957600080fd5b6001600560006101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610c5e5780601f10610c3357610100808354040283529160200191610c5e565b820191906000526020600020905b815481529060010190602001808311610c4157829003601f168201915b505050505081565b6000600560009054906101000a900460ff16151515610c8457600080fd5b610c8e83836117e6565b905092915050565b6000600560009054906101000a900460ff16151515610cb457600080fd5b610cbe8383611a05565b905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610da957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610de557600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610fd457600080fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561102157600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156110ac57600080fd5b6110fd826000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c0190919063ffffffff16565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611190826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461135190919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061126182600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c0190919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600080828401905083811015151561136557fe5b8091505092915050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156113cd57600080fd5b600360149054906101000a900460ff161515156113e957600080fd5b6113fe8260015461135190919063ffffffff16565b600181905550611455826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461135190919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885836040518082815260200191505060405180910390a28273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905080831115611666576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506116fa565b6116798382611c0190919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561182357600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561187057600080fd5b6118c1826000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c0190919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611954826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461135190919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b6000611a9682600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461135190919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000828211151515611c0f57fe5b8183039050929150505600a165627a7a7230582044b4f42aab33a27fd5fe9435e2b5e3ee825e91acf6477afe6074c99f82d524a70029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000ee6b2800
-----Decoded View---------------
Arg [0] : _cap (uint256): 4000000000
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000ee6b2800
Swarm Source
bzzr://44b4f42aab33a27fd5fe9435e2b5e3ee825e91acf6477afe6074c99f82d524a7
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.