More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
12133286 | 1431 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xed1715FD...8E9b3fC80 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Guild
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract Guild { IERC20 public token; address public stakingContract; constructor(IERC20 _token, address _stakingContract) public { token = _token; stakingContract = _stakingContract; } function withdrawTo(address _recipient, uint256 _amount) external { require(msg.sender == stakingContract, "Guild.withdrawTo: Only staking contract"); token.transfer(_recipient, _amount); } function tokenBalance() external returns (uint256) { return token.balanceOf(address(this)); } }
// 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); }
{ "metadata": { "useLiteralContent": false }, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address","name":"_stakingContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063205c2878146100515780639e1a4d191461007f578063ee99205c14610099578063fc0c546a146100bd575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b0381351690602001356100c5565b005b610087610197565b60408051918252519081900360200190f35b6100a1610214565b604080516001600160a01b039092168252519081900360200190f35b6100a1610223565b6001546001600160a01b0316331461010e5760405162461bcd60e51b81526004018080602001828103825260278152602001806102336027913960400191505060405180910390fd5b600080546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169263a9059cbb92604480820193602093909283900390910190829087803b15801561016757600080fd5b505af115801561017b573d6000803e3d6000fd5b505050506040513d602081101561019157600080fd5b50505050565b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156101e357600080fd5b505afa1580156101f7573d6000803e3d6000fd5b505050506040513d602081101561020d57600080fd5b5051905090565b6001546001600160a01b031681565b6000546001600160a01b03168156fe4775696c642e7769746864726177546f3a204f6e6c79207374616b696e6720636f6e7472616374a2646970667358221220e5e76c6b6c1eae42695da706efda884d84b0d8d8ca88c955c93ae7fee631138064736f6c634300060c0033
Deployed Bytecode Sourcemap
116:547:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;341:209;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;341:209:1;;;;;;;;:::i;:::-;;556:105;;;:::i;:::-;;;;;;;;;;;;;;;;163:30;;;:::i;:::-;;;;-1:-1:-1;;;;;163:30:1;;;;;;;;;;;;;;137:19;;;:::i;341:209::-;439:15;;-1:-1:-1;;;;;439:15:1;425:10;:29;417:81;;;;-1:-1:-1;;;417:81:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;508:5;;;:35;;;-1:-1:-1;;;508:35:1;;-1:-1:-1;;;;;508:35:1;;;;;;;;;;;;;;;:5;;;;;:14;;:35;;;;;;;;;;;;;;;;;;:5;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;341:209:1:o;556:105::-;598:7;624:5;;:30;;;-1:-1:-1;;;624:30:1;;648:4;624:30;;;;;;-1:-1:-1;;;;;624:5:1;;;;:15;;:30;;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;624:30:1;;-1:-1:-1;556:105:1;:::o;163:30::-;;;-1:-1:-1;;;;;163:30:1;;:::o;137:19::-;;;-1:-1:-1;;;;;137:19:1;;:::o
Swarm Source
ipfs://e5e76c6b6c1eae42695da706efda884d84b0d8d8ca88c955c93ae7fee6311380
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.