ERC-20
Overview
Max Total Supply
2,000,000,000 RVC
Holders
16
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
310 RVCValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RVCoin
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-08-03 */ pragma solidity ^0.4.23; // ================= Ownable Contract start ============================= /* * Ownable * * Base contract with an owner. * Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner. */ contract Ownable { address public owner; constructor() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwnership(address newOwner) public onlyOwner { if (newOwner != address(0)) { owner = newOwner; } } } // ================= Ownable Contract end =============================== // ================= Safemath Lib ============================ 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; } } // ================= Safemath Lib end ============================== // ================= ERC20 Token Contract start ========================= /* * ERC20 interface * see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20 { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); 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); function burn(uint256 _value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); // This notifies clients about the amount burnt event Burn(address indexed from, uint256 value); } // ================= ERC20 Token Contract end =========================== // ================= Standard Token Contract start ====================== contract StandardToken is ERC20 { using SafeMath for uint256; mapping(address => uint256) balances; mapping (address => mapping (address => uint256)) internal allowed; 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); emit 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]; } /** * @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); emit 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; emit 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]; } /** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */ function burn(uint256 _value) public returns (bool success) { require(balances[msg.sender] >= _value); // Check if the sender has enough balances[msg.sender] -= _value; // Subtract from the sender totalSupply_ -= _value; // Updates totalSupply emit Burn(msg.sender, _value); return true; } } // ================= Standard Token Contract end ======================== // ================= Pausable Token Contract start ====================== /** * @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 allow actions only when the contract IS paused */ modifier whenNotPaused() { require (!paused); _; } /** * @dev modifier to allow actions only when the contract IS NOT paused */ modifier whenPaused { require (paused) ; _; } /** * @dev called by the owner to pause, triggers stopped state */ function pause() public onlyOwner whenNotPaused returns (bool) { paused = true; emit Pause(); return true; } /** * @dev called by the owner to unpause, returns to normal state */ function unpause() public onlyOwner whenPaused returns (bool) { paused = false; emit Unpause(); return true; } } // ================= Pausable Token Contract end ======================== // ================= RVCoin start ======================= contract RVCoin is StandardToken, Pausable { string public constant name = 'Renvale Coin'; string public constant symbol = 'RVC'; uint256 public constant decimals = 18; address public rvDepositAddress; uint256 public constant rvDeposit = 2000000000 * 10**decimals; constructor(address _rvDepositAddress) public { rvDepositAddress = _rvDepositAddress; balances[rvDepositAddress] = rvDeposit; emit Transfer(0x0, rvDepositAddress, rvDeposit); totalSupply_ = rvDeposit; } function transfer(address _to, uint256 _value) public whenNotPaused returns (bool success) { return super.transfer(_to,_value); } function approve(address _spender, uint256 _value) public whenNotPaused returns (bool success) { return super.approve(_spender, _value); } function balanceOf(address _owner) public view returns (uint256 balance) { return super.balanceOf(_owner); } function burn(uint256 _value) public returns (bool success){ return super.burn(_value); } } // ================= Token Contract end =======================
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":"success","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":"rvDepositAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"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":false,"inputs":[],"name":"pause","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rvDeposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"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":"_rvDepositAddress","type":"address"}],"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":"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"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"}]
Contract Creation Code
60806040526003805460a060020a60ff021916905534801561002057600080fd5b50604051602080610ad2833981016040818152915160038054600160a060020a03338116600160a060020a031992831617909255600480548385169216919091178082558216600090815260208181528682206b06765c793fa10079d000000090819055925492865295519395919092169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506b06765c793fa10079d00000006002556109f4806100de6000396000f3006080604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101b757806323b872dd146101de5780632cae249a14610208578063313ce567146102395780633f4ba83a1461024e57806342966c68146102635780635c975abb1461027b57806370a08231146102905780638456cb59146102b15780638d24d147146102c65780638da5cb5b146102db57806395d89b41146102f0578063a9059cbb14610305578063dd62ed3e14610329578063f2fde38b14610350575b600080fd5b34801561010157600080fd5b5061010a610373565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014457818101518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018b57600080fd5b506101a3600160a060020a03600435166024356103aa565b604080519115158252519081900360200190f35b3480156101c357600080fd5b506101cc6103d5565b60408051918252519081900360200190f35b3480156101ea57600080fd5b506101a3600160a060020a03600435811690602435166044356103db565b34801561021457600080fd5b5061021d61055b565b60408051600160a060020a039092168252519081900360200190f35b34801561024557600080fd5b506101cc61056a565b34801561025a57600080fd5b506101a361056f565b34801561026f57600080fd5b506101a36004356105f2565b34801561028757600080fd5b506101a3610603565b34801561029c57600080fd5b506101cc600160a060020a0360043516610613565b3480156102bd57600080fd5b506101a361061e565b3480156102d257600080fd5b506101cc6106a6565b3480156102e757600080fd5b5061021d6106b6565b3480156102fc57600080fd5b5061010a6106c5565b34801561031157600080fd5b506101a3600160a060020a03600435166024356106fc565b34801561033557600080fd5b506101cc600160a060020a0360043581169060243516610720565b34801561035c57600080fd5b50610371600160a060020a036004351661074b565b005b60408051808201909152600c81527f52656e76616c6520436f696e0000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff16156103c457600080fd5b6103ce83836107a1565b9392505050565b60025490565b6000600160a060020a03831615156103f257600080fd5b600160a060020a03841660009081526020819052604090205482111561041757600080fd5b600160a060020a038085166000908152600160209081526040808320339094168352929052205482111561044a57600080fd5b600160a060020a038416600090815260208190526040902054610473908363ffffffff61080b16565b600160a060020a0380861660009081526020819052604080822093909355908516815220546104a8908363ffffffff61081d16565b600160a060020a03808516600090815260208181526040808320949094558783168252600181528382203390931682529190915220546104ee908363ffffffff61080b16565b600160a060020a038086166000818152600160209081526040808320338616845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b600454600160a060020a031681565b601281565b60035460009033600160a060020a0390811691161461058d57600080fd5b60035460a060020a900460ff1615156105a557600080fd5b6003805474ff0000000000000000000000000000000000000000191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a150600190565b60006105fd8261082c565b92915050565b60035460a060020a900460ff1681565b60006105fd826108b4565b60035460009033600160a060020a0390811691161461063c57600080fd5b60035460a060020a900460ff161561065357600080fd5b6003805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a150600190565b6b06765c793fa10079d000000081565b600354600160a060020a031681565b60408051808201909152600381527f5256430000000000000000000000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff161561071657600080fd5b6103ce83836108cf565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b60035433600160a060020a0390811691161461076657600080fd5b600160a060020a0381161561079e576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600160a060020a03338116600081815260016020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60008282111561081757fe5b50900390565b6000828201838110156103ce57fe5b600160a060020a03331660009081526020819052604081205482111561085157600080fd5b600160a060020a0333166000818152602081815260409182902080548690039055600280548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b600160a060020a031660009081526020819052604090205490565b6000600160a060020a03831615156108e657600080fd5b600160a060020a03331660009081526020819052604090205482111561090b57600080fd5b600160a060020a033316600090815260208190526040902054610934908363ffffffff61080b16565b600160a060020a033381166000908152602081905260408082209390935590851681522054610969908363ffffffff61081d16565b600160a060020a03808516600081815260208181526040918290209490945580518681529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3506001929150505600a165627a7a7230582070af182191207d1538d6392ae4783f17739d7ec54b5e280ed17795d8ae3539b70029000000000000000000000000b3d4ccaa7993de3ac538ba6623e63ebc12fce36f
Deployed Bytecode
0x6080604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101b757806323b872dd146101de5780632cae249a14610208578063313ce567146102395780633f4ba83a1461024e57806342966c68146102635780635c975abb1461027b57806370a08231146102905780638456cb59146102b15780638d24d147146102c65780638da5cb5b146102db57806395d89b41146102f0578063a9059cbb14610305578063dd62ed3e14610329578063f2fde38b14610350575b600080fd5b34801561010157600080fd5b5061010a610373565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014457818101518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018b57600080fd5b506101a3600160a060020a03600435166024356103aa565b604080519115158252519081900360200190f35b3480156101c357600080fd5b506101cc6103d5565b60408051918252519081900360200190f35b3480156101ea57600080fd5b506101a3600160a060020a03600435811690602435166044356103db565b34801561021457600080fd5b5061021d61055b565b60408051600160a060020a039092168252519081900360200190f35b34801561024557600080fd5b506101cc61056a565b34801561025a57600080fd5b506101a361056f565b34801561026f57600080fd5b506101a36004356105f2565b34801561028757600080fd5b506101a3610603565b34801561029c57600080fd5b506101cc600160a060020a0360043516610613565b3480156102bd57600080fd5b506101a361061e565b3480156102d257600080fd5b506101cc6106a6565b3480156102e757600080fd5b5061021d6106b6565b3480156102fc57600080fd5b5061010a6106c5565b34801561031157600080fd5b506101a3600160a060020a03600435166024356106fc565b34801561033557600080fd5b506101cc600160a060020a0360043581169060243516610720565b34801561035c57600080fd5b50610371600160a060020a036004351661074b565b005b60408051808201909152600c81527f52656e76616c6520436f696e0000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff16156103c457600080fd5b6103ce83836107a1565b9392505050565b60025490565b6000600160a060020a03831615156103f257600080fd5b600160a060020a03841660009081526020819052604090205482111561041757600080fd5b600160a060020a038085166000908152600160209081526040808320339094168352929052205482111561044a57600080fd5b600160a060020a038416600090815260208190526040902054610473908363ffffffff61080b16565b600160a060020a0380861660009081526020819052604080822093909355908516815220546104a8908363ffffffff61081d16565b600160a060020a03808516600090815260208181526040808320949094558783168252600181528382203390931682529190915220546104ee908363ffffffff61080b16565b600160a060020a038086166000818152600160209081526040808320338616845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b600454600160a060020a031681565b601281565b60035460009033600160a060020a0390811691161461058d57600080fd5b60035460a060020a900460ff1615156105a557600080fd5b6003805474ff0000000000000000000000000000000000000000191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a150600190565b60006105fd8261082c565b92915050565b60035460a060020a900460ff1681565b60006105fd826108b4565b60035460009033600160a060020a0390811691161461063c57600080fd5b60035460a060020a900460ff161561065357600080fd5b6003805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a150600190565b6b06765c793fa10079d000000081565b600354600160a060020a031681565b60408051808201909152600381527f5256430000000000000000000000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff161561071657600080fd5b6103ce83836108cf565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b60035433600160a060020a0390811691161461076657600080fd5b600160a060020a0381161561079e576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600160a060020a03338116600081815260016020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60008282111561081757fe5b50900390565b6000828201838110156103ce57fe5b600160a060020a03331660009081526020819052604081205482111561085157600080fd5b600160a060020a0333166000818152602081815260409182902080548690039055600280548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b600160a060020a031660009081526020819052604090205490565b6000600160a060020a03831615156108e657600080fd5b600160a060020a03331660009081526020819052604090205482111561090b57600080fd5b600160a060020a033316600090815260208190526040902054610934908363ffffffff61080b16565b600160a060020a033381166000908152602081905260408082209390935590851681522054610969908363ffffffff61081d16565b600160a060020a03808516600081815260208181526040918290209490945580518681529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3506001929150505600a165627a7a7230582070af182191207d1538d6392ae4783f17739d7ec54b5e280ed17795d8ae3539b70029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b3d4ccaa7993de3ac538ba6623e63ebc12fce36f
-----Decoded View---------------
Arg [0] : _rvDepositAddress (address): 0xb3d4CCaA7993De3Ac538BA6623e63eBc12Fce36f
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b3d4ccaa7993de3ac538ba6623e63ebc12fce36f
Swarm Source
bzzr://70af182191207d1538d6392ae4783f17739d7ec54b5e280ed17795d8ae3539b7
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.