More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 396 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Transfer Operato... | 12611273 | 1125 days ago | IN | 0 ETH | 0.00033652 | ||||
Withdraw | 12611263 | 1125 days ago | IN | 0 ETH | 0.0006706 | ||||
Withdraw | 12611240 | 1125 days ago | IN | 0 ETH | 0.00060952 | ||||
Transfer Operato... | 12611229 | 1125 days ago | IN | 0 ETH | 0.00036697 | ||||
Set Pool | 12440553 | 1152 days ago | IN | 0 ETH | 0.00468585 | ||||
Set Pool | 12440487 | 1152 days ago | IN | 0 ETH | 0.00744794 | ||||
Set Pool | 12440487 | 1152 days ago | IN | 0 ETH | 0.00488284 | ||||
Set Pool | 12440487 | 1152 days ago | IN | 0 ETH | 0.00536515 | ||||
Transfer Ownersh... | 12420615 | 1155 days ago | IN | 0 ETH | 0.01151351 | ||||
Add Pool | 12368527 | 1163 days ago | IN | 0 ETH | 0.0149945 | ||||
Add Pool | 12368183 | 1163 days ago | IN | 0 ETH | 0.00930693 | ||||
Add Pool | 12368183 | 1163 days ago | IN | 0 ETH | 0.00930175 | ||||
Set Weight Feede... | 12312342 | 1172 days ago | IN | 0 ETH | 0.0017346 | ||||
Set Pool | 12312342 | 1172 days ago | IN | 0 ETH | 0.00188938 | ||||
Set Pool | 12312340 | 1172 days ago | IN | 0 ETH | 0.00188938 | ||||
Set Weight Feede... | 12312333 | 1172 days ago | IN | 0 ETH | 0.00179724 | ||||
Add Pool | 12312331 | 1172 days ago | IN | 0 ETH | 0.00881733 | ||||
Add Pool | 12312329 | 1172 days ago | IN | 0 ETH | 0.00820665 | ||||
Set Weight Feede... | 12312217 | 1172 days ago | IN | 0 ETH | 0.0016107 | ||||
Set Pool | 12312215 | 1172 days ago | IN | 0 ETH | 0.00382283 | ||||
Set Pool | 12312215 | 1172 days ago | IN | 0 ETH | 0.00382283 | ||||
Set Weight Feede... | 12312206 | 1172 days ago | IN | 0 ETH | 0.00179724 | ||||
Add Pool | 12311997 | 1172 days ago | IN | 0 ETH | 0.00891831 | ||||
Add Pool | 12311996 | 1172 days ago | IN | 0 ETH | 0.00749377 | ||||
Set Weight Feede... | 12311808 | 1172 days ago | IN | 0 ETH | 0.00207532 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PoolStore
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.8.0; import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol'; import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import {SafeERC20} from '@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; import {Operator} from '../access/Operator.sol'; interface IPoolStore { /* ================= EVENTS ================= */ event Deposit( address indexed operator, address indexed owner, uint256 indexed pid, uint256 amount ); event Withdraw( address indexed operator, address indexed owner, uint256 indexed pid, uint256 amount ); /* ================= CALLS ================= */ // common function totalWeight() external view returns (uint256); function poolLength() external view returns (uint256); // index function poolIdsOf(address _token) external view returns (uint256[] memory); // pool info function nameOf(uint256 _pid) external view returns (string memory); function tokenOf(uint256 _pid) external view returns (address); function weightOf(uint256 _pid) external view returns (uint256); function totalSupply(uint256 _pid) external view returns (uint256); function balanceOf(uint256 _pid, address _owner) external view returns (uint256); /* ================= TXNS ================= */ function deposit( uint256 _pid, address _owner, uint256 _amount ) external; function withdraw( uint256 _pid, address _owner, uint256 _amount ) external; function emergencyWithdraw(uint256 _pid) external; } interface IPoolStoreGov { /* ================= EVENTS ================= */ event EmergencyReported(address indexed reporter); event EmergencyResolved(address indexed resolver); event WeightFeederChanged( address indexed operator, address indexed oldFeeder, address indexed newFeeder ); event PoolAdded( address indexed operator, uint256 indexed pid, string name, address token, uint256 weight ); event PoolWeightChanged( address indexed operator, uint256 indexed pid, uint256 from, uint256 to ); event PoolNameChanged( address indexed operator, uint256 indexed pid, string from, string to ); /* ================= TXNS ================= */ // emergency function reportEmergency() external; function resolveEmergency() external; // feeder function setWeightFeeder(address _newFeeder) external; // pool setting function addPool( string memory _name, IERC20 _token, uint256 _weight ) external; function setPool(uint256 _pid, uint256 _weight) external; function setPool(uint256 _pid, string memory _name) external; } contract PoolStore is IPoolStore, IPoolStoreGov, Operator { using SafeMath for uint256; using SafeERC20 for IERC20; /* ================= DATA STRUCTURE ================= */ struct Pool { string name; IERC20 token; uint256 weight; uint256 totalSupply; } /* ================= STATES ================= */ uint256 public override totalWeight = 0; Pool[] public pools; mapping(uint256 => mapping(address => uint256)) balances; mapping(address => uint256[]) public indexByToken; bool public emergency = false; address public weightFeeder; constructor() Operator() { weightFeeder = _msgSender(); } /* ================= GOV - OWNER ONLY ================= */ /** * @dev CAUTION: DO NOT USE IN NORMAL SITUATION * @notice Enable emergency withdraw */ function reportEmergency() public override onlyOwner { emergency = true; emit EmergencyReported(_msgSender()); } /** * @dev CAUTION: DO NOT USE IN NORMAL SITUATION * @notice Disable emergency withdraw */ function resolveEmergency() public override onlyOwner { emergency = false; emit EmergencyResolved(_msgSender()); } /* * @param _newFeeder weight feeder address to change */ function setWeightFeeder(address _newFeeder) public override onlyOwner { address oldFeeder = weightFeeder; weightFeeder = _newFeeder; emit WeightFeederChanged(_msgSender(), oldFeeder, _newFeeder); } /** * @param _token pool token * @param _weight pool weight */ function addPool( string memory _name, IERC20 _token, uint256 _weight ) public override onlyOwner { totalWeight = totalWeight.add(_weight); uint256 index = pools.length; indexByToken[address(_token)].push(index); pools.push( Pool({name: _name, token: _token, weight: _weight, totalSupply: 0}) ); emit PoolAdded(_msgSender(), index, _name, address(_token), _weight); } /** * @param _pid pool id * @param _weight target pool weight */ function setPool(uint256 _pid, uint256 _weight) public override onlyWeightFeeder checkPoolId(_pid) { Pool memory pool = pools[_pid]; uint256 oldWeight = pool.weight; totalWeight = totalWeight.add(_weight).sub(pool.weight); pool.weight = _weight; pools[_pid] = pool; emit PoolWeightChanged(_msgSender(), _pid, oldWeight, _weight); } /** * @param _pid pool id * @param _name name of pool */ function setPool(uint256 _pid, string memory _name) public override checkPoolId(_pid) onlyOwner { string memory oldName = pools[_pid].name; pools[_pid].name = _name; emit PoolNameChanged(_msgSender(), _pid, oldName, _name); } /* ================= MODIFIER ================= */ modifier onlyWeightFeeder { require(_msgSender() == weightFeeder, 'PoolStore: unauthorized'); _; } modifier checkPoolId(uint256 _pid) { require(_pid <= pools.length, 'PoolStore: invalid pid'); _; } /* ================= CALLS - ANYONE ================= */ /** * @return total pool length */ function poolLength() public view override returns (uint256) { return pools.length; } /** * @param _token pool token address * @return pool id */ function poolIdsOf(address _token) public view override returns (uint256[] memory) { return indexByToken[_token]; } /** * @param _pid pool id * @return name of pool */ function nameOf(uint256 _pid) public view override checkPoolId(_pid) returns (string memory) { return pools[_pid].name; } /** * @param _pid pool id * @return pool token */ function tokenOf(uint256 _pid) public view override checkPoolId(_pid) returns (address) { return address(pools[_pid].token); } /** * @param _pid pool id * @return pool weight */ function weightOf(uint256 _pid) public view override checkPoolId(_pid) returns (uint256) { return pools[_pid].weight; } /** * @param _pid pool id * @return total staked token amount */ function totalSupply(uint256 _pid) public view override checkPoolId(_pid) returns (uint256) { return pools[_pid].totalSupply; } /** * @param _pid pool id * @param _sender staker address * @return staked amount of user */ function balanceOf(uint256 _pid, address _sender) public view override checkPoolId(_pid) returns (uint256) { return balances[_pid][_sender]; } /* ================= TXNS - OPERATOR ONLY ================= */ /** * @param _pid pool id * @param _owner stake address * @param _amount stake amount */ function deposit( uint256 _pid, address _owner, uint256 _amount ) public override checkPoolId(_pid) onlyOperator { pools[_pid].totalSupply = pools[_pid].totalSupply.add(_amount); balances[_pid][_owner] = balances[_pid][_owner].add(_amount); IERC20(tokenOf(_pid)).safeTransferFrom( _msgSender(), address(this), _amount ); emit Deposit(_msgSender(), _owner, _pid, _amount); } function _withdraw( uint256 _pid, address _owner, uint256 _amount ) internal { pools[_pid].totalSupply = pools[_pid].totalSupply.sub(_amount); balances[_pid][_owner] = balances[_pid][_owner].sub(_amount); IERC20(tokenOf(_pid)).safeTransfer(_msgSender(), _amount); emit Withdraw(_msgSender(), _owner, _pid, _amount); } /** * @param _pid pool id * @param _owner stake address * @param _amount stake amount */ function withdraw( uint256 _pid, address _owner, uint256 _amount ) public override checkPoolId(_pid) onlyOperator { _withdraw(_pid, _owner, _amount); } /** * @notice Anyone can withdraw its balance even if is not the operator * @param _pid pool id */ function emergencyWithdraw(uint256 _pid) public override checkPoolId(_pid) { require(emergency, 'PoolStore: not in emergency'); _withdraw(_pid, msg.sender, balanceOf(_pid, _msgSender())); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.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, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @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) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// 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; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @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 IERC20;` 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)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ 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. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "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"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.8.0; import {Context, Ownable} from '@openzeppelin/contracts/access/Ownable.sol'; abstract contract Operator is Context, Ownable { address private _operator; event OperatorTransferred( address indexed previousOperator, address indexed newOperator ); constructor() { _operator = _msgSender(); emit OperatorTransferred(address(0), _operator); } function operator() public view returns (address) { return _operator; } modifier onlyOperator() { require( _operator == _msgSender(), 'operator: caller is not the operator' ); _; } function isOperator() public view returns (bool) { return _msgSender() == _operator; } function transferOperator(address newOperator_) public onlyOwner { _transferOperator(newOperator_); } function _transferOperator(address newOperator_) internal { require( newOperator_ != address(0), 'operator: zero address given for new operator' ); emit OperatorTransferred(address(0), newOperator_); _operator = newOperator_; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is 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. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @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]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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 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": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"reporter","type":"address"}],"name":"EmergencyReported","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"resolver","type":"address"}],"name":"EmergencyResolved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","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":"operator","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"weight","type":"uint256"}],"name":"PoolAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"string","name":"from","type":"string"},{"indexed":false,"internalType":"string","name":"to","type":"string"}],"name":"PoolNameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"from","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"to","type":"uint256"}],"name":"PoolWeightChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"oldFeeder","type":"address"},{"indexed":true,"internalType":"address","name":"newFeeder","type":"address"}],"name":"WeightFeederChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_weight","type":"uint256"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_sender","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergency","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"indexByToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"nameOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"poolIdsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pools","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"weight","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reportEmergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resolveEmergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_weight","type":"uint256"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"string","name":"_name","type":"string"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newFeeder","type":"address"}],"name":"setWeightFeeder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"tokenOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weightFeeder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"weightOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260006002556006805460ff191690553480156200002057600080fd5b5060006200002d62000103565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200008162000103565b600180546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3620000d762000103565b600660016101000a8154816001600160a01b0302191690836001600160a01b0316021790555062000107565b3390565b61220a80620001176000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80635d84d07a116100f9578063bc157ac111610097578063e63697c811610071578063e63697c814610601578063ea78803f14610633578063f2fde38b14610650578063ff6d86ab14610676576101a9565b8063bc157ac1146105aa578063bd85b039146105dc578063caa6fea4146105f9576101a9565b80638da5cb5b116100d35780638da5cb5b146104df57806396c82e57146104e7578063ac4afa38146104ef578063b14c746d146105a2576101a9565b80635d84d07a146104a3578063715018a6146104cf57806383f3e7b3146104d7576101a9565b806329605e771161016657806346430af11161014057806346430af11461038b57806348ce463c146103ae5780635312ea8e14610462578063570ca7351461047f576101a9565b806329605e771461031d5780633656eec2146103435780634456eda21461036f576101a9565b8063051a2664146101ae5780630767d1781461024057806307f3ff681461026f578063081e3eda1461029757806310602ef91461029f57806315c73afd14610315575b600080fd5b6101cb600480360360208110156101c457600080fd5b5035610723565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102055781810151838201526020016101ed565b50505050905090810190601f1680156102325780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61025d6004803603602081101561025657600080fd5b503561081a565b60408051918252519081900360200190f35b6102956004803603602081101561028557600080fd5b50356001600160a01b031661088b565b005b61025d61095a565b6102c5600480360360208110156102b557600080fd5b50356001600160a01b0316610960565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156103015781810151838201526020016102e9565b505050509050019250505060405180910390f35b6102956109cc565b6102956004803603602081101561033357600080fd5b50356001600160a01b0316610a77565b61025d6004803603604081101561035957600080fd5b50803590602001356001600160a01b0316610ae5565b610377610b59565b604080519115158252519081900360200190f35b610295600480360360408110156103a157600080fd5b5080359060200135610b7f565b610295600480360360608110156103c457600080fd5b8101906020810181356401000000008111156103df57600080fd5b8201836020820111156103f157600080fd5b8035906020019184600183028401116401000000008311171561041357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160a01b038335169350505060200135610e1f565b6102956004803603602081101561047857600080fd5b5035611031565b6104876110ee565b604080516001600160a01b039092168252519081900360200190f35b61025d600480360360408110156104b957600080fd5b506001600160a01b0381351690602001356110fd565b61029561112e565b6102956111da565b610487611288565b61025d611297565b61050c6004803603602081101561050557600080fd5b503561129d565b6040518080602001856001600160a01b03168152602001848152602001838152602001828103825286818151815260200191508051906020019080838360005b8381101561056457818101518382015260200161054c565b50505050905090810190601f1680156105915780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b61048761136e565b610295600480360360608110156105c057600080fd5b508035906001600160a01b036020820135169060400135611382565b61025d600480360360208110156105f257600080fd5b503561153a565b6103776115ab565b6102956004803603606081101561061757600080fd5b508035906001600160a01b0360208201351690604001356115b4565b6104876004803603602081101561064957600080fd5b5035611660565b6102956004803603602081101561066657600080fd5b50356001600160a01b03166116db565b6102956004803603604081101561068c57600080fd5b813591908101906040810160208201356401000000008111156106ae57600080fd5b8201836020820111156106c057600080fd5b803590602001918460018302840111640100000000831117156106e257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506117dd945050505050565b600354606090829081111561076d576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b6003838154811061077a57fe5b6000918252602091829020600490910201805460408051601f600260001961010060018716150201909416939093049283018590048502810185019091528181529283018282801561080d5780601f106107e25761010080835404028352916020019161080d565b820191906000526020600020905b8154815290600101906020018083116107f057829003601f168201915b5050505050915050919050565b6003546000908290811115610864576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b6003838154811061087157fe5b906000526020600020906004020160020154915050919050565b610893611a35565b6001600160a01b03166108a4611288565b6001600160a01b0316146108ed576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b600680546001600160a01b03838116610100818102610100600160a81b031985161790945592909104169081610921611a35565b6001600160a01b03167f65030509677a120c4f69c93e05f4be10de010ef17c991fbcd55ea002800505ff60405160405180910390a45050565b60035490565b6001600160a01b0381166000908152600560209081526040918290208054835181840281018401909452808452606093928301828280156109c057602002820191906000526020600020905b8154815260200190600101908083116109ac575b50505050509050919050565b6109d4611a35565b6001600160a01b03166109e5611288565b6001600160a01b031614610a2e576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b6006805460ff19169055610a40611a35565b6001600160a01b03167f931a880a673c09f78b0e5883e28ce9c21683e304641f29bbaf802b676a0d1b6560405160405180910390a2565b610a7f611a35565b6001600160a01b0316610a90611288565b6001600160a01b031614610ad9576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b610ae281611a39565b50565b6003546000908390811115610b2f576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b505060009182526004602090815260408084206001600160a01b0393909316845291905290205490565b6001546000906001600160a01b0316610b70611a35565b6001600160a01b031614905090565b60065461010090046001600160a01b0316610b98611a35565b6001600160a01b031614610bf3576040805162461bcd60e51b815260206004820152601760248201527f506f6f6c53746f72653a20756e617574686f72697a6564000000000000000000604482015290519081900360640190fd5b6003548290811115610c3a576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b600060038481548110610c4957fe5b600091825260209182902060408051600493909302909101805460026001821615610100026000190190911604601f8101859004909402830160a09081019092526080830184815292939092849290918491840182828015610cec5780601f10610cc157610100808354040283529160200191610cec565b820191906000526020600020905b815481529060010190602001808311610ccf57829003601f168201915b505050918352505060018201546001600160a01b0316602082015260028083015460408084019190915260039093015460609092019190915290820151905491925090610d45908290610d3f9087611ad6565b90611b37565b600255604082018490526003805483919087908110610d6057fe5b90600052602060002090600402016000820151816000019080519060200190610d8a92919061202c565b5060208201516001820180546001600160a01b0319166001600160a01b039092169190911790556040820151600282015560609091015160039091015584610dd0611a35565b6001600160a01b03167f0779bac90684b525a1eb0b870cd1e203556de0684e87d46665dcfccd1f6e7ec28387604051808381526020018281526020019250505060405180910390a35050505050565b610e27611a35565b6001600160a01b0316610e38611288565b6001600160a01b031614610e81576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b600254610e8e9082611ad6565b600255600380546001600160a01b03841660008181526005602090815260408083208054600181810183559185528385200186905581516080810183528a815280840195909552908401879052606084018390528554908101865594909152815180519394929360049093027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0192610f2a928492019061202c565b5060208201516001820180546001600160a01b0319166001600160a01b039092169190911790556040820151600282015560609091015160039091015580610f70611a35565b6001600160a01b03167f0ccf63baee4f8ee658dcbfebb790ff5416656e3328ef12f6fcbf6b3fbd97ca368686866040518080602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019080838360005b83811015610fef578181015183820152602001610fd7565b50505050905090810190601f16801561101c5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a350505050565b6003548190811115611078576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b60065460ff166110cf576040805162461bcd60e51b815260206004820152601b60248201527f506f6f6c53746f72653a206e6f7420696e20656d657267656e63790000000000604482015290519081900360640190fd5b6110ea82336110e5856110e0611a35565b610ae5565b611b94565b5050565b6001546001600160a01b031690565b6005602052816000526040600020818154811061111957600080fd5b90600052602060002001600091509150505481565b611136611a35565b6001600160a01b0316611147611288565b6001600160a01b031614611190576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6111e2611a35565b6001600160a01b03166111f3611288565b6001600160a01b03161461123c576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b6006805460ff19166001179055611251611a35565b6001600160a01b03167fbbb1de3ea1dbc4db73445e86952fbd3d5fc8b44f641519b450e7c9989eecbc5460405160405180910390a2565b6000546001600160a01b031690565b60025481565b600381815481106112ad57600080fd5b60009182526020918290206004919091020180546040805160026001841615610100026000190190931692909204601f8101859004850283018501909152808252919350918391908301828280156113465780601f1061131b57610100808354040283529160200191611346565b820191906000526020600020905b81548152906001019060200180831161132957829003601f168201915b505050506001830154600284015460039094015492936001600160a01b039091169290915084565b60065461010090046001600160a01b031681565b60035483908111156113c9576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b6113d1611a35565b6001546001600160a01b0390811691161461141d5760405162461bcd60e51b81526004018080602001828103825260248152602001806121676024913960400191505060405180910390fd5b61144e826003868154811061142e57fe5b906000526020600020906004020160030154611ad690919063ffffffff16565b6003858154811061145b57fe5b6000918252602080832060049283020160030193909355868252825260408082206001600160a01b038716835290925220546114979083611ad6565b60008581526004602090815260408083206001600160a01b03881684529091529020556114e16114c5611a35565b30846114d088611660565b6001600160a01b0316929190611cae565b83836001600160a01b03166114f4611a35565b6001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7856040518082815260200191505060405180910390a450505050565b6003546000908290811115611584576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b6003838154811061159157fe5b906000526020600020906004020160030154915050919050565b60065460ff1681565b60035483908111156115fb576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b611603611a35565b6001546001600160a01b0390811691161461164f5760405162461bcd60e51b81526004018080602001828103825260248152602001806121676024913960400191505060405180910390fd5b61165a848484611b94565b50505050565b60035460009082908111156116aa576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b600383815481106116b757fe5b60009182526020909120600490910201600101546001600160a01b03169392505050565b6116e3611a35565b6001600160a01b03166116f4611288565b6001600160a01b03161461173d576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b6001600160a01b0381166117825760405162461bcd60e51b81526004018080602001828103825260268152602001806120ce6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6003548290811115611824576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b61182c611a35565b6001600160a01b031661183d611288565b6001600160a01b031614611886576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b60006003848154811061189557fe5b6000918252602091829020600490910201805460408051601f60026000196101006001871615020190941693909304928301859004850281018501909152818152928301828280156119285780601f106118fd57610100808354040283529160200191611928565b820191906000526020600020905b81548152906001019060200180831161190b57829003601f168201915b50505050509050826003858154811061193d57fe5b9060005260206000209060040201600001908051906020019061196192919061202c565b508361196b611a35565b6001600160a01b03167ff41d6461435077a74cc9de271140a9521e1d5287bb3c07fb5abf34de6d7a654f8386604051808060200180602001838103835285818151815260200191508051906020019080838360005b838110156119d85781810151838201526020016119c0565b50505050905090810190601f168015611a055780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360008315610fef578181015183820152602001610fd7565b3390565b6001600160a01b038116611a7e5760405162461bcd60e51b815260040180806020018281038252602d81526020018061211a602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015611b30576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082821115611b8e576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b611bc58160038581548110611ba557fe5b906000526020600020906004020160030154611b3790919063ffffffff16565b60038481548110611bd257fe5b6000918252602080832060049283020160030193909355858252825260408082206001600160a01b03861683529092522054611c0e9082611b37565b60008481526004602090815260408083206001600160a01b0387168452909152902055611c56611c3c611a35565b82611c4686611660565b6001600160a01b03169190611d08565b82826001600160a01b0316611c69611a35565b6001600160a01b03167ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567846040518082815260200191505060405180910390a4505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261165a908590611d5f565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611d5a908490611d5f565b505050565b6000611db4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e109092919063ffffffff16565b805190915015611d5a57808060200190516020811015611dd357600080fd5b5051611d5a5760405162461bcd60e51b815260040180806020018281038252602a81526020018061218b602a913960400191505060405180910390fd5b6060611e1f8484600085611e27565b949350505050565b606082471015611e685760405162461bcd60e51b81526004018080602001828103825260268152602001806120f46026913960400191505060405180910390fd5b611e7185611f82565b611ec2576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310611f005780518252601f199092019160209182019101611ee1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611f62576040519150601f19603f3d011682016040523d82523d6000602084013e611f67565b606091505b5091509150611f77828286611f88565b979650505050505050565b3b151590565b60608315611f97575081611b30565b825115611fa75782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ff1578181015183820152602001611fd9565b50505050905090810190601f16801561201e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b828054600181600116156101000203166002900490600052602060002090601f01602090048101928261206257600085556120a8565b82601f1061207b57805160ff19168380011785556120a8565b828001600101855582156120a8579182015b828111156120a857825182559160200191906001019061208d565b506120b49291506120b8565b5090565b5b808211156120b457600081556001016120b956fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c6f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f724f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564506f6f6c53746f72653a20696e76616c69642070696400000000000000000000a26469706673582212203e07ec158d4cc47b732bf54911a6a410cc20f4be87cbea28f4a8c70e4d13f1ba64736f6c63430007060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80635d84d07a116100f9578063bc157ac111610097578063e63697c811610071578063e63697c814610601578063ea78803f14610633578063f2fde38b14610650578063ff6d86ab14610676576101a9565b8063bc157ac1146105aa578063bd85b039146105dc578063caa6fea4146105f9576101a9565b80638da5cb5b116100d35780638da5cb5b146104df57806396c82e57146104e7578063ac4afa38146104ef578063b14c746d146105a2576101a9565b80635d84d07a146104a3578063715018a6146104cf57806383f3e7b3146104d7576101a9565b806329605e771161016657806346430af11161014057806346430af11461038b57806348ce463c146103ae5780635312ea8e14610462578063570ca7351461047f576101a9565b806329605e771461031d5780633656eec2146103435780634456eda21461036f576101a9565b8063051a2664146101ae5780630767d1781461024057806307f3ff681461026f578063081e3eda1461029757806310602ef91461029f57806315c73afd14610315575b600080fd5b6101cb600480360360208110156101c457600080fd5b5035610723565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102055781810151838201526020016101ed565b50505050905090810190601f1680156102325780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61025d6004803603602081101561025657600080fd5b503561081a565b60408051918252519081900360200190f35b6102956004803603602081101561028557600080fd5b50356001600160a01b031661088b565b005b61025d61095a565b6102c5600480360360208110156102b557600080fd5b50356001600160a01b0316610960565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156103015781810151838201526020016102e9565b505050509050019250505060405180910390f35b6102956109cc565b6102956004803603602081101561033357600080fd5b50356001600160a01b0316610a77565b61025d6004803603604081101561035957600080fd5b50803590602001356001600160a01b0316610ae5565b610377610b59565b604080519115158252519081900360200190f35b610295600480360360408110156103a157600080fd5b5080359060200135610b7f565b610295600480360360608110156103c457600080fd5b8101906020810181356401000000008111156103df57600080fd5b8201836020820111156103f157600080fd5b8035906020019184600183028401116401000000008311171561041357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160a01b038335169350505060200135610e1f565b6102956004803603602081101561047857600080fd5b5035611031565b6104876110ee565b604080516001600160a01b039092168252519081900360200190f35b61025d600480360360408110156104b957600080fd5b506001600160a01b0381351690602001356110fd565b61029561112e565b6102956111da565b610487611288565b61025d611297565b61050c6004803603602081101561050557600080fd5b503561129d565b6040518080602001856001600160a01b03168152602001848152602001838152602001828103825286818151815260200191508051906020019080838360005b8381101561056457818101518382015260200161054c565b50505050905090810190601f1680156105915780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b61048761136e565b610295600480360360608110156105c057600080fd5b508035906001600160a01b036020820135169060400135611382565b61025d600480360360208110156105f257600080fd5b503561153a565b6103776115ab565b6102956004803603606081101561061757600080fd5b508035906001600160a01b0360208201351690604001356115b4565b6104876004803603602081101561064957600080fd5b5035611660565b6102956004803603602081101561066657600080fd5b50356001600160a01b03166116db565b6102956004803603604081101561068c57600080fd5b813591908101906040810160208201356401000000008111156106ae57600080fd5b8201836020820111156106c057600080fd5b803590602001918460018302840111640100000000831117156106e257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506117dd945050505050565b600354606090829081111561076d576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b6003838154811061077a57fe5b6000918252602091829020600490910201805460408051601f600260001961010060018716150201909416939093049283018590048502810185019091528181529283018282801561080d5780601f106107e25761010080835404028352916020019161080d565b820191906000526020600020905b8154815290600101906020018083116107f057829003601f168201915b5050505050915050919050565b6003546000908290811115610864576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b6003838154811061087157fe5b906000526020600020906004020160020154915050919050565b610893611a35565b6001600160a01b03166108a4611288565b6001600160a01b0316146108ed576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b600680546001600160a01b03838116610100818102610100600160a81b031985161790945592909104169081610921611a35565b6001600160a01b03167f65030509677a120c4f69c93e05f4be10de010ef17c991fbcd55ea002800505ff60405160405180910390a45050565b60035490565b6001600160a01b0381166000908152600560209081526040918290208054835181840281018401909452808452606093928301828280156109c057602002820191906000526020600020905b8154815260200190600101908083116109ac575b50505050509050919050565b6109d4611a35565b6001600160a01b03166109e5611288565b6001600160a01b031614610a2e576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b6006805460ff19169055610a40611a35565b6001600160a01b03167f931a880a673c09f78b0e5883e28ce9c21683e304641f29bbaf802b676a0d1b6560405160405180910390a2565b610a7f611a35565b6001600160a01b0316610a90611288565b6001600160a01b031614610ad9576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b610ae281611a39565b50565b6003546000908390811115610b2f576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b505060009182526004602090815260408084206001600160a01b0393909316845291905290205490565b6001546000906001600160a01b0316610b70611a35565b6001600160a01b031614905090565b60065461010090046001600160a01b0316610b98611a35565b6001600160a01b031614610bf3576040805162461bcd60e51b815260206004820152601760248201527f506f6f6c53746f72653a20756e617574686f72697a6564000000000000000000604482015290519081900360640190fd5b6003548290811115610c3a576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b600060038481548110610c4957fe5b600091825260209182902060408051600493909302909101805460026001821615610100026000190190911604601f8101859004909402830160a09081019092526080830184815292939092849290918491840182828015610cec5780601f10610cc157610100808354040283529160200191610cec565b820191906000526020600020905b815481529060010190602001808311610ccf57829003601f168201915b505050918352505060018201546001600160a01b0316602082015260028083015460408084019190915260039093015460609092019190915290820151905491925090610d45908290610d3f9087611ad6565b90611b37565b600255604082018490526003805483919087908110610d6057fe5b90600052602060002090600402016000820151816000019080519060200190610d8a92919061202c565b5060208201516001820180546001600160a01b0319166001600160a01b039092169190911790556040820151600282015560609091015160039091015584610dd0611a35565b6001600160a01b03167f0779bac90684b525a1eb0b870cd1e203556de0684e87d46665dcfccd1f6e7ec28387604051808381526020018281526020019250505060405180910390a35050505050565b610e27611a35565b6001600160a01b0316610e38611288565b6001600160a01b031614610e81576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b600254610e8e9082611ad6565b600255600380546001600160a01b03841660008181526005602090815260408083208054600181810183559185528385200186905581516080810183528a815280840195909552908401879052606084018390528554908101865594909152815180519394929360049093027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0192610f2a928492019061202c565b5060208201516001820180546001600160a01b0319166001600160a01b039092169190911790556040820151600282015560609091015160039091015580610f70611a35565b6001600160a01b03167f0ccf63baee4f8ee658dcbfebb790ff5416656e3328ef12f6fcbf6b3fbd97ca368686866040518080602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019080838360005b83811015610fef578181015183820152602001610fd7565b50505050905090810190601f16801561101c5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a350505050565b6003548190811115611078576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b60065460ff166110cf576040805162461bcd60e51b815260206004820152601b60248201527f506f6f6c53746f72653a206e6f7420696e20656d657267656e63790000000000604482015290519081900360640190fd5b6110ea82336110e5856110e0611a35565b610ae5565b611b94565b5050565b6001546001600160a01b031690565b6005602052816000526040600020818154811061111957600080fd5b90600052602060002001600091509150505481565b611136611a35565b6001600160a01b0316611147611288565b6001600160a01b031614611190576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6111e2611a35565b6001600160a01b03166111f3611288565b6001600160a01b03161461123c576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b6006805460ff19166001179055611251611a35565b6001600160a01b03167fbbb1de3ea1dbc4db73445e86952fbd3d5fc8b44f641519b450e7c9989eecbc5460405160405180910390a2565b6000546001600160a01b031690565b60025481565b600381815481106112ad57600080fd5b60009182526020918290206004919091020180546040805160026001841615610100026000190190931692909204601f8101859004850283018501909152808252919350918391908301828280156113465780601f1061131b57610100808354040283529160200191611346565b820191906000526020600020905b81548152906001019060200180831161132957829003601f168201915b505050506001830154600284015460039094015492936001600160a01b039091169290915084565b60065461010090046001600160a01b031681565b60035483908111156113c9576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b6113d1611a35565b6001546001600160a01b0390811691161461141d5760405162461bcd60e51b81526004018080602001828103825260248152602001806121676024913960400191505060405180910390fd5b61144e826003868154811061142e57fe5b906000526020600020906004020160030154611ad690919063ffffffff16565b6003858154811061145b57fe5b6000918252602080832060049283020160030193909355868252825260408082206001600160a01b038716835290925220546114979083611ad6565b60008581526004602090815260408083206001600160a01b03881684529091529020556114e16114c5611a35565b30846114d088611660565b6001600160a01b0316929190611cae565b83836001600160a01b03166114f4611a35565b6001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7856040518082815260200191505060405180910390a450505050565b6003546000908290811115611584576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b6003838154811061159157fe5b906000526020600020906004020160030154915050919050565b60065460ff1681565b60035483908111156115fb576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b611603611a35565b6001546001600160a01b0390811691161461164f5760405162461bcd60e51b81526004018080602001828103825260248152602001806121676024913960400191505060405180910390fd5b61165a848484611b94565b50505050565b60035460009082908111156116aa576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b600383815481106116b757fe5b60009182526020909120600490910201600101546001600160a01b03169392505050565b6116e3611a35565b6001600160a01b03166116f4611288565b6001600160a01b03161461173d576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b6001600160a01b0381166117825760405162461bcd60e51b81526004018080602001828103825260268152602001806120ce6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6003548290811115611824576040805162461bcd60e51b815260206004820152601660248201526000805160206121b5833981519152604482015290519081900360640190fd5b61182c611a35565b6001600160a01b031661183d611288565b6001600160a01b031614611886576040805162461bcd60e51b81526020600482018190526024820152600080516020612147833981519152604482015290519081900360640190fd5b60006003848154811061189557fe5b6000918252602091829020600490910201805460408051601f60026000196101006001871615020190941693909304928301859004850281018501909152818152928301828280156119285780601f106118fd57610100808354040283529160200191611928565b820191906000526020600020905b81548152906001019060200180831161190b57829003601f168201915b50505050509050826003858154811061193d57fe5b9060005260206000209060040201600001908051906020019061196192919061202c565b508361196b611a35565b6001600160a01b03167ff41d6461435077a74cc9de271140a9521e1d5287bb3c07fb5abf34de6d7a654f8386604051808060200180602001838103835285818151815260200191508051906020019080838360005b838110156119d85781810151838201526020016119c0565b50505050905090810190601f168015611a055780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360008315610fef578181015183820152602001610fd7565b3390565b6001600160a01b038116611a7e5760405162461bcd60e51b815260040180806020018281038252602d81526020018061211a602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015611b30576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082821115611b8e576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b611bc58160038581548110611ba557fe5b906000526020600020906004020160030154611b3790919063ffffffff16565b60038481548110611bd257fe5b6000918252602080832060049283020160030193909355858252825260408082206001600160a01b03861683529092522054611c0e9082611b37565b60008481526004602090815260408083206001600160a01b0387168452909152902055611c56611c3c611a35565b82611c4686611660565b6001600160a01b03169190611d08565b82826001600160a01b0316611c69611a35565b6001600160a01b03167ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567846040518082815260200191505060405180910390a4505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261165a908590611d5f565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611d5a908490611d5f565b505050565b6000611db4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e109092919063ffffffff16565b805190915015611d5a57808060200190516020811015611dd357600080fd5b5051611d5a5760405162461bcd60e51b815260040180806020018281038252602a81526020018061218b602a913960400191505060405180910390fd5b6060611e1f8484600085611e27565b949350505050565b606082471015611e685760405162461bcd60e51b81526004018080602001828103825260268152602001806120f46026913960400191505060405180910390fd5b611e7185611f82565b611ec2576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310611f005780518252601f199092019160209182019101611ee1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611f62576040519150601f19603f3d011682016040523d82523d6000602084013e611f67565b606091505b5091509150611f77828286611f88565b979650505050505050565b3b151590565b60608315611f97575081611b30565b825115611fa75782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ff1578181015183820152602001611fd9565b50505050905090810190601f16801561201e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b828054600181600116156101000203166002900490600052602060002090601f01602090048101928261206257600085556120a8565b82601f1061207b57805160ff19168380011785556120a8565b828001600101855582156120a8579182015b828111156120a857825182559160200191906001019061208d565b506120b49291506120b8565b5090565b5b808211156120b457600081556001016120b956fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c6f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f724f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564506f6f6c53746f72653a20696e76616c69642070696400000000000000000000a26469706673582212203e07ec158d4cc47b732bf54911a6a410cc20f4be87cbea28f4a8c70e4d13f1ba64736f6c63430007060033
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.