More Info
Private Name Tags
ContractCreator
Multichain Info
No addresses found
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DMGTokenForwarder
Compiler Version
v0.5.13+commit.5b0b510c
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-05-29 */ // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.5.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. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/ownership/Ownable.sol pragma solidity ^0.5.0; /** * @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. * * 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 { _owner = _msgSender(); emit OwnershipTransferred(address(0), _owner); } /** * @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(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _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 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 onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ 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); } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.5.5; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing a contract. * * IMPORTANT: It is unsafe to assume that an address for which this * function returns false is an externally-owned account (EOA) and not a * contract. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != 0x0 && codehash != accountHash); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.5.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ 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 { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length 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)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts/governance/dmg/DMGTokenForwarder.sol /* * Copyright 2020 DMM Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ pragma solidity ^0.5.0; contract DMGTokenForwarder is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; event Released(address indexed to, uint256 amount); event BeneficiaryChanged(address indexed oldBeneficiary, address indexed newBeneficiary); address public beneficiary; mapping(address => uint256) public tokenToReleasedAmountMap; modifier onlyBeneficiary { require(beneficiary == msg.sender, "DMGTokenForwarder: INVALID_BENEFICIARY"); _; } /** * @dev Creates a forwarding contract that vests its balance of any ERC20 token from the * _beneficiary. * @param _beneficiary address of the beneficiary from whom vested tokens are transferred */ constructor( address _beneficiary ) public { require(_beneficiary != address(0)); beneficiary = _beneficiary; } function setBeneficiary(address _beneficiary) public onlyBeneficiary { address oldBeneficiary = beneficiary; beneficiary = _beneficiary; emit BeneficiaryChanged(oldBeneficiary, _beneficiary); } /** * @notice Transfers vested tokens from this contract to the recipient. * @param _token ERC20 token which is being vested */ function release(address _to, address _token, uint _amount) public onlyBeneficiary { require( IERC20(_token).balanceOf(address(this)) >= _amount, "DMGTokenForwarder: INSUFFICIENT_BALANCE" ); tokenToReleasedAmountMap[_token] = tokenToReleasedAmountMap[_token].add(_amount); IERC20(_token).safeTransfer(_to, _amount); emit Released(_to, _amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldBeneficiary","type":"address"},{"indexed":true,"internalType":"address","name":"newBeneficiary","type":"address"}],"name":"BeneficiaryChanged","type":"event"},{"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":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Released","type":"event"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"release","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenToReleasedAmountMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610a26380380610a268339818101604052602081101561003357600080fd5b50516100466001600160e01b036100c616565b600080546001600160a01b0319166001600160a01b03928316178082556040519216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36001600160a01b0381166100a157600080fd5b600180546001600160a01b0319166001600160a01b03929092169190911790556100ca565b3390565b61094d806100d96000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638bfb07c91161005b5780638bfb07c9146101195780638da5cb5b1461014f5780638f32d59b14610157578063f2fde38b1461017357610088565b80631c31f7101461008d57806338af3eed146100b557806346fc2467146100d9578063715018a614610111575b600080fd5b6100b3600480360360208110156100a357600080fd5b50356001600160a01b0316610199565b005b6100bd610234565b604080516001600160a01b039092168252519081900360200190f35b6100ff600480360360208110156100ef57600080fd5b50356001600160a01b0316610243565b60408051918252519081900360200190f35b6100b3610255565b6100b36004803603606081101561012f57600080fd5b506001600160a01b038135811691602081013590911690604001356102f8565b6100bd61048d565b61015f61049c565b604080519115158252519081900360200190f35b6100b36004803603602081101561018957600080fd5b50356001600160a01b03166104c0565b6001546001600160a01b031633146101e25760405162461bcd60e51b815260040180806020018281038252602681526020018061087c6026913960400191505060405180910390fd5b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f768099735d1c322a05a5b9d7b76d99682a1833d3f7055e5ede25e0f2eeaa8c6d90600090a35050565b6001546001600160a01b031681565b60026020526000908152604090205481565b61025d61049c565b6102ae576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001546001600160a01b031633146103415760405162461bcd60e51b815260040180806020018281038252602681526020018061087c6026913960400191505060405180910390fd5b604080516370a0823160e01b8152306004820152905182916001600160a01b038516916370a0823191602480820192602092909190829003018186803b15801561038a57600080fd5b505afa15801561039e573d6000803e3d6000fd5b505050506040513d60208110156103b457600080fd5b505110156103f35760405162461bcd60e51b81526004018080602001828103825260278152602001806108c86027913960400191505060405180910390fd5b6001600160a01b03821660009081526002602052604090205461041c908263ffffffff61052516565b6001600160a01b03831660008181526002602052604090209190915561044990848363ffffffff61058616565b6040805182815290516001600160a01b038516917fb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e919081900360200190a2505050565b6000546001600160a01b031690565b600080546001600160a01b03166104b16105dd565b6001600160a01b031614905090565b6104c861049c565b610519576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610522816105e1565b50565b60008282018381101561057f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105d8908490610681565b505050565b3390565b6001600160a01b0381166106265760405162461bcd60e51b81526004018080602001828103825260268152602001806108a26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b610693826001600160a01b031661083f565b6106e4576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106107225780518252601f199092019160209182019101610703565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610784576040519150601f19603f3d011682016040523d82523d6000602084013e610789565b606091505b5091509150816107e0576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610839578080602001905160208110156107fc57600080fd5b50516108395760405162461bcd60e51b815260040180806020018281038252602a8152602001806108ef602a913960400191505060405180910390fd5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906108735750808214155b94935050505056fe444d47546f6b656e466f727761726465723a20494e56414c49445f42454e45464943494152594f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373444d47546f6b656e466f727761726465723a20494e53554646494349454e545f42414c414e43455361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820efa93d2b57140caef93c060158fcc4f94fa4bd5c0cda7c7f0e18addc05e7ff7664736f6c634300050d0032000000000000000000000000dd7680b6b2eec193ce3ece7129708ee12531bccf
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638bfb07c91161005b5780638bfb07c9146101195780638da5cb5b1461014f5780638f32d59b14610157578063f2fde38b1461017357610088565b80631c31f7101461008d57806338af3eed146100b557806346fc2467146100d9578063715018a614610111575b600080fd5b6100b3600480360360208110156100a357600080fd5b50356001600160a01b0316610199565b005b6100bd610234565b604080516001600160a01b039092168252519081900360200190f35b6100ff600480360360208110156100ef57600080fd5b50356001600160a01b0316610243565b60408051918252519081900360200190f35b6100b3610255565b6100b36004803603606081101561012f57600080fd5b506001600160a01b038135811691602081013590911690604001356102f8565b6100bd61048d565b61015f61049c565b604080519115158252519081900360200190f35b6100b36004803603602081101561018957600080fd5b50356001600160a01b03166104c0565b6001546001600160a01b031633146101e25760405162461bcd60e51b815260040180806020018281038252602681526020018061087c6026913960400191505060405180910390fd5b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f768099735d1c322a05a5b9d7b76d99682a1833d3f7055e5ede25e0f2eeaa8c6d90600090a35050565b6001546001600160a01b031681565b60026020526000908152604090205481565b61025d61049c565b6102ae576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001546001600160a01b031633146103415760405162461bcd60e51b815260040180806020018281038252602681526020018061087c6026913960400191505060405180910390fd5b604080516370a0823160e01b8152306004820152905182916001600160a01b038516916370a0823191602480820192602092909190829003018186803b15801561038a57600080fd5b505afa15801561039e573d6000803e3d6000fd5b505050506040513d60208110156103b457600080fd5b505110156103f35760405162461bcd60e51b81526004018080602001828103825260278152602001806108c86027913960400191505060405180910390fd5b6001600160a01b03821660009081526002602052604090205461041c908263ffffffff61052516565b6001600160a01b03831660008181526002602052604090209190915561044990848363ffffffff61058616565b6040805182815290516001600160a01b038516917fb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e919081900360200190a2505050565b6000546001600160a01b031690565b600080546001600160a01b03166104b16105dd565b6001600160a01b031614905090565b6104c861049c565b610519576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610522816105e1565b50565b60008282018381101561057f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105d8908490610681565b505050565b3390565b6001600160a01b0381166106265760405162461bcd60e51b81526004018080602001828103825260268152602001806108a26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b610693826001600160a01b031661083f565b6106e4576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106107225780518252601f199092019160209182019101610703565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610784576040519150601f19603f3d011682016040523d82523d6000602084013e610789565b606091505b5091509150816107e0576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610839578080602001905160208110156107fc57600080fd5b50516108395760405162461bcd60e51b815260040180806020018281038252602a8152602001806108ef602a913960400191505060405180910390fd5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906108735750808214155b94935050505056fe444d47546f6b656e466f727761726465723a20494e56414c49445f42454e45464943494152594f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373444d47546f6b656e466f727761726465723a20494e53554646494349454e545f42414c414e43455361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820efa93d2b57140caef93c060158fcc4f94fa4bd5c0cda7c7f0e18addc05e7ff7664736f6c634300050d0032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000dd7680b6b2eec193ce3ece7129708ee12531bccf
-----Decoded View---------------
Arg [0] : _beneficiary (address): 0xdd7680B6B2EeC193ce3ECe7129708EE12531BCcF
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000dd7680b6b2eec193ce3ece7129708ee12531bccf
Deployed Bytecode Sourcemap
19711:1716:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19711:1716:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20618:225;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20618:225:0;-1:-1:-1;;;;;20618:225:0;;:::i;:::-;;19980:26;;;:::i;:::-;;;;-1:-1:-1;;;;;19980:26:0;;;;;;;;;;;;;;20015:59;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20015:59:0;-1:-1:-1;;;;;20015:59:0;;:::i;:::-;;;;;;;;;;;;;;;;8430:140;;;:::i;21002:422::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;21002:422:0;;;;;;;;;;;;;;;;;:::i;7619:79::-;;;:::i;7985:94::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;8725:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8725:109:0;-1:-1:-1;;;;;8725:109:0;;:::i;20618:225::-;20127:11;;-1:-1:-1;;;;;20127:11:0;20142:10;20127:25;20119:76;;;;-1:-1:-1;;;20119:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20723:11;;;-1:-1:-1;;;;;20745:26:0;;;-1:-1:-1;;;;;;20745:26:0;;;;;;;20787:48;;20723:11;;;20745:26;20723:11;;20787:48;;20698:22;;20787:48;20206:1;20618:225;:::o;19980:26::-;;;-1:-1:-1;;;;;19980:26:0;;:::o;20015:59::-;;;;;;;;;;;;;:::o;8430:140::-;7831:9;:7;:9::i;:::-;7823:54;;;;;-1:-1:-1;;;7823:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8529:1;8513:6;;8492:40;;-1:-1:-1;;;;;8513:6:0;;;;8492:40;;8529:1;;8492:40;8560:1;8543:19;;-1:-1:-1;;;;;;8543:19:0;;;8430:140::o;21002:422::-;20127:11;;-1:-1:-1;;;;;20127:11:0;20142:10;20127:25;20119:76;;;;-1:-1:-1;;;20119:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21118:39;;;-1:-1:-1;;;21118:39:0;;21151:4;21118:39;;;;;;21161:7;;-1:-1:-1;;;;;21118:24:0;;;;;:39;;;;;;;;;;;;;;;:24;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;21118:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;21118:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21118:39:0;:50;;21096:139;;;;-1:-1:-1;;;21096:139:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21281:32:0;;;;;;:24;:32;;;;;;:45;;21318:7;21281:45;:36;:45;:::i;:::-;-1:-1:-1;;;;;21246:32:0;;;;;;:24;:32;;;;;:80;;;;21337:41;;21365:3;21370:7;21337:41;:27;:41;:::i;:::-;21394:22;;;;;;;;-1:-1:-1;;;;;21394:22:0;;;;;;;;;;;;;21002:422;;;:::o;7619:79::-;7657:7;7684:6;-1:-1:-1;;;;;7684:6:0;7619:79;:::o;7985:94::-;8025:4;8065:6;;-1:-1:-1;;;;;8065:6:0;8049:12;:10;:12::i;:::-;-1:-1:-1;;;;;8049:22:0;;8042:29;;7985:94;:::o;8725:109::-;7831:9;:7;:9::i;:::-;7823:54;;;;;-1:-1:-1;;;7823:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8798:28;8817:8;8798:18;:28::i;:::-;8725:109;:::o;913:181::-;971:7;1003:5;;;1027:6;;;;1019:46;;;;;-1:-1:-1;;;1019:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1085:1;913:181;-1:-1:-1;;;913:181:0:o;15846:176::-;15955:58;;;-1:-1:-1;;;;;15955:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;15955:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;15929:85:0;;15948:5;;15929:18;:85::i;:::-;15846:176;;;:::o;6368:98::-;6448:10;6368:98;:::o;8940:229::-;-1:-1:-1;;;;;9014:22:0;;9006:73;;;;-1:-1:-1;;;9006:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9116:6;;;9095:38;;-1:-1:-1;;;;;9095:38:0;;;;9116:6;;;9095:38;;;9144:6;:17;;-1:-1:-1;;;;;;9144:17:0;-1:-1:-1;;;;;9144:17:0;;;;;;;;;;8940:229::o;17885:1114::-;18489:27;18497:5;-1:-1:-1;;;;;18489:25:0;;:27::i;:::-;18481:71;;;;;-1:-1:-1;;;18481:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18626:12;18640:23;18675:5;-1:-1:-1;;;;;18667:19:0;18687:4;18667:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;18667:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;18625:67:0;;;;18711:7;18703:52;;;;;-1:-1:-1;;;18703:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18772:17;;:21;18768:224;;18914:10;18903:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18903:30:0;18895:85;;;;-1:-1:-1;;;18895:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17885:1114;;;;:::o;12684:810::-;12744:4;13403:20;;13246:66;13443:15;;;;;:42;;;13474:11;13462:8;:23;;13443:42;13435:51;12684:810;-1:-1:-1;;;;12684:810:0:o
Swarm Source
bzzr://efa93d2b57140caef93c060158fcc4f94fa4bd5c0cda7c7f0e18addc05e7ff76
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.