Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
15,000,000 CVN
Holders
283
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 5 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
CrypviserToken
Compiler Version
v0.4.23+commit.124ca40d
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-04-28 */ pragma solidity ^0.4.17; /** * Math operations with safety checks */ library SafeMath { function mul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal returns (uint) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint a, uint b) internal returns (uint) { assert(b <= a); return a - b; } function add(uint a, uint b) internal returns (uint) { uint c = a + b; assert(c >= a); return c; } function max64(uint64 a, uint64 b) internal constant returns (uint64) { return a >= b ? a : b; } function min64(uint64 a, uint64 b) internal constant returns (uint64) { return a < b ? a : b; } function max256(uint256 a, uint256 b) internal constant returns (uint256) { return a >= b ? a : b; } function min256(uint256 a, uint256 b) internal constant returns (uint256) { return a < b ? a : b; } function assert(bool assertion) internal { if (!assertion) { throw; } } } /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20Basic { uint public totalSupply; function balanceOf(address who) constant returns (uint); function transfer(address to, uint value) returns (bool); event Transfer(address indexed from, address indexed to, uint value); } /** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */ contract BasicToken is ERC20Basic { using SafeMath for uint; mapping(address => uint) balances; /** * @dev Fix for the ERC20 short address attack. */ modifier onlyPayloadSize(uint size) { if(msg.data.length < size + 4) { throw; } _; } /** * @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, uint _value) onlyPayloadSize(2 * 32) returns (bool){ require(_to != address(0)); require(_value <= balances[msg.sender]); 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 uint representing the amount owned by the passed address. */ function balanceOf(address _owner) constant returns (uint balance) { return balances[_owner]; } } /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20 is ERC20Basic { function allowance(address owner, address spender) constant returns (uint); function transferFrom(address from, address to, uint value) returns (bool); function approve(address spender, uint value) returns (bool); event Approval(address indexed owner, address indexed spender, uint value); } /** * @title Standard ERC20 token * * @dev Implemantation of the basic standart 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 BasicToken, ERC20 { mapping (address => mapping (address => uint)) 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 uint the amout of tokens to be transfered */ function transferFrom(address _from, address _to, uint _value) onlyPayloadSize(3 * 32) returns (bool) { var _allowance = allowed[_from][msg.sender]; require(_to != address(0)); require(_value <= balances[_from]); require(_value <= _allowance); balances[_to] = balances[_to].add(_value); balances[_from] = balances[_from].sub(_value); allowed[_from][msg.sender] = _allowance.sub(_value); Transfer(_from, _to, _value); return true; } /** * @dev Aprove the passed address to spend the specified amount of tokens on beahlf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */ function approve(address _spender, uint _value) returns (bool) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 if ((_value != 0) && (allowed[msg.sender][_spender] != 0)) throw; allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } /** * @dev Function to check the amount of tokens than 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 uint specifing the amount of tokens still avaible for the spender. */ function allowance(address _owner, address _spender) constant returns (uint remaining) { return allowed[_owner][_spender]; } } contract CrypviserToken is StandardToken { //FIELDS string public constant name = "CVCOIN ERC20"; string public constant symbol = "CVN"; uint8 public constant decimals = 5; //CONSTANTS //CVN Token limit uint256 public constant TOTAL_SUPPLY = 15e6 * (10 ** uint256(decimals)); //ASSIGNED IN INITIALIZATION //Special Addresses address public openLedgerAddress; function CrypviserToken(address _openLedger) { openLedgerAddress = _openLedger; mint(openLedgerAddress, TOTAL_SUPPLY); } function mint(address _to, uint256 _value) private { totalSupply = totalSupply.add(_value); balances[_to] = balances[_to].add(_value); Transfer(0x0, _to, _value); } }
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":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":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"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":true,"inputs":[],"name":"openLedgerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_openLedger","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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
608060405234801561001057600080fd5b5060405160208061085f833981016040525160038054600160a060020a031916600160a060020a03808416919091179182905561005d911665015d3ef79800640100000000610063810204565b50610137565b60005461007d90826401000000006106b261010782021704565b6000908155600160a060020a0383168152600160205260409020546100af90826401000000006106b261010782021704565b600160a060020a03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082820161012184821015640100000000610128810204565b9392505050565b80151561013457600080fd5b50565b610719806101466000396000f3006080604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b3578063095ea7b31461013d57806318160ddd1461017557806323b872dd1461019c578063313ce567146101c657806370a08231146101f1578063902d55a51461021257806395d89b4114610227578063a9059cbb1461023c578063b7eea20614610260578063dd62ed3e14610291575b600080fd5b3480156100bf57600080fd5b506100c86102b8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101025781810151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014957600080fd5b50610161600160a060020a03600435166024356102ef565b604080519115158252519081900360200190f35b34801561018157600080fd5b5061018a610394565b60408051918252519081900360200190f35b3480156101a857600080fd5b50610161600160a060020a036004358116906024351660443561039a565b3480156101d257600080fd5b506101db61050b565b6040805160ff9092168252519081900360200190f35b3480156101fd57600080fd5b5061018a600160a060020a0360043516610510565b34801561021e57600080fd5b5061018a61052b565b34801561023357600080fd5b506100c8610535565b34801561024857600080fd5b50610161600160a060020a036004351660243561056c565b34801561026c57600080fd5b50610275610678565b60408051600160a060020a039092168252519081900360200190f35b34801561029d57600080fd5b5061018a600160a060020a0360043581169060243516610687565b60408051808201909152600c81527f4356434f494e2045524332300000000000000000000000000000000000000000602082015281565b600081158015906103245750600160a060020a0333811660009081526002602090815260408083209387168352929052205415155b1561032e57600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350600192915050565b60005481565b600080606060643610156103ad57600080fd5b600160a060020a03808716600090815260026020908152604080832033851684529091529020549250851615156103e357600080fd5b600160a060020a03861660009081526001602052604090205484111561040857600080fd5b8184111561041557600080fd5b600160a060020a03851660009081526001602052604090205461043e908563ffffffff6106b216565b600160a060020a038087166000908152600160205260408082209390935590881681522054610473908563ffffffff6106ca16565b600160a060020a03871660009081526001602052604090205561049c828563ffffffff6106ca16565b600160a060020a038088166000818152600260209081526040808320338616845282529182902094909455805188815290519289169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600195945050505050565b600581565b600160a060020a031660009081526001602052604090205490565b65015d3ef7980081565b60408051808201909152600381527f43564e0000000000000000000000000000000000000000000000000000000000602082015281565b60006040604436101561057e57600080fd5b600160a060020a038416151561059357600080fd5b600160a060020a0333166000908152600160205260409020548311156105b857600080fd5b600160a060020a0333166000908152600160205260409020546105e1908463ffffffff6106ca16565b600160a060020a033381166000908152600160205260408082209390935590861681522054610616908463ffffffff6106b216565b600160a060020a038086166000818152600160209081526040918290209490945580518781529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b600354600160a060020a031681565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60008282016106c3848210156106de565b9392505050565b60006106d8838311156106de565b50900390565b8015156106ea57600080fd5b505600a165627a7a7230582046b3244b71674ed7b9f31a7ce814ed863067765fcedad68db1db14d7d3d0f35d0029000000000000000000000000ddd3fc4a0f9e3f2a966609f8a329900cb30a4eaa
Deployed Bytecode
0x6080604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b3578063095ea7b31461013d57806318160ddd1461017557806323b872dd1461019c578063313ce567146101c657806370a08231146101f1578063902d55a51461021257806395d89b4114610227578063a9059cbb1461023c578063b7eea20614610260578063dd62ed3e14610291575b600080fd5b3480156100bf57600080fd5b506100c86102b8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101025781810151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014957600080fd5b50610161600160a060020a03600435166024356102ef565b604080519115158252519081900360200190f35b34801561018157600080fd5b5061018a610394565b60408051918252519081900360200190f35b3480156101a857600080fd5b50610161600160a060020a036004358116906024351660443561039a565b3480156101d257600080fd5b506101db61050b565b6040805160ff9092168252519081900360200190f35b3480156101fd57600080fd5b5061018a600160a060020a0360043516610510565b34801561021e57600080fd5b5061018a61052b565b34801561023357600080fd5b506100c8610535565b34801561024857600080fd5b50610161600160a060020a036004351660243561056c565b34801561026c57600080fd5b50610275610678565b60408051600160a060020a039092168252519081900360200190f35b34801561029d57600080fd5b5061018a600160a060020a0360043581169060243516610687565b60408051808201909152600c81527f4356434f494e2045524332300000000000000000000000000000000000000000602082015281565b600081158015906103245750600160a060020a0333811660009081526002602090815260408083209387168352929052205415155b1561032e57600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350600192915050565b60005481565b600080606060643610156103ad57600080fd5b600160a060020a03808716600090815260026020908152604080832033851684529091529020549250851615156103e357600080fd5b600160a060020a03861660009081526001602052604090205484111561040857600080fd5b8184111561041557600080fd5b600160a060020a03851660009081526001602052604090205461043e908563ffffffff6106b216565b600160a060020a038087166000908152600160205260408082209390935590881681522054610473908563ffffffff6106ca16565b600160a060020a03871660009081526001602052604090205561049c828563ffffffff6106ca16565b600160a060020a038088166000818152600260209081526040808320338616845282529182902094909455805188815290519289169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600195945050505050565b600581565b600160a060020a031660009081526001602052604090205490565b65015d3ef7980081565b60408051808201909152600381527f43564e0000000000000000000000000000000000000000000000000000000000602082015281565b60006040604436101561057e57600080fd5b600160a060020a038416151561059357600080fd5b600160a060020a0333166000908152600160205260409020548311156105b857600080fd5b600160a060020a0333166000908152600160205260409020546105e1908463ffffffff6106ca16565b600160a060020a033381166000908152600160205260408082209390935590861681522054610616908463ffffffff6106b216565b600160a060020a038086166000818152600160209081526040918290209490945580518781529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b600354600160a060020a031681565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60008282016106c3848210156106de565b9392505050565b60006106d8838311156106de565b50900390565b8015156106ea57600080fd5b505600a165627a7a7230582046b3244b71674ed7b9f31a7ce814ed863067765fcedad68db1db14d7d3d0f35d0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ddd3fc4a0f9e3f2a966609f8a329900cb30a4eaa
-----Decoded View---------------
Arg [0] : _openLedger (address): 0xddd3Fc4a0f9E3F2A966609F8a329900cb30a4EaA
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ddd3fc4a0f9e3f2a966609f8a329900cb30a4eaa
Swarm Source
bzzr://46b3244b71674ed7b9f31a7ce814ed863067765fcedad68db1db14d7d3d0f35d
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.