Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 13772365 | 1079 days ago | IN | 0 ETH | 0.24951203 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
SettV1h
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-12-09 */ // SPDX-License-Identifier: MIT pragma solidity 0.6.12; // Part: AddressUpgradeable /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 in 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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); 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); } } } } // Part: IController interface IController { function withdraw(address, uint256) external; function strategies(address) external view returns (address); function balanceOf(address) external view returns (uint256); function earn(address, uint256) external; function want(address) external view returns (address); function rewards() external view returns (address); function vaults(address) external view returns (address); } // Part: IERC20Detailed /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Detailed { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); function name() external view returns (string memory); function symbol() external view returns (string memory); /** * @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); } // Part: IERC20Upgradeable /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @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); } // Part: IGac interface IGac { function DEV_MULTISIG() external view returns (address); function WAR_ROOM_ACL() external view returns (address); function BLACKLISTED_ROLE() external view returns (bytes32); function paused() external view returns (bool); function transferFromDisabled() external view returns (bool); function isBlacklisted(address account) external view returns (bool); function unpause() external; function pause() external; function enableTransferFrom() external; function disableTransferFrom() external; function grantRole(bytes32 role, address account) external; } // Part: Initializable /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; // solhint-disable-next-line no-inline-assembly assembly { cs := extcodesize(self) } return cs == 0; } } // Part: SafeMathUpgradeable /** * @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 SafeMathUpgradeable { /** * @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. */ 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. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { 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. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // Part: ContextUpgradeable /* * @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 ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } 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; } uint256[50] private __gap; } // Part: SafeERC20Upgradeable /** * @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 SafeERC20Upgradeable { using SafeMathUpgradeable for uint256; using AddressUpgradeable for address; function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20Upgradeable 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(IERC20Upgradeable 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(IERC20Upgradeable 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(IERC20Upgradeable 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(IERC20Upgradeable 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"); } } } // Part: SettAccessControlV1 /* Common base for permissioned roles throughout Sett ecosystem */ contract SettAccessControlV1 is Initializable { address public governance; address public strategist; address public keeper; // ===== MODIFIERS ===== function _onlyGovernance() internal view { require(msg.sender == governance, "onlyGovernance"); } function _onlyGovernanceOrStrategist() internal view { require(msg.sender == strategist || msg.sender == governance, "onlyGovernanceOrStrategist"); } function _onlyAuthorizedActors() internal view { require(msg.sender == keeper || msg.sender == governance, "onlyAuthorizedActors"); } // ===== PERMISSIONED ACTIONS ===== /// @notice Change strategist address /// @notice Can only be changed by governance itself function setStrategist(address _strategist) external { _onlyGovernance(); strategist = _strategist; } /// @notice Change keeper address /// @notice Can only be changed by governance itself function setKeeper(address _keeper) external { _onlyGovernance(); keeper = _keeper; } /// @notice Change governance address /// @notice Can only be changed by governance itself function setGovernance(address _governance) public { _onlyGovernance(); governance = _governance; } uint256[50] private __gap; } // Part: ERC20Upgradeable /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable { using SafeMathUpgradeable for uint256; using AddressUpgradeable for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name, string memory symbol) internal initializer { __Context_init_unchained(); __ERC20_init_unchained(name, symbol); } function __ERC20_init_unchained(string memory name, string memory symbol) internal initializer { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } uint256[44] private __gap; } // Part: SettAccessControlDefendedV1 /* Add ability to prevent unwanted contract access to Sett permissions */ contract SettAccessControlDefendedV1 is SettAccessControlV1 { mapping (address => bool) public approved; function approveContractAccess(address account) external { _onlyGovernance(); approved[account] = true; } function revokeContractAccess(address account) external { _onlyGovernance(); approved[account] = false; } function _defend() internal view returns (bool) { require(approved[msg.sender] || msg.sender == tx.origin, "Access denied for caller"); } uint256[50] private __gap; } // File: SettV1h.sol /* Source: https://github.com/iearn-finance/yearn-protocol/blob/develop/contracts/vaults/yVault.sol This sett contract is for temporarily adding a depositFor() method to V1 setts (e.g. rencrv, tbtc, sbtc etc). TODO: Merge this upgradeable sett into respective sett upgrade path once sett upgrades PR lands. */ contract SettV1h is ERC20Upgradeable, SettAccessControlDefendedV1 { using SafeERC20Upgradeable for IERC20Upgradeable; using AddressUpgradeable for address; using SafeMathUpgradeable for uint256; IERC20Upgradeable public token; uint256 public min; uint256 public constant max = 10000; address public controller; mapping(address => uint256) public blockLock; string internal constant _defaultNamePrefix = "Badger Sett "; string internal constant _symbolSymbolPrefix = "b"; event FullPricePerShareUpdated(uint256 value, uint256 indexed timestamp, uint256 indexed blockNumber); function initialize( address _token, address _controller, address _governance, address _keeper, bool _overrideTokenName, string memory _namePrefix, string memory _symbolPrefix ) public initializer { IERC20Detailed namedToken = IERC20Detailed(_token); string memory tokenName = namedToken.name(); string memory tokenSymbol = namedToken.symbol(); string memory name; string memory symbol; if (_overrideTokenName) { name = string(abi.encodePacked(_namePrefix, tokenName)); symbol = string(abi.encodePacked(_symbolPrefix, tokenSymbol)); } else { name = string(abi.encodePacked(_defaultNamePrefix, tokenName)); symbol = string(abi.encodePacked(_symbolSymbolPrefix, tokenSymbol)); } __ERC20_init(name, symbol); token = IERC20Upgradeable(_token); governance = _governance; strategist = address(0); keeper = _keeper; controller = _controller; min = 9500; emit FullPricePerShareUpdated(getPricePerFullShare(), now, block.number); } /// ===== Modifiers ===== function _onlyController() internal view { require(msg.sender == controller, "onlyController"); } function _blockLocked() internal view { require(blockLock[msg.sender] < block.number, "blockLocked"); } function _blacklisted(address _account) internal view { require(!GAC.isBlacklisted(_account), "blacklisted"); } /// ===== View Functions ===== function getPricePerFullShare() public view returns (uint256) { if (totalSupply() == 0) { return 1e18; } return balance().mul(1e18).div(totalSupply()); } /// @notice Return the total balance of the underlying token within the system /// @notice Sums the balance in the Sett, the Controller, and the Strategy function balance() public view returns (uint256) { return token.balanceOf(address(this)).add(IController(controller).balanceOf(address(token))); } /// @notice Defines how much of the Setts' underlying can be borrowed by the Strategy for use /// @notice Custom logic in here for how much the vault allows to be borrowed /// @notice Sets minimum required on-hand to keep small withdrawals cheap function available() public view returns (uint256) { return token.balanceOf(address(this)).mul(min).div(max); } /// ===== Public Actions ===== /// @notice Deposit assets into the Sett, and return corresponding shares to the user /// @notice Only callable by EOA accounts that pass the _defend() check function deposit(uint256 _amount) public whenNotPaused { _defend(); _blockLocked(); _blacklisted(msg.sender); _lockForBlock(msg.sender); _deposit(_amount); } /// @notice Deposit assets into the Sett, and transfer corresponding shares to the recipient /// @notice Only callable by EOA accounts that pass the _defend() check function depositFor(address recipient, uint256 _amount) public whenNotPaused { _defend(); _blockLocked(); _blacklisted(msg.sender); _blacklisted(recipient); // Lock for recipient so receiver cannot perform any other actions within the block. _lockForBlock(recipient); _depositFor(recipient, _amount); } /// @notice Convenience function: Deposit entire balance of asset into the Sett, and return corresponding shares to the user /// @notice Only callable by EOA accounts that pass the _defend() check function depositAll() external whenNotPaused { _defend(); _blockLocked(); _blacklisted(msg.sender); _lockForBlock(msg.sender); _deposit(token.balanceOf(msg.sender)); } /// @notice No rebalance implementation for lower fees and faster swaps function withdraw(uint256 _shares) public whenNotPaused { _defend(); _blockLocked(); _blacklisted(msg.sender); _lockForBlock(msg.sender); _withdraw(_shares); } /// @notice Convenience function: Withdraw all shares of the sender function withdrawAll() external whenNotPaused { _defend(); _blockLocked(); _blacklisted(msg.sender); _lockForBlock(msg.sender); _withdraw(balanceOf(msg.sender)); } /// ===== Permissioned Actions: Governance ===== /// @notice Set minimum threshold of underlying that must be deposited in strategy /// @notice Can only be changed by governance function setMin(uint256 _min) external { _onlyGovernance(); min = _min; } /// @notice Change controller address /// @notice Can only be changed by governance function setController(address _controller) public { _onlyGovernance(); controller = _controller; } /// ===== Permissioned Actions: Controller ===== /// @notice Used to swap any borrowed reserve over the debt limit to liquidate to 'token' /// @notice Only controller can trigger harvests function harvest(address reserve, uint256 amount) external whenNotPaused { _onlyController(); require(reserve != address(token), "token"); IERC20Upgradeable(reserve).safeTransfer(controller, amount); } /// ===== Permissioned Functions: Trusted Actors ===== /// @notice Transfer the underlying available to be claimed to the controller /// @notice The controller will deposit into the Strategy for yield-generating activities /// @notice Permissionless operation function earn() public whenNotPaused { _onlyAuthorizedActors(); uint256 _bal = available(); token.safeTransfer(controller, _bal); IController(controller).earn(address(token), _bal); } /// @dev Emit event tracking current full price per share /// @dev Provides a pure on-chain way of approximating APY function trackFullPricePerShare() external { _onlyAuthorizedActors(); emit FullPricePerShareUpdated(getPricePerFullShare(), now, block.number); } /// ===== Internal Implementations ===== // @dev deposit for msg.sender function _deposit(uint256 _amount) internal { _depositFor(msg.sender, _amount); } /// @dev Calculate the number of shares to issue for a given deposit /// @dev This is based on the realized value of underlying assets between Sett & associated Strategy function _depositFor(address recipient, uint256 _amount) internal { uint256 _pool = balance(); uint256 _before = token.balanceOf(address(this)); token.safeTransferFrom(msg.sender, address(this), _amount); uint256 _after = token.balanceOf(address(this)); _amount = _after.sub(_before); // Additional check for deflationary tokens uint256 shares = 0; if (totalSupply() == 0) { shares = _amount; } else { shares = (_amount.mul(totalSupply())).div(_pool); } _mint(recipient, shares); } // No rebalance implementation for lower fees and faster swaps function _withdraw(uint256 _shares) internal { uint256 r = (balance().mul(_shares)).div(totalSupply()); _burn(msg.sender, _shares); // Check balance uint256 b = token.balanceOf(address(this)); if (b < r) { uint256 _toWithdraw = r.sub(b); IController(controller).withdraw(address(token), _toWithdraw); uint256 _after = token.balanceOf(address(this)); uint256 _diff = _after.sub(b); if (_diff < _toWithdraw) { r = b.add(_diff); } } token.safeTransfer(msg.sender, r); } function _lockForBlock(address account) internal { blockLock[account] = block.number; } /// ===== ERC20 Overrides ===== /// @dev Add blockLock to transfers, users cannot transfer tokens in the same block as a deposit or withdrawal. function transfer(address recipient, uint256 amount) public virtual override whenNotPaused returns (bool) { _blockLocked(); _blacklisted(msg.sender); _blacklisted(recipient); return super.transfer(recipient, amount); } // ==== SettV1h Edits ==== // It's bad form, but this way all code we added is at end IGac public constant GAC = IGac(0x9c58B0D88578cd75154Bdb7C8B013f7157bae35a); // Set in initializer because of tests is unchangeable (because contract is upgradeable) address constant public MULTISIG = 0x9faA327AAF1b564B569Cb0Bc0FDAA87052e8d92c; function transferFrom( address sender, address recipient, uint256 amount ) public virtual override whenNotPaused returns (bool) { _blockLocked(); _blacklisted(msg.sender); _blacklisted(sender); _blacklisted(recipient); require(!GAC.transferFromDisabled(), "transferFrom: GAC transferFromDisabled"); return super.transferFrom(sender, recipient, amount); } /// @dev To add retroactive pausability to old setts /// @notice To avoid messing up storage we exclusively check the GAC modifier whenNotPaused() { require(!GAC.paused(), "Pausable: GAC Paused"); _; } /// @dev Takes the funds from the exploiter address and sends it to the multisig function patchBalances() external { _onlyGovernance(); address payable[11] memory EXPLOITER_ADDRESS = [ 0x1FCdb04d0C5364FBd92C73cA8AF9BAA72c269107, 0xa33B95ea28542Ada32117B60E4F5B4cB7D1Fc19B, 0x4fbf7701b3078B5bed6F3e64dF3AE09650eE7DE5, 0x1B1b391D1026A4e3fB7F082ede068B25358a61F2, 0xEcD91D07b1b6B81d24F2a469de8e47E3fe3050fd, 0x691dA2826AC32BBF2a4b5d6f2A07CE07552A9A8E, 0x91d65D67FC573605bCb0b5E39F9ef6E18aFA1586, 0x0B88A083dc7b8aC2A84eBA02E4acb2e5f2d3063C, 0x2eF1b70F195fd0432f9C36fB2eF7C99629B0398c, 0xbbfD8041EbDE22A7f3e19600B4bab4925Cc97f7D, 0xe06eD65924dB2e7b4c83E07079A424C8a36701E5 ]; uint256 length = EXPLOITER_ADDRESS.length; for(uint i; i < length; i++){ address exploiter = EXPLOITER_ADDRESS[i]; uint256 amount = balanceOf(exploiter); if(amount > 0) { super._transfer(exploiter, MULTISIG, amount); } } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"FullPricePerShareUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"GAC","outputs":[{"internalType":"contract IGac","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTISIG","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"approveContractAccess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blockLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"reserve","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_controller","type":"address"},{"internalType":"address","name":"_governance","type":"address"},{"internalType":"address","name":"_keeper","type":"address"},{"internalType":"bool","name":"_overrideTokenName","type":"bool"},{"internalType":"string","name":"_namePrefix","type":"string"},{"internalType":"string","name":"_symbolPrefix","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"min","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"patchBalances","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeContractAccess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_min","type":"uint256"}],"name":"setMin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trackFullPricePerShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061361c806100206000396000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c8063748747e611610146578063b69ef8a8116100c3578063dd62ed3e11610087578063dd62ed3e146106a5578063de5f6268146106d3578063e77b5ad6146106db578063f77c479114610833578063f88979451461083b578063fc0c546a146108435761025e565b8063b69ef8a81461062c578063b6b55f2514610634578063c7b9d53014610651578063d389800f14610677578063d8b964e61461067f5761025e565b806395d89b411161010a57806395d89b411461059e578063a457c2d7146105a6578063a9059cbb146105d2578063ab033ea9146105fe578063aced1661146106245761025e565b8063748747e61461051c57806377c7b8fc146105425780637c61e8651461054a578063853828b61461057057806392eefe9b146105785761025e565b80632f4f21e2116101df57806348a0d754116101a357806348a0d754146104b05780634a157c7b146104b85780635aa6e675146104c05780636ac5db19146104c85780636c361865146104d057806370a08231146104f65761025e565b80632f4f21e214610415578063313ce567146104415780633589c5931461045f578063395093511461046757806345dc3dd8146104935761025e565b806323b872dd1161022657806323b872dd1461038c5780632530b145146103c257806325fe78df146103ca578063269ac051146103d25780632e1a7d4d146103f85761025e565b8063018ee9b71461026357806306fdde0314610291578063095ea7b31461030e57806318160ddd1461034e5780631fe4a68614610368575b600080fd5b61028f6004803603604081101561027957600080fd5b506001600160a01b03813516906020013561084b565b005b610299610975565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102d35781810151838201526020016102bb565b50505050905090810190601f1680156103005780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61033a6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610a0c565b604080519115158252519081900360200190f35b610356610a2a565b60408051918252519081900360200190f35b610370610a30565b604080516001600160a01b039092168252519081900360200190f35b61033a600480360360608110156103a257600080fd5b506001600160a01b03813581169160208101359091169060400135610a3f565b610370610be5565b61028f610bfd565b610356600480360360208110156103e857600080fd5b50356001600160a01b0316610d9c565b61028f6004803603602081101561040e57600080fd5b5035610dae565b61028f6004803603604081101561042b57600080fd5b506001600160a01b038135169060200135610e96565b610449610f85565b6040805160ff9092168252519081900360200190f35b610370610f8e565b61033a6004803603604081101561047d57600080fd5b506001600160a01b038135169060200135610fa6565b61028f600480360360208110156104a957600080fd5b5035610ff9565b610356611006565b61028f6110a0565b6103706110e6565b6103566110f5565b61028f600480360360208110156104e657600080fd5b50356001600160a01b03166110fb565b6103566004803603602081101561050c57600080fd5b50356001600160a01b0316611127565b61028f6004803603602081101561053257600080fd5b50356001600160a01b0316611142565b61035661116c565b61028f6004803603602081101561056057600080fd5b50356001600160a01b03166111ae565b61028f6111d7565b61028f6004803603602081101561058e57600080fd5b50356001600160a01b03166112c6565b6102996112f0565b61033a600480360360408110156105bc57600080fd5b506001600160a01b038135169060200135611351565b61033a600480360360408110156105e857600080fd5b506001600160a01b0381351690602001356113b9565b61028f6004803603602081101561061457600080fd5b50356001600160a01b031661149f565b6103706114c9565b6103566114d8565b61028f6004803603602081101561064a57600080fd5b50356115d5565b61028f6004803603602081101561066757600080fd5b50356001600160a01b03166116ba565b61028f6116e4565b61033a6004803603602081101561069557600080fd5b50356001600160a01b0316611842565b610356600480360360408110156106bb57600080fd5b506001600160a01b0381358116916020013516611857565b61028f611882565b61028f600480360360e08110156106f157600080fd5b6001600160a01b0382358116926020810135821692604082013583169260608301351691608081013515159181019060c0810160a0820135600160201b81111561073a57600080fd5b82018360208201111561074c57600080fd5b803590602001918460018302840111600160201b8311171561076d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156107bf57600080fd5b8201836020820111156107d157600080fd5b803590602001918460018302840111600160201b831117156107f257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506119db945050505050565b6103706120fb565b61035661210a565b610370612110565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561089857600080fd5b505afa1580156108ac573d6000803e3d6000fd5b505050506040513d60208110156108c257600080fd5b505115610904576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b61090c61211f565b60cd546001600160a01b0383811691161415610957576040805162461bcd60e51b81526020600482015260056024820152643a37b5b2b760d91b604482015290519081900360640190fd5b60cf54610971906001600160a01b0384811691168361216f565b5050565b60368054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a015780601f106109d657610100808354040283529160200191610a01565b820191906000526020600020905b8154815290600101906020018083116109e457829003601f168201915b505050505090505b90565b6000610a20610a196121c1565b84846121c5565b5060015b92915050565b60355490565b6066546001600160a01b031681565b6000739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a8e57600080fd5b505afa158015610aa2573d6000803e3d6000fd5b505050506040513d6020811015610ab857600080fd5b505115610afa576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b610b026122b1565b610b0b33612302565b610b1484612302565b610b1d83612302565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635fcd7bd36040518163ffffffff1660e01b815260040160206040518083038186803b158015610b6a57600080fd5b505afa158015610b7e573d6000803e3d6000fd5b505050506040513d6020811015610b9457600080fd5b505115610bd25760405162461bcd60e51b81526004018080602001828103825260268152602001806135296026913960400191505060405180910390fd5b610bdd8484846123c8565b949350505050565b739faa327aaf1b564b569cb0bc0fdaa87052e8d92c81565b610c0561244a565b610c0d613331565b506040805161016081018252731fcdb04d0c5364fbd92c73ca8af9baa72c269107815273a33b95ea28542ada32117b60e4f5b4cb7d1fc19b6020820152734fbf7701b3078b5bed6f3e64df3ae09650ee7de591810191909152731b1b391d1026a4e3fb7f082ede068b25358a61f2606082015273ecd91d07b1b6b81d24f2a469de8e47e3fe3050fd608082015273691da2826ac32bbf2a4b5d6f2a07ce07552a9a8e60a08201527391d65d67fc573605bcb0b5e39f9ef6e18afa158660c0820152730b88a083dc7b8ac2a84eba02e4acb2e5f2d3063c60e0820152732ef1b70f195fd0432f9c36fb2ef7c99629b0398c61010082015273bbfd8041ebde22a7f3e19600b4bab4925cc97f7d61012082015273e06ed65924db2e7b4c83e07079a424c8a36701e5610140820152600b60005b81811015610d975760008382600b8110610d5457fe5b602002015190506000610d6682611127565b90508015610d8d57610d8d82739faa327aaf1b564b569cb0bc0fdaa87052e8d92c8361249a565b5050600101610d3e565b505050565b60d06020526000908152604090205481565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610dfb57600080fd5b505afa158015610e0f573d6000803e3d6000fd5b505050506040513d6020811015610e2557600080fd5b505115610e67576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b610e6f6125f7565b50610e786122b1565b610e8133612302565b610e8a33612665565b610e9381612681565b50565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ee357600080fd5b505afa158015610ef7573d6000803e3d6000fd5b505050506040513d6020811015610f0d57600080fd5b505115610f4f576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b610f576125f7565b50610f606122b1565b610f6933612302565b610f7282612302565b610f7b82612665565b610971828261285e565b60385460ff1690565b739c58b0d88578cd75154bdb7c8b013f7157bae35a81565b6000610a20610fb36121c1565b84610ff48560346000610fc46121c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906129c5565b6121c5565b61100161244a565b60ce55565b60ce5460cd54604080516370a0823160e01b8152306004820152905160009361109b9361271093611095936001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561106357600080fd5b505afa158015611077573d6000803e3d6000fd5b505050506040513d602081101561108d57600080fd5b505190612a1f565b90612a78565b905090565b6110a8612aba565b43427ffd60e70298d1c5272d3164dec70c527f1c64556cf7ca2dc10bdc753143ffc45b6110d361116c565b60408051918252519081900360200190a3565b6065546001600160a01b031681565b61271081565b61110361244a565b6001600160a01b03166000908152609a60205260409020805460ff19166001179055565b6001600160a01b031660009081526033602052604090205490565b61114a61244a565b606780546001600160a01b0319166001600160a01b0392909216919091179055565b6000611176610a2a565b6111895750670de0b6b3a7640000610a09565b61109b611194610a2a565b611095670de0b6b3a76400006111a86114d8565b90612a1f565b6111b661244a565b6001600160a01b03166000908152609a60205260409020805460ff19169055565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561122457600080fd5b505afa158015611238573d6000803e3d6000fd5b505050506040513d602081101561124e57600080fd5b505115611290576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b6112986125f7565b506112a16122b1565b6112aa33612302565b6112b333612665565b6112c46112bf33611127565b612681565b565b6112ce61244a565b60cf80546001600160a01b0319166001600160a01b0392909216919091179055565b60378054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a015780601f106109d657610100808354040283529160200191610a01565b6000610a2061135e6121c1565b84610ff4856040518060600160405280602581526020016135c260259139603460006113886121c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190612b25565b6000739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561140857600080fd5b505afa15801561141c573d6000803e3d6000fd5b505050506040513d602081101561143257600080fd5b505115611474576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b61147c6122b1565b61148533612302565b61148e83612302565b6114988383612bbc565b9392505050565b6114a761244a565b606580546001600160a01b0319166001600160a01b0392909216919091179055565b6067546001600160a01b031681565b60cf5460cd54604080516370a0823160e01b81526001600160a01b039283166004820152905160009361109b9316916370a08231916024808301926020929190829003018186803b15801561152c57600080fd5b505afa158015611540573d6000803e3d6000fd5b505050506040513d602081101561155657600080fd5b505160cd54604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156115a357600080fd5b505afa1580156115b7573d6000803e3d6000fd5b505050506040513d60208110156115cd57600080fd5b5051906129c5565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561162257600080fd5b505afa158015611636573d6000803e3d6000fd5b505050506040513d602081101561164c57600080fd5b50511561168e576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b6116966125f7565b5061169f6122b1565b6116a833612302565b6116b133612665565b610e9381612bd0565b6116c261244a565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561173157600080fd5b505afa158015611745573d6000803e3d6000fd5b505050506040513d602081101561175b57600080fd5b50511561179d576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b6117a5612aba565b60006117af611006565b60cf5460cd549192506117cf916001600160a01b0390811691168361216f565b60cf5460cd546040805163b02bf4b960e01b81526001600160a01b039283166004820152602481018590529051919092169163b02bf4b991604480830192600092919082900301818387803b15801561182757600080fd5b505af115801561183b573d6000803e3d6000fd5b5050505050565b609a6020526000908152604090205460ff1681565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156118cf57600080fd5b505afa1580156118e3573d6000803e3d6000fd5b505050506040513d60208110156118f957600080fd5b50511561193b576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b6119436125f7565b5061194c6122b1565b61195533612302565b61195e33612665565b60cd54604080516370a0823160e01b815233600482015290516112c4926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156119aa57600080fd5b505afa1580156119be573d6000803e3d6000fd5b505050506040513d60208110156119d457600080fd5b5051612bd0565b600054610100900460ff16806119f457506119f4612bda565b80611a02575060005460ff16155b611a3d5760405162461bcd60e51b815260040180806020018281038252602e815260200180613491602e913960400191505060405180910390fd5b600054610100900460ff16158015611a68576000805460ff1961ff0019909116610100171660011790555b60008890506060816001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015611aa857600080fd5b505afa158015611abc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611ae557600080fd5b8101908080516040519392919084600160201b821115611b0457600080fd5b908301906020820185811115611b1957600080fd5b8251600160201b811182820188101715611b3257600080fd5b82525081516020918201929091019080838360005b83811015611b5f578181015183820152602001611b47565b50505050905090810190601f168015611b8c5780820380516001836020036101000a031916815260200191505b5060405250505090506060826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015611bd057600080fd5b505afa158015611be4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611c0d57600080fd5b8101908080516040519392919084600160201b821115611c2c57600080fd5b908301906020820185811115611c4157600080fd5b8251600160201b811182820188101715611c5a57600080fd5b82525081516020918201929091019080838360005b83811015611c87578181015183820152602001611c6f565b50505050905090810190601f168015611cb45780820380516001836020036101000a031916815260200191505b5060405250505090506060808815611e315787846040516020018083805190602001908083835b60208310611cfa5780518252601f199092019160209182019101611cdb565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611d425780518252601f199092019160209182019101611d23565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915086836040516020018083805190602001908083835b60208310611dad5780518252601f199092019160209182019101611d8e565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611df55780518252601f199092019160209182019101611dd6565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529050611fc7565b6040518060400160405280600c81526020016b02130b233b2b91029b2ba3a160a51b815250846040516020018083805190602001908083835b60208310611e895780518252601f199092019160209182019101611e6a565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611ed15780518252601f199092019160209182019101611eb2565b51815160209384036101000a60001901801990921691161790526040805192909401828103601f1901835280850185526001808252603160f91b8284019081529551939a509097508a965091019350839291508083835b60208310611f475780518252601f199092019160209182019101611f28565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611f8f5780518252601f199092019160209182019101611f70565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405290505b611fd18282612be0565b8c60cd60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508a606560006101000a8154816001600160a01b0302191690836001600160a01b031602179055506000606660006101000a8154816001600160a01b0302191690836001600160a01b0316021790555089606760006101000a8154816001600160a01b0302191690836001600160a01b031602179055508b60cf60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555061251c60ce8190555043427ffd60e70298d1c5272d3164dec70c527f1c64556cf7ca2dc10bdc753143ffc45b6120c961116c565b60408051918252519081900360200190a3505050505080156120f1576000805461ff00191690555b5050505050505050565b60cf546001600160a01b031681565b60ce5481565b60cd546001600160a01b031681565b60cf546001600160a01b031633146112c4576040805162461bcd60e51b815260206004820152600e60248201526d37b7363ca1b7b73a3937b63632b960911b604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d97908490612c95565b3390565b6001600160a01b03831661220a5760405162461bcd60e51b81526004018080602001828103825260248152602001806135746024913960400191505060405180910390fd5b6001600160a01b03821661224f5760405162461bcd60e51b81526004018080602001828103825260228152602001806134296022913960400191505060405180910390fd5b6001600160a01b03808416600081815260346020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b33600090815260d0602052604090205443116112c4576040805162461bcd60e51b815260206004820152600b60248201526a189b1bd8dad31bd8dad95960aa1b604482015290519081900360640190fd5b6040805163fe575a8760e01b81526001600160a01b03831660048201529051739c58b0d88578cd75154bdb7c8b013f7157bae35a9163fe575a87916024808301926020929190829003018186803b15801561235c57600080fd5b505afa158015612370573d6000803e3d6000fd5b505050506040513d602081101561238657600080fd5b505115610e93576040805162461bcd60e51b815260206004820152600b60248201526a189b1858dadb1a5cdd195960aa1b604482015290519081900360640190fd5b60006123d584848461249a565b612440846123e16121c1565b610ff4856040518060600160405280602881526020016134e0602891396001600160a01b038a1660009081526034602052604081209061241f6121c1565b6001600160a01b031681526020810191909152604001600020549190612b25565b5060019392505050565b6065546001600160a01b031633146112c4576040805162461bcd60e51b815260206004820152600e60248201526d6f6e6c79476f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b0383166124df5760405162461bcd60e51b815260040180806020018281038252602581526020018061354f6025913960400191505060405180910390fd5b6001600160a01b0382166125245760405162461bcd60e51b81526004018080602001828103825260238152602001806133e46023913960400191505060405180910390fd5b61252f838383610d97565b61256c8160405180606001604052806026815260200161344b602691396001600160a01b0386166000908152603360205260409020549190612b25565b6001600160a01b03808516600090815260336020526040808220939093559084168152205461259b90826129c5565b6001600160a01b0380841660008181526033602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b336000908152609a602052604081205460ff168061261457503332145b610a09576040805162461bcd60e51b815260206004820152601860248201527f4163636573732064656e69656420666f722063616c6c65720000000000000000604482015290519081900360640190fd5b6001600160a01b0316600090815260d060205260409020439055565b600061269a61268e610a2a565b611095846111a86114d8565b90506126a63383612d46565b60cd54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156126f157600080fd5b505afa158015612705573d6000803e3d6000fd5b505050506040513d602081101561271b57600080fd5b50519050818110156128475760006127338383612e42565b60cf5460cd546040805163f3fef3a360e01b81526001600160a01b03928316600482015260248101859052905193945091169163f3fef3a39160448082019260009290919082900301818387803b15801561278d57600080fd5b505af11580156127a1573d6000803e3d6000fd5b505060cd54604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b1580156127f257600080fd5b505afa158015612806573d6000803e3d6000fd5b505050506040513d602081101561281c57600080fd5b50519050600061282c8285612e42565b9050828110156128435761284084826129c5565b94505b5050505b60cd54610d97906001600160a01b0316338461216f565b60006128686114d8565b60cd54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156128b957600080fd5b505afa1580156128cd573d6000803e3d6000fd5b505050506040513d60208110156128e357600080fd5b505160cd54909150612900906001600160a01b0316333086612e84565b60cd54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561294b57600080fd5b505afa15801561295f573d6000803e3d6000fd5b505050506040513d602081101561297557600080fd5b505190506129838183612e42565b9350600061298f610a2a565b61299a5750836129b3565b6129b0846110956129a9610a2a565b8890612a1f565b90505b6129bd8682612ee4565b505050505050565b600082820183811015611498576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082612a2e57506000610a24565b82820282848281612a3b57fe5b04146114985760405162461bcd60e51b81526004018080602001828103825260218152602001806134bf6021913960400191505060405180910390fd5b600061149883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612fd6565b6067546001600160a01b0316331480612add57506065546001600160a01b031633145b6112c4576040805162461bcd60e51b81526020600482015260146024820152736f6e6c79417574686f72697a65644163746f727360601b604482015290519081900360640190fd5b60008184841115612bb45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612b79578181015183820152602001612b61565b50505050905090810190601f168015612ba65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610a20612bc96121c1565b848461249a565b610e93338261285e565b303b1590565b600054610100900460ff1680612bf95750612bf9612bda565b80612c07575060005460ff16155b612c425760405162461bcd60e51b815260040180806020018281038252602e815260200180613491602e913960400191505060405180910390fd5b600054610100900460ff16158015612c6d576000805460ff1961ff0019909116610100171660011790555b612c7561303b565b612c7f83836130dc565b8015610d97576000805461ff0019169055505050565b6060612cea826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166131b49092919063ffffffff16565b805190915015610d9757808060200190516020811015612d0957600080fd5b5051610d975760405162461bcd60e51b815260040180806020018281038252602a815260200180613598602a913960400191505060405180910390fd5b6001600160a01b038216612d8b5760405162461bcd60e51b81526004018080602001828103825260218152602001806135086021913960400191505060405180910390fd5b612d9782600083610d97565b612dd481604051806060016040528060228152602001613407602291396001600160a01b0385166000908152603360205260409020549190612b25565b6001600160a01b038316600090815260336020526040902055603554612dfa9082612e42565b6035556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061149883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612b25565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612ede908590612c95565b50505050565b6001600160a01b038216612f3f576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b612f4b60008383610d97565b603554612f5890826129c5565b6035556001600160a01b038216600090815260336020526040902054612f7e90826129c5565b6001600160a01b03831660008181526033602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600081836130255760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612b79578181015183820152602001612b61565b50600083858161303157fe5b0495945050505050565b600054610100900460ff16806130545750613054612bda565b80613062575060005460ff16155b61309d5760405162461bcd60e51b815260040180806020018281038252602e815260200180613491602e913960400191505060405180910390fd5b600054610100900460ff161580156130c8576000805460ff1961ff0019909116610100171660011790555b8015610e93576000805461ff001916905550565b600054610100900460ff16806130f557506130f5612bda565b80613103575060005460ff16155b61313e5760405162461bcd60e51b815260040180806020018281038252602e815260200180613491602e913960400191505060405180910390fd5b600054610100900460ff16158015613169576000805460ff1961ff0019909116610100171660011790555b825161317c906036906020860190613350565b508151613190906037906020850190613350565b506038805460ff191660121790558015610d97576000805461ff0019169055505050565b6060610bdd848460008560606131c98561332b565b61321a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106132595780518252601f19909201916020918201910161323a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146132bb576040519150601f19603f3d011682016040523d82523d6000602084013e6132c0565b606091505b509150915081156132d4579150610bdd9050565b8051156132e45780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612b79578181015183820152602001612b61565b3b151590565b604051806101600160405280600b906020820280368337509192915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061339157805160ff19168380011785556133be565b828001600101855582156133be579182015b828111156133be5782518255916020019190600101906133a3565b506133ca9291506133ce565b5090565b5b808211156133ca57600081556001016133cf56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655061757361626c653a2047414320506175736564000000000000000000000000496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f20616464726573737472616e7366657246726f6d3a20474143207472616e7366657246726f6d44697361626c656445524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ed737eeefcf02f13bf9c2ff5820a6ebd0ed29d6818954e55d7a9afb6400b771f64736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025e5760003560e01c8063748747e611610146578063b69ef8a8116100c3578063dd62ed3e11610087578063dd62ed3e146106a5578063de5f6268146106d3578063e77b5ad6146106db578063f77c479114610833578063f88979451461083b578063fc0c546a146108435761025e565b8063b69ef8a81461062c578063b6b55f2514610634578063c7b9d53014610651578063d389800f14610677578063d8b964e61461067f5761025e565b806395d89b411161010a57806395d89b411461059e578063a457c2d7146105a6578063a9059cbb146105d2578063ab033ea9146105fe578063aced1661146106245761025e565b8063748747e61461051c57806377c7b8fc146105425780637c61e8651461054a578063853828b61461057057806392eefe9b146105785761025e565b80632f4f21e2116101df57806348a0d754116101a357806348a0d754146104b05780634a157c7b146104b85780635aa6e675146104c05780636ac5db19146104c85780636c361865146104d057806370a08231146104f65761025e565b80632f4f21e214610415578063313ce567146104415780633589c5931461045f578063395093511461046757806345dc3dd8146104935761025e565b806323b872dd1161022657806323b872dd1461038c5780632530b145146103c257806325fe78df146103ca578063269ac051146103d25780632e1a7d4d146103f85761025e565b8063018ee9b71461026357806306fdde0314610291578063095ea7b31461030e57806318160ddd1461034e5780631fe4a68614610368575b600080fd5b61028f6004803603604081101561027957600080fd5b506001600160a01b03813516906020013561084b565b005b610299610975565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102d35781810151838201526020016102bb565b50505050905090810190601f1680156103005780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61033a6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610a0c565b604080519115158252519081900360200190f35b610356610a2a565b60408051918252519081900360200190f35b610370610a30565b604080516001600160a01b039092168252519081900360200190f35b61033a600480360360608110156103a257600080fd5b506001600160a01b03813581169160208101359091169060400135610a3f565b610370610be5565b61028f610bfd565b610356600480360360208110156103e857600080fd5b50356001600160a01b0316610d9c565b61028f6004803603602081101561040e57600080fd5b5035610dae565b61028f6004803603604081101561042b57600080fd5b506001600160a01b038135169060200135610e96565b610449610f85565b6040805160ff9092168252519081900360200190f35b610370610f8e565b61033a6004803603604081101561047d57600080fd5b506001600160a01b038135169060200135610fa6565b61028f600480360360208110156104a957600080fd5b5035610ff9565b610356611006565b61028f6110a0565b6103706110e6565b6103566110f5565b61028f600480360360208110156104e657600080fd5b50356001600160a01b03166110fb565b6103566004803603602081101561050c57600080fd5b50356001600160a01b0316611127565b61028f6004803603602081101561053257600080fd5b50356001600160a01b0316611142565b61035661116c565b61028f6004803603602081101561056057600080fd5b50356001600160a01b03166111ae565b61028f6111d7565b61028f6004803603602081101561058e57600080fd5b50356001600160a01b03166112c6565b6102996112f0565b61033a600480360360408110156105bc57600080fd5b506001600160a01b038135169060200135611351565b61033a600480360360408110156105e857600080fd5b506001600160a01b0381351690602001356113b9565b61028f6004803603602081101561061457600080fd5b50356001600160a01b031661149f565b6103706114c9565b6103566114d8565b61028f6004803603602081101561064a57600080fd5b50356115d5565b61028f6004803603602081101561066757600080fd5b50356001600160a01b03166116ba565b61028f6116e4565b61033a6004803603602081101561069557600080fd5b50356001600160a01b0316611842565b610356600480360360408110156106bb57600080fd5b506001600160a01b0381358116916020013516611857565b61028f611882565b61028f600480360360e08110156106f157600080fd5b6001600160a01b0382358116926020810135821692604082013583169260608301351691608081013515159181019060c0810160a0820135600160201b81111561073a57600080fd5b82018360208201111561074c57600080fd5b803590602001918460018302840111600160201b8311171561076d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156107bf57600080fd5b8201836020820111156107d157600080fd5b803590602001918460018302840111600160201b831117156107f257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506119db945050505050565b6103706120fb565b61035661210a565b610370612110565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561089857600080fd5b505afa1580156108ac573d6000803e3d6000fd5b505050506040513d60208110156108c257600080fd5b505115610904576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b61090c61211f565b60cd546001600160a01b0383811691161415610957576040805162461bcd60e51b81526020600482015260056024820152643a37b5b2b760d91b604482015290519081900360640190fd5b60cf54610971906001600160a01b0384811691168361216f565b5050565b60368054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a015780601f106109d657610100808354040283529160200191610a01565b820191906000526020600020905b8154815290600101906020018083116109e457829003601f168201915b505050505090505b90565b6000610a20610a196121c1565b84846121c5565b5060015b92915050565b60355490565b6066546001600160a01b031681565b6000739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a8e57600080fd5b505afa158015610aa2573d6000803e3d6000fd5b505050506040513d6020811015610ab857600080fd5b505115610afa576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b610b026122b1565b610b0b33612302565b610b1484612302565b610b1d83612302565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635fcd7bd36040518163ffffffff1660e01b815260040160206040518083038186803b158015610b6a57600080fd5b505afa158015610b7e573d6000803e3d6000fd5b505050506040513d6020811015610b9457600080fd5b505115610bd25760405162461bcd60e51b81526004018080602001828103825260268152602001806135296026913960400191505060405180910390fd5b610bdd8484846123c8565b949350505050565b739faa327aaf1b564b569cb0bc0fdaa87052e8d92c81565b610c0561244a565b610c0d613331565b506040805161016081018252731fcdb04d0c5364fbd92c73ca8af9baa72c269107815273a33b95ea28542ada32117b60e4f5b4cb7d1fc19b6020820152734fbf7701b3078b5bed6f3e64df3ae09650ee7de591810191909152731b1b391d1026a4e3fb7f082ede068b25358a61f2606082015273ecd91d07b1b6b81d24f2a469de8e47e3fe3050fd608082015273691da2826ac32bbf2a4b5d6f2a07ce07552a9a8e60a08201527391d65d67fc573605bcb0b5e39f9ef6e18afa158660c0820152730b88a083dc7b8ac2a84eba02e4acb2e5f2d3063c60e0820152732ef1b70f195fd0432f9c36fb2ef7c99629b0398c61010082015273bbfd8041ebde22a7f3e19600b4bab4925cc97f7d61012082015273e06ed65924db2e7b4c83e07079a424c8a36701e5610140820152600b60005b81811015610d975760008382600b8110610d5457fe5b602002015190506000610d6682611127565b90508015610d8d57610d8d82739faa327aaf1b564b569cb0bc0fdaa87052e8d92c8361249a565b5050600101610d3e565b505050565b60d06020526000908152604090205481565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610dfb57600080fd5b505afa158015610e0f573d6000803e3d6000fd5b505050506040513d6020811015610e2557600080fd5b505115610e67576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b610e6f6125f7565b50610e786122b1565b610e8133612302565b610e8a33612665565b610e9381612681565b50565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ee357600080fd5b505afa158015610ef7573d6000803e3d6000fd5b505050506040513d6020811015610f0d57600080fd5b505115610f4f576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b610f576125f7565b50610f606122b1565b610f6933612302565b610f7282612302565b610f7b82612665565b610971828261285e565b60385460ff1690565b739c58b0d88578cd75154bdb7c8b013f7157bae35a81565b6000610a20610fb36121c1565b84610ff48560346000610fc46121c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906129c5565b6121c5565b61100161244a565b60ce55565b60ce5460cd54604080516370a0823160e01b8152306004820152905160009361109b9361271093611095936001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561106357600080fd5b505afa158015611077573d6000803e3d6000fd5b505050506040513d602081101561108d57600080fd5b505190612a1f565b90612a78565b905090565b6110a8612aba565b43427ffd60e70298d1c5272d3164dec70c527f1c64556cf7ca2dc10bdc753143ffc45b6110d361116c565b60408051918252519081900360200190a3565b6065546001600160a01b031681565b61271081565b61110361244a565b6001600160a01b03166000908152609a60205260409020805460ff19166001179055565b6001600160a01b031660009081526033602052604090205490565b61114a61244a565b606780546001600160a01b0319166001600160a01b0392909216919091179055565b6000611176610a2a565b6111895750670de0b6b3a7640000610a09565b61109b611194610a2a565b611095670de0b6b3a76400006111a86114d8565b90612a1f565b6111b661244a565b6001600160a01b03166000908152609a60205260409020805460ff19169055565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561122457600080fd5b505afa158015611238573d6000803e3d6000fd5b505050506040513d602081101561124e57600080fd5b505115611290576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b6112986125f7565b506112a16122b1565b6112aa33612302565b6112b333612665565b6112c46112bf33611127565b612681565b565b6112ce61244a565b60cf80546001600160a01b0319166001600160a01b0392909216919091179055565b60378054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a015780601f106109d657610100808354040283529160200191610a01565b6000610a2061135e6121c1565b84610ff4856040518060600160405280602581526020016135c260259139603460006113886121c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190612b25565b6000739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561140857600080fd5b505afa15801561141c573d6000803e3d6000fd5b505050506040513d602081101561143257600080fd5b505115611474576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b61147c6122b1565b61148533612302565b61148e83612302565b6114988383612bbc565b9392505050565b6114a761244a565b606580546001600160a01b0319166001600160a01b0392909216919091179055565b6067546001600160a01b031681565b60cf5460cd54604080516370a0823160e01b81526001600160a01b039283166004820152905160009361109b9316916370a08231916024808301926020929190829003018186803b15801561152c57600080fd5b505afa158015611540573d6000803e3d6000fd5b505050506040513d602081101561155657600080fd5b505160cd54604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156115a357600080fd5b505afa1580156115b7573d6000803e3d6000fd5b505050506040513d60208110156115cd57600080fd5b5051906129c5565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561162257600080fd5b505afa158015611636573d6000803e3d6000fd5b505050506040513d602081101561164c57600080fd5b50511561168e576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b6116966125f7565b5061169f6122b1565b6116a833612302565b6116b133612665565b610e9381612bd0565b6116c261244a565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561173157600080fd5b505afa158015611745573d6000803e3d6000fd5b505050506040513d602081101561175b57600080fd5b50511561179d576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b6117a5612aba565b60006117af611006565b60cf5460cd549192506117cf916001600160a01b0390811691168361216f565b60cf5460cd546040805163b02bf4b960e01b81526001600160a01b039283166004820152602481018590529051919092169163b02bf4b991604480830192600092919082900301818387803b15801561182757600080fd5b505af115801561183b573d6000803e3d6000fd5b5050505050565b609a6020526000908152604090205460ff1681565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b739c58b0d88578cd75154bdb7c8b013f7157bae35a6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156118cf57600080fd5b505afa1580156118e3573d6000803e3d6000fd5b505050506040513d60208110156118f957600080fd5b50511561193b576040805162461bcd60e51b81526020600482015260146024820152600080516020613471833981519152604482015290519081900360640190fd5b6119436125f7565b5061194c6122b1565b61195533612302565b61195e33612665565b60cd54604080516370a0823160e01b815233600482015290516112c4926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156119aa57600080fd5b505afa1580156119be573d6000803e3d6000fd5b505050506040513d60208110156119d457600080fd5b5051612bd0565b600054610100900460ff16806119f457506119f4612bda565b80611a02575060005460ff16155b611a3d5760405162461bcd60e51b815260040180806020018281038252602e815260200180613491602e913960400191505060405180910390fd5b600054610100900460ff16158015611a68576000805460ff1961ff0019909116610100171660011790555b60008890506060816001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015611aa857600080fd5b505afa158015611abc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611ae557600080fd5b8101908080516040519392919084600160201b821115611b0457600080fd5b908301906020820185811115611b1957600080fd5b8251600160201b811182820188101715611b3257600080fd5b82525081516020918201929091019080838360005b83811015611b5f578181015183820152602001611b47565b50505050905090810190601f168015611b8c5780820380516001836020036101000a031916815260200191505b5060405250505090506060826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015611bd057600080fd5b505afa158015611be4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611c0d57600080fd5b8101908080516040519392919084600160201b821115611c2c57600080fd5b908301906020820185811115611c4157600080fd5b8251600160201b811182820188101715611c5a57600080fd5b82525081516020918201929091019080838360005b83811015611c87578181015183820152602001611c6f565b50505050905090810190601f168015611cb45780820380516001836020036101000a031916815260200191505b5060405250505090506060808815611e315787846040516020018083805190602001908083835b60208310611cfa5780518252601f199092019160209182019101611cdb565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611d425780518252601f199092019160209182019101611d23565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915086836040516020018083805190602001908083835b60208310611dad5780518252601f199092019160209182019101611d8e565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611df55780518252601f199092019160209182019101611dd6565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529050611fc7565b6040518060400160405280600c81526020016b02130b233b2b91029b2ba3a160a51b815250846040516020018083805190602001908083835b60208310611e895780518252601f199092019160209182019101611e6a565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611ed15780518252601f199092019160209182019101611eb2565b51815160209384036101000a60001901801990921691161790526040805192909401828103601f1901835280850185526001808252603160f91b8284019081529551939a509097508a965091019350839291508083835b60208310611f475780518252601f199092019160209182019101611f28565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611f8f5780518252601f199092019160209182019101611f70565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405290505b611fd18282612be0565b8c60cd60006101000a8154816001600160a01b0302191690836001600160a01b031602179055508a606560006101000a8154816001600160a01b0302191690836001600160a01b031602179055506000606660006101000a8154816001600160a01b0302191690836001600160a01b0316021790555089606760006101000a8154816001600160a01b0302191690836001600160a01b031602179055508b60cf60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555061251c60ce8190555043427ffd60e70298d1c5272d3164dec70c527f1c64556cf7ca2dc10bdc753143ffc45b6120c961116c565b60408051918252519081900360200190a3505050505080156120f1576000805461ff00191690555b5050505050505050565b60cf546001600160a01b031681565b60ce5481565b60cd546001600160a01b031681565b60cf546001600160a01b031633146112c4576040805162461bcd60e51b815260206004820152600e60248201526d37b7363ca1b7b73a3937b63632b960911b604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d97908490612c95565b3390565b6001600160a01b03831661220a5760405162461bcd60e51b81526004018080602001828103825260248152602001806135746024913960400191505060405180910390fd5b6001600160a01b03821661224f5760405162461bcd60e51b81526004018080602001828103825260228152602001806134296022913960400191505060405180910390fd5b6001600160a01b03808416600081815260346020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b33600090815260d0602052604090205443116112c4576040805162461bcd60e51b815260206004820152600b60248201526a189b1bd8dad31bd8dad95960aa1b604482015290519081900360640190fd5b6040805163fe575a8760e01b81526001600160a01b03831660048201529051739c58b0d88578cd75154bdb7c8b013f7157bae35a9163fe575a87916024808301926020929190829003018186803b15801561235c57600080fd5b505afa158015612370573d6000803e3d6000fd5b505050506040513d602081101561238657600080fd5b505115610e93576040805162461bcd60e51b815260206004820152600b60248201526a189b1858dadb1a5cdd195960aa1b604482015290519081900360640190fd5b60006123d584848461249a565b612440846123e16121c1565b610ff4856040518060600160405280602881526020016134e0602891396001600160a01b038a1660009081526034602052604081209061241f6121c1565b6001600160a01b031681526020810191909152604001600020549190612b25565b5060019392505050565b6065546001600160a01b031633146112c4576040805162461bcd60e51b815260206004820152600e60248201526d6f6e6c79476f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b0383166124df5760405162461bcd60e51b815260040180806020018281038252602581526020018061354f6025913960400191505060405180910390fd5b6001600160a01b0382166125245760405162461bcd60e51b81526004018080602001828103825260238152602001806133e46023913960400191505060405180910390fd5b61252f838383610d97565b61256c8160405180606001604052806026815260200161344b602691396001600160a01b0386166000908152603360205260409020549190612b25565b6001600160a01b03808516600090815260336020526040808220939093559084168152205461259b90826129c5565b6001600160a01b0380841660008181526033602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b336000908152609a602052604081205460ff168061261457503332145b610a09576040805162461bcd60e51b815260206004820152601860248201527f4163636573732064656e69656420666f722063616c6c65720000000000000000604482015290519081900360640190fd5b6001600160a01b0316600090815260d060205260409020439055565b600061269a61268e610a2a565b611095846111a86114d8565b90506126a63383612d46565b60cd54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156126f157600080fd5b505afa158015612705573d6000803e3d6000fd5b505050506040513d602081101561271b57600080fd5b50519050818110156128475760006127338383612e42565b60cf5460cd546040805163f3fef3a360e01b81526001600160a01b03928316600482015260248101859052905193945091169163f3fef3a39160448082019260009290919082900301818387803b15801561278d57600080fd5b505af11580156127a1573d6000803e3d6000fd5b505060cd54604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b1580156127f257600080fd5b505afa158015612806573d6000803e3d6000fd5b505050506040513d602081101561281c57600080fd5b50519050600061282c8285612e42565b9050828110156128435761284084826129c5565b94505b5050505b60cd54610d97906001600160a01b0316338461216f565b60006128686114d8565b60cd54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156128b957600080fd5b505afa1580156128cd573d6000803e3d6000fd5b505050506040513d60208110156128e357600080fd5b505160cd54909150612900906001600160a01b0316333086612e84565b60cd54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561294b57600080fd5b505afa15801561295f573d6000803e3d6000fd5b505050506040513d602081101561297557600080fd5b505190506129838183612e42565b9350600061298f610a2a565b61299a5750836129b3565b6129b0846110956129a9610a2a565b8890612a1f565b90505b6129bd8682612ee4565b505050505050565b600082820183811015611498576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082612a2e57506000610a24565b82820282848281612a3b57fe5b04146114985760405162461bcd60e51b81526004018080602001828103825260218152602001806134bf6021913960400191505060405180910390fd5b600061149883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612fd6565b6067546001600160a01b0316331480612add57506065546001600160a01b031633145b6112c4576040805162461bcd60e51b81526020600482015260146024820152736f6e6c79417574686f72697a65644163746f727360601b604482015290519081900360640190fd5b60008184841115612bb45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612b79578181015183820152602001612b61565b50505050905090810190601f168015612ba65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610a20612bc96121c1565b848461249a565b610e93338261285e565b303b1590565b600054610100900460ff1680612bf95750612bf9612bda565b80612c07575060005460ff16155b612c425760405162461bcd60e51b815260040180806020018281038252602e815260200180613491602e913960400191505060405180910390fd5b600054610100900460ff16158015612c6d576000805460ff1961ff0019909116610100171660011790555b612c7561303b565b612c7f83836130dc565b8015610d97576000805461ff0019169055505050565b6060612cea826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166131b49092919063ffffffff16565b805190915015610d9757808060200190516020811015612d0957600080fd5b5051610d975760405162461bcd60e51b815260040180806020018281038252602a815260200180613598602a913960400191505060405180910390fd5b6001600160a01b038216612d8b5760405162461bcd60e51b81526004018080602001828103825260218152602001806135086021913960400191505060405180910390fd5b612d9782600083610d97565b612dd481604051806060016040528060228152602001613407602291396001600160a01b0385166000908152603360205260409020549190612b25565b6001600160a01b038316600090815260336020526040902055603554612dfa9082612e42565b6035556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061149883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612b25565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612ede908590612c95565b50505050565b6001600160a01b038216612f3f576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b612f4b60008383610d97565b603554612f5890826129c5565b6035556001600160a01b038216600090815260336020526040902054612f7e90826129c5565b6001600160a01b03831660008181526033602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600081836130255760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612b79578181015183820152602001612b61565b50600083858161303157fe5b0495945050505050565b600054610100900460ff16806130545750613054612bda565b80613062575060005460ff16155b61309d5760405162461bcd60e51b815260040180806020018281038252602e815260200180613491602e913960400191505060405180910390fd5b600054610100900460ff161580156130c8576000805460ff1961ff0019909116610100171660011790555b8015610e93576000805461ff001916905550565b600054610100900460ff16806130f557506130f5612bda565b80613103575060005460ff16155b61313e5760405162461bcd60e51b815260040180806020018281038252602e815260200180613491602e913960400191505060405180910390fd5b600054610100900460ff16158015613169576000805460ff1961ff0019909116610100171660011790555b825161317c906036906020860190613350565b508151613190906037906020850190613350565b506038805460ff191660121790558015610d97576000805461ff0019169055505050565b6060610bdd848460008560606131c98561332b565b61321a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106132595780518252601f19909201916020918201910161323a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146132bb576040519150601f19603f3d011682016040523d82523d6000602084013e6132c0565b606091505b509150915081156132d4579150610bdd9050565b8051156132e45780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612b79578181015183820152602001612b61565b3b151590565b604051806101600160405280600b906020820280368337509192915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061339157805160ff19168380011785556133be565b828001600101855582156133be579182015b828111156133be5782518255916020019190600101906133a3565b506133ca9291506133ce565b5090565b5b808211156133ca57600081556001016133cf56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655061757361626c653a2047414320506175736564000000000000000000000000496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f20616464726573737472616e7366657246726f6d3a20474143207472616e7366657246726f6d44697361626c656445524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ed737eeefcf02f13bf9c2ff5820a6ebd0ed29d6818954e55d7a9afb6400b771f64736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.