Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 19 from a total of 19 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 16327097 | 836 days ago | IN | 0 ETH | 0.00085302 | ||||
Set Allowance | 16278666 | 843 days ago | IN | 0 ETH | 0.00086569 | ||||
Set Allowance | 16278664 | 843 days ago | IN | 0 ETH | 0.00086906 | ||||
Set Allowance | 15478141 | 956 days ago | IN | 0 ETH | 0.00107932 | ||||
Set Allowance | 15476515 | 956 days ago | IN | 0 ETH | 0.00039735 | ||||
Set Allowance | 14966927 | 1038 days ago | IN | 0 ETH | 0.00444344 | ||||
Set Allowance | 14780464 | 1069 days ago | IN | 0 ETH | 0.00135377 | ||||
Set Allowance | 14569782 | 1102 days ago | IN | 0 ETH | 0.00222172 | ||||
Set Allowance | 14178165 | 1163 days ago | IN | 0 ETH | 0.00259742 | ||||
Set Allowance | 13815778 | 1219 days ago | IN | 0 ETH | 0.00308985 | ||||
Set Allowance | 13745296 | 1230 days ago | IN | 0 ETH | 0.00334277 | ||||
Set Allowance | 13582643 | 1256 days ago | IN | 0 ETH | 0.00515703 | ||||
Set Allowance | 13555758 | 1260 days ago | IN | 0 ETH | 0.00600393 | ||||
Set Allowance | 13555705 | 1260 days ago | IN | 0 ETH | 0.00390014 | ||||
Set Allowance | 13504888 | 1268 days ago | IN | 0 ETH | 0.00666516 | ||||
Set Allowance | 13504881 | 1268 days ago | IN | 0 ETH | 0.00666516 | ||||
Set Allowance | 13504867 | 1268 days ago | IN | 0 ETH | 0.00666516 | ||||
Set Allowance | 13504862 | 1268 days ago | IN | 0 ETH | 0.00666372 | ||||
Set Allowance | 13504845 | 1268 days ago | IN | 0 ETH | 0.00666372 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
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)
pragma solidity ^0.6.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract CommunityVault is Ownable { IERC20 private _stakeborgToken; constructor (address stakeborgToken) public { _stakeborgToken = IERC20(stakeborgToken); } event SetAllowance(address indexed caller, address indexed spender, uint256 amount); function setAllowance(address spender, uint amount) public onlyOwner { _stakeborgToken.approve(spender, amount); emit SetAllowance(msg.sender, spender, amount); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/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. */ abstract 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 virtual 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 <0.8.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 <0.8.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; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"stakeborgToken","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"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516105403803806105408339818101604052602081101561003357600080fd5b5051600061003f6100ae565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100b2565b3390565b61047f806100c16000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063310ec4a714610051578063715018a61461007f5780638da5cb5b14610087578063f2fde38b146100ab575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b0381351690602001356100d1565b005b61007d610224565b61008f6102ef565b604080516001600160a01b039092168252519081900360200190f35b61007d600480360360208110156100c157600080fd5b50356001600160a01b03166102fe565b6100d961041f565b6001600160a01b03166100ea6102ef565b6001600160a01b031614610145576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600154604080517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018590529151919092169163095ea7b39160448083019260209291908290030181600087803b1580156101b457600080fd5b505af11580156101c8573d6000803e3d6000fd5b505050506040513d60208110156101de57600080fd5b50506040805182815290516001600160a01b0384169133917f3c07380f6fcae3bac39771c60e5c680334073911f2176b65f1d6925ba0badcdf9181900360200190a35050565b61022c61041f565b6001600160a01b031661023d6102ef565b6001600160a01b031614610298576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6000546001600160a01b031690565b61030661041f565b6001600160a01b03166103176102ef565b6001600160a01b031614610372576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166103b75760405162461bcd60e51b81526004018080602001828103825260268152602001806104246026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a26469706673582212207a057c896623949087d7cc1d987c80ad5c732823586489de5ea4fc00f273c4ae64736f6c634300060c0033000000000000000000000000da0c94c73d127ee191955fb46bacd7ff999b2bcd
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063310ec4a714610051578063715018a61461007f5780638da5cb5b14610087578063f2fde38b146100ab575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b0381351690602001356100d1565b005b61007d610224565b61008f6102ef565b604080516001600160a01b039092168252519081900360200190f35b61007d600480360360208110156100c157600080fd5b50356001600160a01b03166102fe565b6100d961041f565b6001600160a01b03166100ea6102ef565b6001600160a01b031614610145576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600154604080517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018590529151919092169163095ea7b39160448083019260209291908290030181600087803b1580156101b457600080fd5b505af11580156101c8573d6000803e3d6000fd5b505050506040513d60208110156101de57600080fd5b50506040805182815290516001600160a01b0384169133917f3c07380f6fcae3bac39771c60e5c680334073911f2176b65f1d6925ba0badcdf9181900360200190a35050565b61022c61041f565b6001600160a01b031661023d6102ef565b6001600160a01b031614610298576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6000546001600160a01b031690565b61030661041f565b6001600160a01b03166103176102ef565b6001600160a01b031614610372576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166103b75760405162461bcd60e51b81526004018080602001828103825260268152602001806104246026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a26469706673582212207a057c896623949087d7cc1d987c80ad5c732823586489de5ea4fc00f273c4ae64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000da0c94c73d127ee191955fb46bacd7ff999b2bcd
-----Decoded View---------------
Arg [0] : stakeborgToken (address): 0xDA0c94c73D127eE191955FB46bACd7FF999b2bcd
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000da0c94c73d127ee191955fb46bacd7ff999b2bcd
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.002652 | 476,913.0892 | $1,264.89 |
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.