ETH Price: $3,595.05 (+3.70%)
 
Transaction Hash
Method
Block
From
To
Transfer Ownersh...97373572020-03-25 0:32:511746 days ago1585096371IN
RenVM: Darknodes Fee renBTC
0 ETH0.000090653
Transfer Ownersh...97373002020-03-25 0:21:541746 days ago1585095714IN
RenVM: Darknodes Fee renBTC
0 ETH0.000135613

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
123730562021-05-05 8:05:431339 days ago1620201943
RenVM: Darknodes Fee renBTC
0.05462 ETH
121743172021-04-04 16:49:361370 days ago1617554976
RenVM: Darknodes Fee renBTC
0.15 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DarknodePaymentStore

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-03-25
*/

/**

Deployed by Ren Project, https://renproject.io

Commit hash: 9068f80
Repository: https://github.com/renproject/darknode-sol
Issues: https://github.com/renproject/darknode-sol/issues

Licenses
@openzeppelin/contracts: (MIT) https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/LICENSE
darknode-sol: (GNU GPL V3) https://github.com/renproject/darknode-sol/blob/master/LICENSE

*/

pragma solidity 0.5.16;


library SafeMath {
    
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        
        
        
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        
        require(b > 0, errorMessage);
        uint256 c = a / b;
        

        return c;
    }

    
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

contract Initializable {

  
  bool private initialized;

  
  bool private initializing;

  
  modifier initializer() {
    require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized");

    bool isTopLevelCall = !initializing;
    if (isTopLevelCall) {
      initializing = true;
      initialized = true;
    }

    _;

    if (isTopLevelCall) {
      initializing = false;
    }
  }

  
  function isConstructor() private view returns (bool) {
    
    
    
    
    
    address self = address(this);
    uint256 cs;
    assembly { cs := extcodesize(self) }
    return cs == 0;
  }

  
  uint256[50] private ______gap;
}

contract Context is Initializable {
    
    
    constructor () internal { }
    

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; 
        return msg.data;
    }
}

interface IERC20 {
    
    function totalSupply() external view returns (uint256);

    
    function balanceOf(address account) external view returns (uint256);

    
    function transfer(address recipient, uint256 amount) external returns (bool);

    
    function allowance(address owner, address spender) external view returns (uint256);

    
    function approve(address spender, uint256 amount) external returns (bool);

    
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    
    event Transfer(address indexed from, address indexed to, uint256 value);

    
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

contract ERC20 is Initializable, Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    
    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    
    function transfer(address recipient, uint256 amount) public returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    
    function allowance(address owner, address spender) public view returns (uint256) {
        return _allowances[owner][spender];
    }

    
    function approve(address spender, uint256 amount) public returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    
    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    
    function _transfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

     
    function _burn(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: burn from the zero address");

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    
    function _approve(address owner, address spender, uint256 amount) internal {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }

    uint256[50] private ______gap;
}

library Address {
    
    function isContract(address account) internal view returns (bool) {
        
        
        

        
        
        
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        
        assembly { codehash := extcodehash(account) }
        return (codehash != 0x0 && codehash != accountHash);
    }

    
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        
        
        
        
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        
        

        
        
        
        
        
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { 
            
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

contract Ownable is Initializable, Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    
    function initialize(address sender) public initializer {
        _owner = sender;
        emit OwnershipTransferred(address(0), _owner);
    }

    
    function owner() public view returns (address) {
        return _owner;
    }

    
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

    
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }

    uint256[50] private ______gap;
}

contract Claimable is Initializable, Ownable {
    address public pendingOwner;

    function initialize(address _nextOwner) public initializer {
        Ownable.initialize(_nextOwner);
    }

    modifier onlyPendingOwner() {
        require(
            _msgSender() == pendingOwner,
            "Claimable: caller is not the pending owner"
        );
        _;
    }

    function transferOwnership(address newOwner) public onlyOwner {
        require(
            newOwner != owner() && newOwner != pendingOwner,
            "Claimable: invalid new owner"
        );
        pendingOwner = newOwner;
    }

    function claimOwnership() public onlyPendingOwner {
        _transferOwnership(pendingOwner);
        delete pendingOwner;
    }
}

library Math {
    
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

library ERC20WithFees {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    
    
    function safeTransferFromWithFees(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal returns (uint256) {
        uint256 balancesBefore = token.balanceOf(to);
        token.safeTransferFrom(from, to, value);
        uint256 balancesAfter = token.balanceOf(to);
        return Math.min(value, balancesAfter.sub(balancesBefore));
    }
}

contract DarknodePaymentStore is Claimable {
    using SafeMath for uint256;
    using SafeERC20 for ERC20;
    using ERC20WithFees for ERC20;

    string public VERSION; 

    
    address public constant ETHEREUM = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    
    mapping(address => mapping(address => uint256)) public darknodeBalances;

    
    mapping(address => uint256) public lockedBalances;

    
    
    
    constructor(string memory _VERSION) public {
        Claimable.initialize(msg.sender);
        VERSION = _VERSION;
    }

    
    function() external payable {}

    
    
    
    
    function totalBalance(address _token) public view returns (uint256) {
        if (_token == ETHEREUM) {
            return address(this).balance;
        } else {
            return ERC20(_token).balanceOf(address(this));
        }
    }

    
    
    
    
    
    
    function availableBalance(address _token) public view returns (uint256) {
        return
            totalBalance(_token).sub(
                lockedBalances[_token],
                "DarknodePaymentStore: locked balance exceed total balance"
            );
    }

    
    
    
    
    
    
    function incrementDarknodeBalance(
        address _darknode,
        address _token,
        uint256 _amount
    ) external onlyOwner {
        require(_amount > 0, "DarknodePaymentStore: invalid amount");
        require(
            availableBalance(_token) >= _amount,
            "DarknodePaymentStore: insufficient contract balance"
        );

        darknodeBalances[_darknode][_token] = darknodeBalances[_darknode][_token]
            .add(_amount);
        lockedBalances[_token] = lockedBalances[_token].add(_amount);
    }

    
    
    
    
    
    
    function transfer(
        address _darknode,
        address _token,
        uint256 _amount,
        address payable _recipient
    ) external onlyOwner {
        require(
            darknodeBalances[_darknode][_token] >= _amount,
            "DarknodePaymentStore: insufficient darknode balance"
        );
        darknodeBalances[_darknode][_token] = darknodeBalances[_darknode][_token]
            .sub(
            _amount,
            "DarknodePaymentStore: insufficient darknode balance for transfer"
        );
        lockedBalances[_token] = lockedBalances[_token].sub(
            _amount,
            "DarknodePaymentStore: insufficient token balance for transfer"
        );

        if (_token == ETHEREUM) {
            _recipient.transfer(_amount);
        } else {
            ERC20(_token).safeTransfer(_recipient, _amount);
        }
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_VERSION","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[],"name":"ETHEREUM","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"availableBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"darknodeBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_darknode","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"incrementDarknodeBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_nextOwner","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lockedBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"totalBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_darknode","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address payable","name":"_recipient","type":"address"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200171c3803806200171c833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b5060405250505062000103336200012060201b620006771760201c565b805162000118906067906020840190620002f3565b505062000395565b600054610100900460ff1680620001455750620001456001600160e01b03620001ea16565b8062000154575060005460ff16155b620001915760405162461bcd60e51b815260040180806020018281038252602e815260200180620016ee602e913960400191505060405180910390fd5b600054610100900460ff16158015620001bd576000805460ff1961ff0019909116610100171660011790555b620001d382620001f160201b62000d6f1760201c565b8015620001e6576000805461ff00191690555b5050565b303b155b90565b600054610100900460ff1680620002165750620002166001600160e01b03620001ea16565b8062000225575060005460ff16155b620002625760405162461bcd60e51b815260040180806020018281038252602e815260200180620016ee602e913960400191505060405180910390fd5b600054610100900460ff161580156200028e576000805460ff1961ff0019909116610100171660011790555b603380546001600160a01b0319166001600160a01b0384811691909117918290556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38015620001e6576000805461ff00191690555050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200033657805160ff191683800117855562000366565b8280016001018555821562000366579182015b828111156200036657825182559160200191906001019062000349565b506200037492915062000378565b5090565b620001ee91905b808211156200037457600081556001016200037f565b61134980620003a56000396000f3fe6080604052600436106100e85760003560e01c8063a0821be31161008a578063f2fde38b11610059578063f2fde38b146102df578063f7cdf47c14610312578063f9ce781314610327578063ffa1ad7414610370576100e8565b8063a0821be314610221578063c4d66de814610254578063d23b90a514610287578063e30c3978146102ca576100e8565b806370324b77116100c657806370324b7714610177578063715018a6146101b25780638da5cb5b146101c75780638f32d59b146101f8576100e8565b80630483a7f6146100ea5780634e71e0c81461012f5780636eacd39814610144575b005b3480156100f657600080fd5b5061011d6004803603602081101561010d57600080fd5b50356001600160a01b03166103fa565b60408051918252519081900360200190f35b34801561013b57600080fd5b506100e861040c565b34801561015057600080fd5b5061011d6004803603602081101561016757600080fd5b50356001600160a01b031661048c565b34801561018357600080fd5b5061011d6004803603604081101561019a57600080fd5b506001600160a01b0381358116916020013516610534565b3480156101be57600080fd5b506100e8610551565b3480156101d357600080fd5b506101dc6105e2565b604080516001600160a01b039092168252519081900360200190f35b34801561020457600080fd5b5061020d6105f1565b604080519115158252519081900360200190f35b34801561022d57600080fd5b5061011d6004803603602081101561024457600080fd5b50356001600160a01b0316610617565b34801561026057600080fd5b506100e86004803603602081101561027757600080fd5b50356001600160a01b0316610677565b34801561029357600080fd5b506100e8600480360360608110156102aa57600080fd5b506001600160a01b03813581169160208101359091169060400135610723565b3480156102d657600080fd5b506101dc61088a565b3480156102eb57600080fd5b506100e86004803603602081101561030257600080fd5b50356001600160a01b0316610899565b34801561031e57600080fd5b506101dc61098a565b34801561033357600080fd5b506100e86004803603608081101561034a57600080fd5b506001600160a01b038135811691602081013582169160408201359160600135166109a2565b34801561037c57600080fd5b50610385610b9f565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bf5781810151838201526020016103a7565b50505050905090810190601f1680156103ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60696020526000908152604090205481565b6066546001600160a01b0316610420610c2d565b6001600160a01b0316146104655760405162461bcd60e51b815260040180806020018281038252602a8152602001806112c1602a913960400191505060405180910390fd5b60665461047a906001600160a01b0316610c31565b606680546001600160a01b0319169055565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156104ba57504761052f565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561050057600080fd5b505afa158015610514573d6000803e3d6000fd5b505050506040513d602081101561052a57600080fd5b505190505b919050565b606860209081526000928352604080842090915290825290205481565b6105596105f1565b610598576040805162461bcd60e51b81526020600482018190526024820152600080516020611236833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b6033546001600160a01b031690565b6033546000906001600160a01b0316610608610c2d565b6001600160a01b031614905090565b600061067160696000846001600160a01b03166001600160a01b03168152602001908152602001600020546040518060600160405280603981526020016111fd603991396106648561048c565b919063ffffffff610cd216565b92915050565b600054610100900460ff16806106905750610690610d69565b8061069e575060005460ff16155b6106d95760405162461bcd60e51b815260040180806020018281038252602e815260200180611256602e913960400191505060405180910390fd5b600054610100900460ff16158015610704576000805460ff1961ff0019909116610100171660011790555b61070d82610d6f565b801561071f576000805461ff00191690555b5050565b61072b6105f1565b61076a576040805162461bcd60e51b81526020600482018190526024820152600080516020611236833981519152604482015290519081900360640190fd5b600081116107a95760405162461bcd60e51b81526004018080602001828103825260248152602001806111406024913960400191505060405180910390fd5b806107b383610617565b10156107f05760405162461bcd60e51b815260040180806020018281038252603381526020018061118a6033913960400191505060405180910390fd5b6001600160a01b03808416600090815260686020908152604080832093861683529290522054610826908263ffffffff610e6016565b6001600160a01b0380851660009081526068602090815260408083209387168352928152828220939093556069909252902054610869908263ffffffff610e6016565b6001600160a01b039092166000908152606960205260409020919091555050565b6066546001600160a01b031681565b6108a16105f1565b6108e0576040805162461bcd60e51b81526020600482018190526024820152600080516020611236833981519152604482015290519081900360640190fd5b6108e86105e2565b6001600160a01b0316816001600160a01b03161415801561091757506066546001600160a01b03828116911614155b610968576040805162461bcd60e51b815260206004820152601c60248201527f436c61696d61626c653a20696e76616c6964206e6577206f776e657200000000604482015290519081900360640190fd5b606680546001600160a01b0319166001600160a01b0392909216919091179055565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b6109aa6105f1565b6109e9576040805162461bcd60e51b81526020600482018190526024820152600080516020611236833981519152604482015290519081900360640190fd5b6001600160a01b03808516600090815260686020908152604080832093871683529290522054821115610a4d5760405162461bcd60e51b815260040180806020018281038252603381526020018061110d6033913960400191505060405180910390fd5b610a9d826040518060600160405280604081526020016111bd604091396001600160a01b038088166000908152606860209081526040808320938a1683529290522054919063ffffffff610cd216565b6001600160a01b03808616600090815260686020908152604080832093881683529281529082902092909255805160608101909152603d808252610b0c9285929190611284908301396001600160a01b038616600090815260696020526040902054919063ffffffff610cd216565b6001600160a01b03841660008181526069602052604090209190915573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610b7f576040516001600160a01b0382169083156108fc029084906000818181858888f19350505050158015610b79573d6000803e3d6000fd5b50610b99565b610b996001600160a01b038416828463ffffffff610ec116565b50505050565b6067805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610c255780601f10610bfa57610100808354040283529160200191610c25565b820191906000526020600020905b815481529060010190602001808311610c0857829003601f168201915b505050505081565b3390565b6001600160a01b038116610c765760405162461bcd60e51b81526004018080602001828103825260268152602001806111646026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115610d615760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d26578181015183820152602001610d0e565b50505050905090810190601f168015610d535780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b303b1590565b600054610100900460ff1680610d885750610d88610d69565b80610d96575060005460ff16155b610dd15760405162461bcd60e51b815260040180806020018281038252602e815260200180611256602e913960400191505060405180910390fd5b600054610100900460ff16158015610dfc576000805460ff1961ff0019909116610100171660011790555b603380546001600160a01b0319166001600160a01b0384811691909117918290556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3801561071f576000805461ff00191690555050565b600082820183811015610eba576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f13908490610f18565b505050565b610f2a826001600160a01b03166110d0565b610f7b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310610fb95780518252601f199092019160209182019101610f9a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461101b576040519150601f19603f3d011682016040523d82523d6000602084013e611020565b606091505b509150915081611077576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610b995780806020019051602081101561109357600080fd5b5051610b995760405162461bcd60e51b815260040180806020018281038252602a8152602001806112eb602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906111045750808214155b94935050505056fe4461726b6e6f64655061796d656e7453746f72653a20696e73756666696369656e74206461726b6e6f64652062616c616e63654461726b6e6f64655061796d656e7453746f72653a20696e76616c696420616d6f756e744f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734461726b6e6f64655061796d656e7453746f72653a20696e73756666696369656e7420636f6e74726163742062616c616e63654461726b6e6f64655061796d656e7453746f72653a20696e73756666696369656e74206461726b6e6f64652062616c616e636520666f72207472616e736665724461726b6e6f64655061796d656e7453746f72653a206c6f636b65642062616c616e63652065786365656420746f74616c2062616c616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65644461726b6e6f64655061796d656e7453746f72653a20696e73756666696369656e7420746f6b656e2062616c616e636520666f72207472616e73666572436c61696d61626c653a2063616c6c6572206973206e6f74207468652070656e64696e67206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820dfec9d54f706f989a869be49fc7d386617ee34c2358ca6fe1d8b7dbce0a9c0c464736f6c63430005100032436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65640000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000f6d61696e6e65742d393036386638300000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106100e85760003560e01c8063a0821be31161008a578063f2fde38b11610059578063f2fde38b146102df578063f7cdf47c14610312578063f9ce781314610327578063ffa1ad7414610370576100e8565b8063a0821be314610221578063c4d66de814610254578063d23b90a514610287578063e30c3978146102ca576100e8565b806370324b77116100c657806370324b7714610177578063715018a6146101b25780638da5cb5b146101c75780638f32d59b146101f8576100e8565b80630483a7f6146100ea5780634e71e0c81461012f5780636eacd39814610144575b005b3480156100f657600080fd5b5061011d6004803603602081101561010d57600080fd5b50356001600160a01b03166103fa565b60408051918252519081900360200190f35b34801561013b57600080fd5b506100e861040c565b34801561015057600080fd5b5061011d6004803603602081101561016757600080fd5b50356001600160a01b031661048c565b34801561018357600080fd5b5061011d6004803603604081101561019a57600080fd5b506001600160a01b0381358116916020013516610534565b3480156101be57600080fd5b506100e8610551565b3480156101d357600080fd5b506101dc6105e2565b604080516001600160a01b039092168252519081900360200190f35b34801561020457600080fd5b5061020d6105f1565b604080519115158252519081900360200190f35b34801561022d57600080fd5b5061011d6004803603602081101561024457600080fd5b50356001600160a01b0316610617565b34801561026057600080fd5b506100e86004803603602081101561027757600080fd5b50356001600160a01b0316610677565b34801561029357600080fd5b506100e8600480360360608110156102aa57600080fd5b506001600160a01b03813581169160208101359091169060400135610723565b3480156102d657600080fd5b506101dc61088a565b3480156102eb57600080fd5b506100e86004803603602081101561030257600080fd5b50356001600160a01b0316610899565b34801561031e57600080fd5b506101dc61098a565b34801561033357600080fd5b506100e86004803603608081101561034a57600080fd5b506001600160a01b038135811691602081013582169160408201359160600135166109a2565b34801561037c57600080fd5b50610385610b9f565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bf5781810151838201526020016103a7565b50505050905090810190601f1680156103ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60696020526000908152604090205481565b6066546001600160a01b0316610420610c2d565b6001600160a01b0316146104655760405162461bcd60e51b815260040180806020018281038252602a8152602001806112c1602a913960400191505060405180910390fd5b60665461047a906001600160a01b0316610c31565b606680546001600160a01b0319169055565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156104ba57504761052f565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561050057600080fd5b505afa158015610514573d6000803e3d6000fd5b505050506040513d602081101561052a57600080fd5b505190505b919050565b606860209081526000928352604080842090915290825290205481565b6105596105f1565b610598576040805162461bcd60e51b81526020600482018190526024820152600080516020611236833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b6033546001600160a01b031690565b6033546000906001600160a01b0316610608610c2d565b6001600160a01b031614905090565b600061067160696000846001600160a01b03166001600160a01b03168152602001908152602001600020546040518060600160405280603981526020016111fd603991396106648561048c565b919063ffffffff610cd216565b92915050565b600054610100900460ff16806106905750610690610d69565b8061069e575060005460ff16155b6106d95760405162461bcd60e51b815260040180806020018281038252602e815260200180611256602e913960400191505060405180910390fd5b600054610100900460ff16158015610704576000805460ff1961ff0019909116610100171660011790555b61070d82610d6f565b801561071f576000805461ff00191690555b5050565b61072b6105f1565b61076a576040805162461bcd60e51b81526020600482018190526024820152600080516020611236833981519152604482015290519081900360640190fd5b600081116107a95760405162461bcd60e51b81526004018080602001828103825260248152602001806111406024913960400191505060405180910390fd5b806107b383610617565b10156107f05760405162461bcd60e51b815260040180806020018281038252603381526020018061118a6033913960400191505060405180910390fd5b6001600160a01b03808416600090815260686020908152604080832093861683529290522054610826908263ffffffff610e6016565b6001600160a01b0380851660009081526068602090815260408083209387168352928152828220939093556069909252902054610869908263ffffffff610e6016565b6001600160a01b039092166000908152606960205260409020919091555050565b6066546001600160a01b031681565b6108a16105f1565b6108e0576040805162461bcd60e51b81526020600482018190526024820152600080516020611236833981519152604482015290519081900360640190fd5b6108e86105e2565b6001600160a01b0316816001600160a01b03161415801561091757506066546001600160a01b03828116911614155b610968576040805162461bcd60e51b815260206004820152601c60248201527f436c61696d61626c653a20696e76616c6964206e6577206f776e657200000000604482015290519081900360640190fd5b606680546001600160a01b0319166001600160a01b0392909216919091179055565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b6109aa6105f1565b6109e9576040805162461bcd60e51b81526020600482018190526024820152600080516020611236833981519152604482015290519081900360640190fd5b6001600160a01b03808516600090815260686020908152604080832093871683529290522054821115610a4d5760405162461bcd60e51b815260040180806020018281038252603381526020018061110d6033913960400191505060405180910390fd5b610a9d826040518060600160405280604081526020016111bd604091396001600160a01b038088166000908152606860209081526040808320938a1683529290522054919063ffffffff610cd216565b6001600160a01b03808616600090815260686020908152604080832093881683529281529082902092909255805160608101909152603d808252610b0c9285929190611284908301396001600160a01b038616600090815260696020526040902054919063ffffffff610cd216565b6001600160a01b03841660008181526069602052604090209190915573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610b7f576040516001600160a01b0382169083156108fc029084906000818181858888f19350505050158015610b79573d6000803e3d6000fd5b50610b99565b610b996001600160a01b038416828463ffffffff610ec116565b50505050565b6067805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610c255780601f10610bfa57610100808354040283529160200191610c25565b820191906000526020600020905b815481529060010190602001808311610c0857829003601f168201915b505050505081565b3390565b6001600160a01b038116610c765760405162461bcd60e51b81526004018080602001828103825260268152602001806111646026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115610d615760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d26578181015183820152602001610d0e565b50505050905090810190601f168015610d535780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b303b1590565b600054610100900460ff1680610d885750610d88610d69565b80610d96575060005460ff16155b610dd15760405162461bcd60e51b815260040180806020018281038252602e815260200180611256602e913960400191505060405180910390fd5b600054610100900460ff16158015610dfc576000805460ff1961ff0019909116610100171660011790555b603380546001600160a01b0319166001600160a01b0384811691909117918290556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3801561071f576000805461ff00191690555050565b600082820183811015610eba576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f13908490610f18565b505050565b610f2a826001600160a01b03166110d0565b610f7b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310610fb95780518252601f199092019160209182019101610f9a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461101b576040519150601f19603f3d011682016040523d82523d6000602084013e611020565b606091505b509150915081611077576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610b995780806020019051602081101561109357600080fd5b5051610b995760405162461bcd60e51b815260040180806020018281038252602a8152602001806112eb602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906111045750808214155b94935050505056fe4461726b6e6f64655061796d656e7453746f72653a20696e73756666696369656e74206461726b6e6f64652062616c616e63654461726b6e6f64655061796d656e7453746f72653a20696e76616c696420616d6f756e744f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734461726b6e6f64655061796d656e7453746f72653a20696e73756666696369656e7420636f6e74726163742062616c616e63654461726b6e6f64655061796d656e7453746f72653a20696e73756666696369656e74206461726b6e6f64652062616c616e636520666f72207472616e736665724461726b6e6f64655061796d656e7453746f72653a206c6f636b65642062616c616e63652065786365656420746f74616c2062616c616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65644461726b6e6f64655061796d656e7453746f72653a20696e73756666696369656e7420746f6b656e2062616c616e636520666f72207472616e73666572436c61696d61626c653a2063616c6c6572206973206e6f74207468652070656e64696e67206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820dfec9d54f706f989a869be49fc7d386617ee34c2358ca6fe1d8b7dbce0a9c0c464736f6c63430005100032

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000f6d61696e6e65742d393036386638300000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _VERSION (string): mainnet-9068f80

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [2] : 6d61696e6e65742d393036386638300000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

Smart contract to receive and distribute the fees coming from RenVM's issuance and burning of renBTC.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.