ETH Price: $2,130.62 (+2.93%)
Gas: 0.71 Gwei

Contract

0xe0BB6c11FC2caC863C4ebD3d6e8d7B1CdA3B6060
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Allowance136686942021-11-23 4:19:301571 days ago1637641170IN
0xe0BB6c11...CdA3B6060
0 ETH0.00508174132.73120276
Set Allowance136686862021-11-23 4:17:511571 days ago1637641071IN
0xe0BB6c11...CdA3B6060
0 ETH0.00508174132.73120276
Set Allowance136686822021-11-23 4:16:581571 days ago1637641018IN
0xe0BB6c11...CdA3B6060
0 ETH0.00508174132.73120276
Set Allowance135788692021-11-09 0:06:291585 days ago1636416389IN
0xe0BB6c11...CdA3B6060
0 ETH0.00863786225.61407064
Set Allowance135788652021-11-09 0:05:101585 days ago1636416310IN
0xe0BB6c11...CdA3B6060
0 ETH0.00863786225.61407064
Set Allowance135788572021-11-09 0:04:011585 days ago1636416241IN
0xe0BB6c11...CdA3B6060
0 ETH0.00863786225.61407064
Set Allowance135788392021-11-08 23:59:211585 days ago1636415961IN
0xe0BB6c11...CdA3B6060
0 ETH0.00944315246.64780848
Set Allowance135788392021-11-08 23:59:211585 days ago1636415961IN
0xe0BB6c11...CdA3B6060
0 ETH0.00944315246.64780848
Set Allowance135788392021-11-08 23:59:211585 days ago1636415961IN
0xe0BB6c11...CdA3B6060
0 ETH0.00944315246.64780848
Set Allowance130936192021-08-25 8:58:101661 days ago1629881890IN
0xe0BB6c11...CdA3B6060
0 ETH0.0030904480.74535562
Set Allowance130936172021-08-25 8:57:521661 days ago1629881872IN
0xe0BB6c11...CdA3B6060
0 ETH0.0030914180.74535562
Set Allowance130936112021-08-25 8:56:161661 days ago1629881776IN
0xe0BB6c11...CdA3B6060
0 ETH0.0030914180.74535562
Set Allowance129011082021-07-26 9:41:031691 days ago1627292463IN
0xe0BB6c11...CdA3B6060
0 ETH0.0006172816.12300072
Set Allowance129011062021-07-26 9:40:381691 days ago1627292438IN
0xe0BB6c11...CdA3B6060
0 ETH0.0006172816.12300072
Set Allowance129010992021-07-26 9:39:411691 days ago1627292381IN
0xe0BB6c11...CdA3B6060
0 ETH0.0006172816.12300072
Set Allowance127791312021-07-07 8:09:131710 days ago1625645353IN
0xe0BB6c11...CdA3B6060
0 ETH0.002103338.00000145
Set Allowance127791312021-07-07 8:09:131710 days ago1625645353IN
0xe0BB6c11...CdA3B6060
0 ETH0.002103338.00000145
Set Allowance127791282021-07-07 8:08:191710 days ago1625645299IN
0xe0BB6c11...CdA3B6060
0 ETH0.002103338.00000145

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x918ea5c9...4D623f380
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
CommunityVault

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.6.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract CommunityVault is Ownable {

    IERC20 private _bond;

    constructor (address bond) public {
        _bond = IERC20(bond);
    }

    event SetAllowance(address indexed caller, address indexed spender, uint256 amount);

    function setAllowance(address spender, uint amount) public onlyOwner {
        _bond.approve(spender, amount);

        emit SetAllowance(msg.sender, spender, amount);
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "../GSN/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: 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
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"bond","type":"address"}],"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SetAllowance","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x608060405234801561001057600080fd5b506040516105223803806105228339818101604052602081101561003357600080fd5b5051600061003f6100ae565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100b2565b3390565b610461806100c16000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063310ec4a714610051578063715018a61461007f5780638da5cb5b14610087578063f2fde38b146100ab575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b0381351690602001356100d1565b005b61007d61021a565b61008f6102db565b604080516001600160a01b039092168252519081900360200190f35b61007d600480360360208110156100c157600080fd5b50356001600160a01b03166102ea565b6100d9610401565b6000546001600160a01b0390811691161461013b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600154604080517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018590529151919092169163095ea7b39160448083019260209291908290030181600087803b1580156101aa57600080fd5b505af11580156101be573d6000803e3d6000fd5b505050506040513d60208110156101d457600080fd5b50506040805182815290516001600160a01b0384169133917f3c07380f6fcae3bac39771c60e5c680334073911f2176b65f1d6925ba0badcdf9181900360200190a35050565b610222610401565b6000546001600160a01b03908116911614610284576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6000546001600160a01b031690565b6102f2610401565b6000546001600160a01b03908116911614610354576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166103995760405162461bcd60e51b81526004018080602001828103825260268152602001806104066026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220f1ae0e14c1dc487bc606a85e7c0314e7667ae39366bb16b9a8cf2abcd6bc635b64736f6c634300060c003300000000000000000000000047da5456bc2e1ce391b645ce80f2e97192e4976a

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063310ec4a714610051578063715018a61461007f5780638da5cb5b14610087578063f2fde38b146100ab575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b0381351690602001356100d1565b005b61007d61021a565b61008f6102db565b604080516001600160a01b039092168252519081900360200190f35b61007d600480360360208110156100c157600080fd5b50356001600160a01b03166102ea565b6100d9610401565b6000546001600160a01b0390811691161461013b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600154604080517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018590529151919092169163095ea7b39160448083019260209291908290030181600087803b1580156101aa57600080fd5b505af11580156101be573d6000803e3d6000fd5b505050506040513d60208110156101d457600080fd5b50506040805182815290516001600160a01b0384169133917f3c07380f6fcae3bac39771c60e5c680334073911f2176b65f1d6925ba0badcdf9181900360200190a35050565b610222610401565b6000546001600160a01b03908116911614610284576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6000546001600160a01b031690565b6102f2610401565b6000546001600160a01b03908116911614610354576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166103995760405162461bcd60e51b81526004018080602001828103825260268152602001806104066026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220f1ae0e14c1dc487bc606a85e7c0314e7667ae39366bb16b9a8cf2abcd6bc635b64736f6c634300060c0033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.