Forkchoice Ethereum Mainnet

Address Contract Partially Verified

Address 0xa3eBd756729904Ba2A39289751d96D9B2eAc793b
Balance 0 ETH
Nonce 1
Code Size 2548 bytes
Indexed Transactions 0 (1 on-chain, 1.2% indexed)
External Etherscan · Sourcify

Contract Bytecode

2548 bytes
0x6080604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101b757806323b872dd146101de5780632cae249a14610208578063313ce567146102395780633f4ba83a1461024e57806342966c68146102635780635c975abb1461027b57806370a08231146102905780638456cb59146102b15780638d24d147146102c65780638da5cb5b146102db57806395d89b41146102f0578063a9059cbb14610305578063dd62ed3e14610329578063f2fde38b14610350575b600080fd5b34801561010157600080fd5b5061010a610373565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014457818101518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018b57600080fd5b506101a3600160a060020a03600435166024356103aa565b604080519115158252519081900360200190f35b3480156101c357600080fd5b506101cc6103d5565b60408051918252519081900360200190f35b3480156101ea57600080fd5b506101a3600160a060020a03600435811690602435166044356103db565b34801561021457600080fd5b5061021d61055b565b60408051600160a060020a039092168252519081900360200190f35b34801561024557600080fd5b506101cc61056a565b34801561025a57600080fd5b506101a361056f565b34801561026f57600080fd5b506101a36004356105f2565b34801561028757600080fd5b506101a3610603565b34801561029c57600080fd5b506101cc600160a060020a0360043516610613565b3480156102bd57600080fd5b506101a361061e565b3480156102d257600080fd5b506101cc6106a6565b3480156102e757600080fd5b5061021d6106b6565b3480156102fc57600080fd5b5061010a6106c5565b34801561031157600080fd5b506101a3600160a060020a03600435166024356106fc565b34801561033557600080fd5b506101cc600160a060020a0360043581169060243516610720565b34801561035c57600080fd5b50610371600160a060020a036004351661074b565b005b60408051808201909152600c81527f52656e76616c6520436f696e0000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff16156103c457600080fd5b6103ce83836107a1565b9392505050565b60025490565b6000600160a060020a03831615156103f257600080fd5b600160a060020a03841660009081526020819052604090205482111561041757600080fd5b600160a060020a038085166000908152600160209081526040808320339094168352929052205482111561044a57600080fd5b600160a060020a038416600090815260208190526040902054610473908363ffffffff61080b16565b600160a060020a0380861660009081526020819052604080822093909355908516815220546104a8908363ffffffff61081d16565b600160a060020a03808516600090815260208181526040808320949094558783168252600181528382203390931682529190915220546104ee908363ffffffff61080b16565b600160a060020a038086166000818152600160209081526040808320338616845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b600454600160a060020a031681565b601281565b60035460009033600160a060020a0390811691161461058d57600080fd5b60035460a060020a900460ff1615156105a557600080fd5b6003805474ff0000000000000000000000000000000000000000191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a150600190565b60006105fd8261082c565b92915050565b60035460a060020a900460ff1681565b60006105fd826108b4565b60035460009033600160a060020a0390811691161461063c57600080fd5b60035460a060020a900460ff161561065357600080fd5b6003805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a150600190565b6b06765c793fa10079d000000081565b600354600160a060020a031681565b60408051808201909152600381527f5256430000000000000000000000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff161561071657600080fd5b6103ce83836108cf565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b60035433600160a060020a0390811691161461076657600080fd5b600160a060020a0381161561079e576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600160a060020a03338116600081815260016020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60008282111561081757fe5b50900390565b6000828201838110156103ce57fe5b600160a060020a03331660009081526020819052604081205482111561085157600080fd5b600160a060020a0333166000818152602081815260409182902080548690039055600280548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b600160a060020a031660009081526020819052604090205490565b6000600160a060020a03831615156108e657600080fd5b600160a060020a03331660009081526020819052604090205482111561090b57600080fd5b600160a060020a033316600090815260208190526040902054610934908363ffffffff61080b16565b600160a060020a033381166000908152602081905260408082209390935590851681522054610969908363ffffffff61081d16565b600160a060020a03808516600081815260208181526040918290209490945580518681529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3506001929150505600a165627a7a7230582070af182191207d1538d6392ae4783f17739d7ec54b5e280ed17795d8ae3539b70029

Verified Source Code Partial Match

Compiler: v0.4.23+commit.124ca40d EVM: byzantium Optimization: Yes (200 runs)
RVCoin.sol 282 lines
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 =======================

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
paused 0x5c975abb → bool
rvDeposit 0x8d24d147 → uint256
rvDepositAddress 0x2cae249a → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 7 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
burn 0x42966c68
uint256 _value
returns: bool
pause 0x8456cb59
No parameters
returns: bool
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unpause 0x3f4ba83a
No parameters
returns: bool

Recent Transactions

This address has 1 on-chain transactions, but only 1.2% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →