More Info
Private Name Tags
ContractCreator
Latest 18 from a total of 18 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 20697051 | 123 days ago | IN | 0 ETH | 0.0008657 | ||||
Harvest | 20442809 | 159 days ago | IN | 0 ETH | 0.00138383 | ||||
Harvest | 18843848 | 383 days ago | IN | 0 ETH | 0.01363326 | ||||
Harvest | 18741644 | 397 days ago | IN | 0 ETH | 0.01870434 | ||||
Harvest | 18683664 | 405 days ago | IN | 0 ETH | 0.01370971 | ||||
Harvest | 18635098 | 412 days ago | IN | 0 ETH | 0.01999319 | ||||
Harvest | 18592199 | 418 days ago | IN | 0 ETH | 0.0164474 | ||||
Harvest | 18553087 | 424 days ago | IN | 0 ETH | 0.01004123 | ||||
Harvest | 18534746 | 426 days ago | IN | 0 ETH | 0.02528401 | ||||
Harvest | 18478287 | 434 days ago | IN | 0 ETH | 0.01362767 | ||||
Harvest | 18462725 | 436 days ago | IN | 0 ETH | 0.00775992 | ||||
Harvest | 18428207 | 441 days ago | IN | 0 ETH | 0.04472238 | ||||
Transfer Ownersh... | 18421625 | 442 days ago | IN | 0 ETH | 0.00092827 | ||||
Harvest | 18421602 | 442 days ago | IN | 0 ETH | 0.01435434 | ||||
Set Treasury All... | 18415582 | 443 days ago | IN | 0 ETH | 0.00276948 | ||||
Set Reward Alloc... | 18415581 | 443 days ago | IN | 0 ETH | 0.00354281 | ||||
Set Fee Tokens | 18415580 | 443 days ago | IN | 0 ETH | 0.00413522 | ||||
Initialize | 18415576 | 443 days ago | IN | 0 ETH | 0.00452567 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
18415527 | 443 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
BeefyFeeBatchV4
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import { SafeERC20Upgradeable, IERC20Upgradeable } from "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol"; import { IBeefySwapper } from "../interfaces/beefy/IBeefySwapper.sol"; import { IBeefyRewardPool } from "../interfaces/beefy/IBeefyRewardPool.sol"; /// @title Beefy fee batch /// @author kexley, Beefy /// @notice All Beefy fees will flow through to the treasury and the reward pool /// @dev Wrapped ETH will build up on this contract and will be swapped via the Beefy Swapper to /// the pre-specified tokens and distributed to the treasury and reward pool contract BeefyFeeBatchV4 is OwnableUpgradeable { using SafeERC20Upgradeable for IERC20Upgradeable; /// @dev Bundled token information /// @param tokens Token addresses to swap to /// @param index Location of a token in the tokens array /// @param allocPoint Allocation points for this token /// @param totalAllocPoint Total amount of allocation points assigned to tokens in the array struct TokenInfo { address[] tokens; mapping(address => uint256) index; mapping(address => uint256) allocPoint; uint256 totalAllocPoint; } /// @notice Treasury address address public treasury; /// @notice Reward pool address address public rewardPool; /// @notice Swapper address to swap all tokens at address public swapper; /// @notice Treasury fee of the total native received on the contract (1 = 0.1%) uint256 public treasuryFee; /// @notice Duration of reward distributions uint256 public duration; /// @notice Tokens sent to this contract as fees address[] public feeTokens; /// @dev Tokens to be sent to the treasury TokenInfo private _treasuryTokens; /// @dev Tokens to be sent to the reward pool TokenInfo private _rewardTokens; /// @dev Denominator constant uint256 constant private DIVISOR = 1000; /// @notice Fees have been harvested /// @param feeToken Address of the fee token /// @param totalHarvested Total fee amount that has been processed event Harvest(address feeToken, uint256 totalHarvested); /// @notice Treasury fee that has been sent /// @param token Token that has been sent /// @param amount Amount of the token sent event DistributeTreasuryFee(address indexed token, uint256 amount); /// @notice Reward pool has been notified /// @param token Token used as a reward /// @param amount Amount of the token used /// @param duration Duration of the distribution event NotifyRewardPool(address indexed token, uint256 amount, uint256 duration); /// @notice Set fee tokens /// @param tokens Addresses of tokens to be received as fees event SetFeeTokens(address[] tokens); /// @notice Reward pool set /// @param rewardPool New reward pool address event SetRewardPool(address rewardPool); /// @notice Treasury set /// @param treasury New treasury address event SetTreasury(address treasury); /// @notice Swapper set /// @param swapper New swapper address event SetSwapper(address swapper); /// @notice Treasury fee set /// @param fee New fee split for the treasury event SetTreasuryFee(uint256 fee); /// @notice Reward pool duration set /// @param duration New duration of the reward distribution event SetDuration(uint256 duration); /// @notice Rescue an unsupported token /// @param token Address of the token /// @param recipient Address to send the token to event RescueTokens(address token, address recipient); /// @notice Initialize the contract, callable only once /// @param _rewardPool Reward pool address /// @param _treasury Treasury address /// @param _swapper Swapper address /// @param _treasuryFee Treasury fee split function initialize( address _rewardPool, address _treasury, address _swapper, uint256 _treasuryFee ) external initializer { __Ownable_init(); treasury = _treasury; rewardPool = _rewardPool; treasuryFee = _treasuryFee; swapper = _swapper; duration = 7 days; } /// @notice Distribute the fees to the treasury and reward pool function harvest() external { uint256 feeTokenLength = feeTokens.length; for (uint i; i < feeTokenLength;) { address feeToken = feeTokens[i]; uint256 fees = IERC20Upgradeable(feeToken).balanceOf(address(this)); emit Harvest(feeToken, fees); unchecked { ++i; } } _distribute(true); _distribute(false); } /// @dev Distribute the fees to the treasury or the reward pool /// @param _isTreasury Whether the fees are being distributed to the treasury or the reward pool function _distribute(bool _isTreasury) private { TokenInfo storage tokenInfo = _isTreasury ? _treasuryTokens : _rewardTokens; uint256 tokenLength = tokenInfo.tokens.length; for (uint i; i < tokenLength;) { address token = tokenInfo.tokens[i]; uint256 amount; uint256 feeTokenLength = feeTokens.length; for (uint j; j < feeTokenLength;) { address feeToken = feeTokens[j]; uint256 feeTokenTotal = IERC20Upgradeable(feeToken).balanceOf(address(this)); if (feeToken == token) feeTokenTotal -= amount; uint256 feeAmount = feeTokenTotal * tokenInfo.allocPoint[token] / tokenInfo.totalAllocPoint; if (_isTreasury) feeAmount = feeAmount * treasuryFee / DIVISOR; if (feeAmount > 0) { amount += feeToken == token ? feeAmount : IBeefySwapper(swapper).swap(feeToken, token, feeAmount); } unchecked { ++j; } } if (amount > 0) { if (_isTreasury) { IERC20Upgradeable(token).safeTransfer(treasury, amount); emit DistributeTreasuryFee(token, amount); } else { IBeefyRewardPool(rewardPool).notifyRewardAmount(token, amount, duration); emit NotifyRewardPool(token, amount, duration); } } unchecked { ++i; } } } /// @notice Information for the tokens to be sent to the treasury /// @param _id Index of the treasury token array /// @return token Address of the token /// @return allocPoint Allocation of the treasury fee to be sent in this token function treasuryTokens(uint256 _id) external view returns (address token, uint256 allocPoint) { token = _treasuryTokens.tokens[_id]; allocPoint = _treasuryTokens.allocPoint[token]; } /// @notice Total allocation points for the treasury tokens /// @return totalAllocPoint Total allocation points function treasuryTotalAllocPoint() external view returns (uint256 totalAllocPoint) { totalAllocPoint = _treasuryTokens.totalAllocPoint; } /// @notice Information for the tokens to be sent to the reward pool /// @param _id Index of the reward token array /// @return token Address of the token /// @return allocPoint Allocation of the rewards to be sent in this token function rewardTokens(uint256 _id) external view returns (address token, uint256 allocPoint) { token = _rewardTokens.tokens[_id]; allocPoint = _rewardTokens.allocPoint[token]; } /// @notice Total allocation points for the reward tokens /// @return totalAllocPoint Total allocation points function rewardTotalAllocPoint() external view returns (uint256 totalAllocPoint) { totalAllocPoint = _rewardTokens.totalAllocPoint; } /* ----------------------------------- VARIABLE SETTERS ----------------------------------- */ /// @notice Set which tokens are sent to this contract as fees /// @param _feeTokens Array of fee token addresses function setFeeTokens(address[] calldata _feeTokens) external onlyOwner { for (uint i; i < feeTokens.length; ++i) { IERC20Upgradeable(feeTokens[i]).forceApprove(swapper, 0); } feeTokens = _feeTokens; for (uint i; i < _feeTokens.length; ++i) { IERC20Upgradeable(_feeTokens[i]).forceApprove(swapper, type(uint).max); } emit SetFeeTokens(_feeTokens); } /// @notice Adjust which tokens and how much the harvest should swap the treasury fee to /// @param _token Address of the token to send to the treasury /// @param _allocPoint How much to swap into the particular token from the treasury fee function setTreasuryAllocPoint(address _token, uint256 _allocPoint) external onlyOwner { _setAllocPoint(_treasuryTokens, _token, _allocPoint); } /// @notice Adjust which tokens and how much the harvest should swap the reward pool fee to /// @param _token Address of the token to send to the reward pool /// @param _allocPoint How much to swap into the particular token from the reward pool fee function setRewardAllocPoint(address _token, uint256 _allocPoint) external onlyOwner { _setAllocPoint(_rewardTokens, _token, _allocPoint); if (_allocPoint > 0) { IERC20Upgradeable(_token).forceApprove(rewardPool, type(uint).max); } else { IERC20Upgradeable(_token).forceApprove(rewardPool, 0); } } /// @dev Adjust the allocation for treasury or rewards /// @param _tokenInfo Token basket to make changes to /// @param _token Token to change allocation for /// @param _allocPoint New allocation amount function _setAllocPoint( TokenInfo storage _tokenInfo, address _token, uint256 _allocPoint ) internal { if (_tokenInfo.allocPoint[_token] > 0 && _allocPoint == 0) { address endToken = _tokenInfo.tokens[_tokenInfo.tokens.length - 1]; _tokenInfo.index[endToken] = _tokenInfo.index[_token]; _tokenInfo.tokens[_tokenInfo.index[endToken]] = endToken; _tokenInfo.tokens.pop(); } else if (_tokenInfo.allocPoint[_token] == 0 && _allocPoint > 0) { _tokenInfo.index[_token] = _tokenInfo.tokens.length; _tokenInfo.tokens.push(_token); } _tokenInfo.totalAllocPoint -= _tokenInfo.allocPoint[_token]; _tokenInfo.totalAllocPoint += _allocPoint; _tokenInfo.allocPoint[_token] = _allocPoint; } /// @notice Set the reward pool /// @param _rewardPool New reward pool address function setRewardPool(address _rewardPool) external onlyOwner { address oldRewardPool = rewardPool; rewardPool = _rewardPool; for (uint i; i < _rewardTokens.tokens.length; ++i) { address token = _rewardTokens.tokens[i]; IERC20Upgradeable(token).forceApprove(oldRewardPool, 0); IERC20Upgradeable(token).forceApprove(_rewardPool, type(uint).max); } emit SetRewardPool(_rewardPool); } /// @notice Set the treasury /// @param _treasury New treasury address function setTreasury(address _treasury) external onlyOwner { treasury = _treasury; emit SetTreasury(_treasury); } /// @notice Set the swapper /// @param _swapper New swapper address function setSwapper(address _swapper) external onlyOwner { address oldSwapper = swapper; for (uint i; i < feeTokens.length; ++i) { address feeToken = feeTokens[i]; IERC20Upgradeable(feeToken).forceApprove(oldSwapper, 0); IERC20Upgradeable(feeToken).forceApprove(_swapper, type(uint).max); } swapper = _swapper; emit SetSwapper(_swapper); } /// @notice Set the treasury fee /// @param _treasuryFee New treasury fee split function setTreasuryFee(uint256 _treasuryFee) external onlyOwner { if (_treasuryFee > DIVISOR) _treasuryFee = DIVISOR; treasuryFee = _treasuryFee; emit SetTreasuryFee(_treasuryFee); } /// @notice Set the duration of the reward distribution /// @param _duration New duration of the reward distribution function setDuration(uint256 _duration) external onlyOwner { duration = _duration; emit SetDuration(_duration); } /* ------------------------------------- SWEEP TOKENS ------------------------------------- */ /// @notice Rescue an unsupported token /// @param _token Address of the token /// @param _recipient Address to send the token to function rescueTokens(address _token, address _recipient) external onlyOwner { uint256 amount = IERC20Upgradeable(_token).balanceOf(address(this)); IERC20Upgradeable(_token).safeTransfer(_recipient, amount); emit RescueTokens(_token, _recipient); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @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 proxied contracts do not make use of 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. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * 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 {ERC1967Proxy-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. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized != type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20PermitUpgradeable { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; import "../extensions/IERC20PermitUpgradeable.sol"; import "../../../utils/AddressUpgradeable.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { using AddressUpgradeable for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ 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' 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20PermitUpgradeable token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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"); (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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 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 onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IBeefyRewardPool { function stake(uint256 amount) external; function withdraw(uint256 amount) external; function getReward() external; function earned(address user, address reward) external view returns (uint256); function notifyRewardAmount(address reward, uint256 amount, uint256 duration) external; function removeReward(address reward, address recipient) external; function rescueTokens(address token, address recipient) external; function setWhitelist(address manager, bool whitelisted) external; function transferOwnership(address owner) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IBeefySwapper { function swap( address fromToken, address toToken, uint256 amountIn ) external returns (uint256 amountOut); function swap( address fromToken, address toToken, uint256 amountIn, uint256 minAmountOut ) external returns (uint256 amountOut); function getAmountOut( address _fromToken, address _toToken, uint256 _amountIn ) external view returns (uint256 amountOut); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DistributeTreasuryFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalHarvested","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"NotifyRewardPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"RescueTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"SetDuration","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"SetFeeTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"rewardPool","type":"address"}],"name":"SetRewardPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"swapper","type":"address"}],"name":"SetSwapper","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasury","type":"address"}],"name":"SetTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"SetTreasuryFee","type":"event"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"feeTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardPool","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_swapper","type":"address"},{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTotalAllocPoint","outputs":[{"internalType":"uint256","name":"totalAllocPoint","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_feeTokens","type":"address[]"}],"name":"setFeeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"setRewardAllocPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardPool","type":"address"}],"name":"setRewardPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_swapper","type":"address"}],"name":"setSwapper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"setTreasuryAllocPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"setTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"treasuryTokens","outputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryTotalAllocPoint","outputs":[{"internalType":"uint256","name":"totalAllocPoint","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611a28806100206000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80637bb7bed1116100c3578063cf756fdf1161007c578063cf756fdf146102c8578063f0f44260146102db578063f2fde38b146102ee578063f5a5485514610301578063f6be71d114610314578063f7b1428b1461032757600080fd5b80637bb7bed1146102625780638da5cb5b146102755780638ef4403c146102865780639c82f2a414610299578063b293fdc5146102ac578063cc32d176146102bf57600080fd5b80635647e8c9116101155780635647e8c91461020657806361d027b31461020e57806366666aa914610221578063715018a61461023457806377e741c71461023c57806378238c371461024f57600080fd5b806303e24d171461015d5780630fb5a6b4146101725780632b3297f91461018e5780632c613a14146101b95780634641257d146101eb5780635431c94e146101f3575b600080fd5b61017061016b36600461169b565b61032f565b005b61017b60695481565b6040519081526020015b60405180910390f35b6067546101a1906001600160a01b031681565b6040516001600160a01b039091168152602001610185565b6101cc6101c73660046116c5565b610347565b604080516001600160a01b039093168352602083019190915201610185565b61017061038f565b6101706102013660046116de565b610490565b606e5461017b565b6065546101a1906001600160a01b031681565b6066546101a1906001600160a01b031681565b610170610561565b61017061024a3660046116c5565b610575565b61017061025d366004611711565b6105c8565b6101cc6102703660046116c5565b6106a0565b6033546001600160a01b03166101a1565b6101a16102943660046116c5565b6106e8565b6101706102a7366004611711565b610712565b6101706102ba366004611733565b6107e1565b61017b60685481565b6101706102d63660046117a8565b6108ef565b6101706102e9366004611711565b610a52565b6101706102fc366004611711565b610aa8565b61017061030f36600461169b565b610b1e565b6101706103223660046116c5565b610b6f565b60725461017b565b610337610bac565b610343606b8383610c06565b5050565b600080606b6000018381548110610360576103606117f3565b60009182526020808320909101546001600160a01b0316808352606d9091526040909120549094909350915050565b606a5460005b81811015610478576000606a82815481106103b2576103b26117f3565b60009182526020822001546040516370a0823160e01b81523060048201526001600160a01b03909116925082906370a0823190602401602060405180830381865afa158015610405573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104299190611809565b604080516001600160a01b0385168152602081018390529192507fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba910160405180910390a15050600101610395565b506104836001610de1565b61048d6000610de1565b50565b610498610bac565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156104df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105039190611809565b90506105196001600160a01b0384168383611151565b604080516001600160a01b038086168252841660208201527fbfad076d6a1d05fa5f54965cabe504bdca88c511c84830d3ae5e52be23632dd0910160405180910390a1505050565b610569610bac565b61057360006111b9565b565b61057d610bac565b6103e881111561058c57506103e85b60688190556040518181527fa7c4c731ff77ef9526cef11cdc6945803b9d84efb979c9e9c1c700938d5616a3906020015b60405180910390a150565b6105d0610bac565b606680546001600160a01b038381166001600160a01b03198316179092551660005b606f5481101561065e576000606f6000018281548110610614576106146117f3565b60009182526020822001546001600160a01b03169150610637908290859061120b565b61064d6001600160a01b0382168560001961120b565b5061065781611838565b90506105f2565b506040516001600160a01b03831681527f173d73afad648e625c4a53878536f7a2debed1f51a04f21d728bce3cf534fcc1906020015b60405180910390a15050565b600080606f60000183815481106106b9576106b96117f3565b60009182526020808320909101546001600160a01b031680835260719091526040909120549094909350915050565b606a81815481106106f857600080fd5b6000918252602090912001546001600160a01b0316905081565b61071a610bac565b6067546001600160a01b031660005b606a54811015610792576000606a8281548110610748576107486117f3565b60009182526020822001546001600160a01b0316915061076b908290859061120b565b6107816001600160a01b0382168560001961120b565b5061078b81611838565b9050610729565b50606780546001600160a01b0319166001600160a01b0384169081179091556040519081527f211f06c051495b535b79192c1a4531d819d569657ff4bd16daa8e9e5e6ed2bfd90602001610694565b6107e9610bac565b60005b606a5481101561084a57606754606a805461083a926001600160a01b0316916000918590811061081e5761081e6117f3565b6000918252602090912001546001600160a01b0316919061120b565b61084381611838565b90506107ec565b50610857606a8383611607565b5060005b818110156108bd576067546108ad906001600160a01b0316600019858585818110610888576108886117f3565b905060200201602081019061089d9190611711565b6001600160a01b0316919061120b565b6108b681611838565b905061085b565b507fd426742c47f2338f5f21ee5f1f8219c4788c770a813bfc6db4949eab29a846b08282604051610694929190611851565b600054610100900460ff161580801561090f5750600054600160ff909116105b806109295750303b158015610929575060005460ff166001145b6109915760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff1916600117905580156109b4576000805461ff0019166101001790555b6109bc61129a565b606580546001600160a01b038087166001600160a01b031992831617909255606680548884169083161790556068849055606780549286169290911691909117905562093a806069558015610a4b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b610a5a610bac565b606580546001600160a01b0319166001600160a01b0383169081179091556040519081527fcb7ef3e545f5cdb893f5c568ba710fe08f336375a2d9fd66e161033f8fc09ef3906020016105bd565b610ab0610bac565b6001600160a01b038116610b155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610988565b61048d816111b9565b610b26610bac565b610b32606f8383610c06565b8015610b5457606654610343906001600160a01b03848116911660001961120b565b606654610343906001600160a01b038481169116600061120b565b610b77610bac565b60698190556040518181527f30e4fe018f9748721db1d6cfa76687e1ff0f75594888399281701125a49774ee906020016105bd565b6033546001600160a01b031633146105735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610988565b6001600160a01b038216600090815260028401602052604090205415801590610c2d575080155b15610d035782546000908490610c459060019061189d565b81548110610c5557610c556117f3565b60009182526020808320909101546001600160a01b03868116845260018801909252604080842054929091168084529220819055855491925082918691908110610ca157610ca16117f3565b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790558354849080610cdb57610cdb6118b0565b600082815260209020810160001990810180546001600160a01b031916905501905550610d71565b6001600160a01b0382166000908152600284016020526040902054158015610d2b5750600081115b15610d715782546001600160a01b038316600081815260018087016020908152604083208590559084018755868252902090910180546001600160a01b03191690911790555b6001600160a01b038216600090815260028401602052604081205460038501805491929091610da190849061189d565b9250508190555080836003016000828254610dbc91906118c6565b90915550506001600160a01b0390911660009081526002909201602052604090912055565b600081610def57606f610df2565b606b5b805490915060005b8181101561114b576000836000018281548110610e1957610e196117f3565b6000918252602082200154606a546001600160a01b039091169250815b8181101561100f576000606a8281548110610e5357610e536117f3565b60009182526020822001546040516370a0823160e01b81523060048201526001600160a01b03909116925082906370a0823190602401602060405180830381865afa158015610ea6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eca9190611809565b9050856001600160a01b0316826001600160a01b031603610ef257610eef858261189d565b90505b60038901546001600160a01b038716600090815260028b016020526040812054909190610f1f90846118d9565b610f2991906118f0565b90508a15610f4f576103e860685482610f4291906118d9565b610f4c91906118f0565b90505b801561100157866001600160a01b0316836001600160a01b031614610ff257606754604051630df791e560e41b81526001600160a01b0385811660048301528981166024830152604482018490529091169063df791e50906064016020604051808303816000875af1158015610fc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fed9190611809565b610ff4565b805b610ffe90876118c6565b95505b836001019350505050610e36565b50811561113d57861561107e57606554611036906001600160a01b03858116911684611151565b826001600160a01b03167f102adaae7a3a17c98c67effcb69ac81695728ae3130dde2c1cfd9e7fe412ce948360405161107191815260200190565b60405180910390a261113d565b6066546069546040516328f362b160e21b81526001600160a01b03868116600483015260248201869052604482019290925291169063a3cd8ac490606401600060405180830381600087803b1580156110d657600080fd5b505af11580156110ea573d6000803e3d6000fd5b50505050826001600160a01b03167f8686eb89a89ae527cfd2dd59fa36fc67670d4ddc062e5149e826cd6c12dc3e3683606954604051611134929190918252602082015260400190565b60405180910390a25b836001019350505050610dfa565b50505050565b6040516001600160a01b0383166024820152604481018290526111b490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526112c9565b505050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261125c848261139e565b61114b576040516001600160a01b03841660248201526000604482015261129090859063095ea7b360e01b9060640161117d565b61114b84826112c9565b600054610100900460ff166112c15760405162461bcd60e51b815260040161098890611912565b610573611447565b600061131e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114779092919063ffffffff16565b905080516000148061133f57508080602001905181019061133f919061195d565b6111b45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610988565b6000806000846001600160a01b0316846040516113bb91906119a3565b6000604051808303816000865af19150503d80600081146113f8576040519150601f19603f3d011682016040523d82523d6000602084013e6113fd565b606091505b5091509150818015611427575080511580611427575080806020019051810190611427919061195d565b801561143c57506001600160a01b0385163b15155b925050505b92915050565b600054610100900460ff1661146e5760405162461bcd60e51b815260040161098890611912565b610573336111b9565b6060611486848460008561148e565b949350505050565b6060824710156114ef5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610988565b600080866001600160a01b0316858760405161150b91906119a3565b60006040518083038185875af1925050503d8060008114611548576040519150601f19603f3d011682016040523d82523d6000602084013e61154d565b606091505b509150915061155e87838387611569565b979650505050505050565b606083156115d85782516000036115d1576001600160a01b0385163b6115d15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610988565b5081611486565b61148683838151156115ed5781518083602001fd5b8060405162461bcd60e51b815260040161098891906119bf565b82805482825590600052602060002090810192821561165a579160200282015b8281111561165a5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190611627565b5061166692915061166a565b5090565b5b80821115611666576000815560010161166b565b80356001600160a01b038116811461169657600080fd5b919050565b600080604083850312156116ae57600080fd5b6116b78361167f565b946020939093013593505050565b6000602082840312156116d757600080fd5b5035919050565b600080604083850312156116f157600080fd5b6116fa8361167f565b91506117086020840161167f565b90509250929050565b60006020828403121561172357600080fd5b61172c8261167f565b9392505050565b6000806020838503121561174657600080fd5b823567ffffffffffffffff8082111561175e57600080fd5b818501915085601f83011261177257600080fd5b81358181111561178157600080fd5b8660208260051b850101111561179657600080fd5b60209290920196919550909350505050565b600080600080608085870312156117be57600080fd5b6117c78561167f565b93506117d56020860161167f565b92506117e36040860161167f565b9396929550929360600135925050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561181b57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60006001820161184a5761184a611822565b5060010190565b60208082528181018390526000908460408401835b86811015611892576001600160a01b0361187f8461167f565b1682529183019190830190600101611866565b509695505050505050565b8181038181111561144157611441611822565b634e487b7160e01b600052603160045260246000fd5b8082018082111561144157611441611822565b808202811582820484141761144157611441611822565b60008261190d57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561196f57600080fd5b8151801515811461172c57600080fd5b60005b8381101561199a578181015183820152602001611982565b50506000910152565b600082516119b581846020870161197f565b9190910192915050565b60208152600082518060208401526119de81604085016020870161197f565b601f01601f1916919091016040019291505056fea2646970667358221220cd81fa5da0b2d6f3ac2398db7d569232feb3b6fcdcaec63243e0028b68c7379f64736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c80637bb7bed1116100c3578063cf756fdf1161007c578063cf756fdf146102c8578063f0f44260146102db578063f2fde38b146102ee578063f5a5485514610301578063f6be71d114610314578063f7b1428b1461032757600080fd5b80637bb7bed1146102625780638da5cb5b146102755780638ef4403c146102865780639c82f2a414610299578063b293fdc5146102ac578063cc32d176146102bf57600080fd5b80635647e8c9116101155780635647e8c91461020657806361d027b31461020e57806366666aa914610221578063715018a61461023457806377e741c71461023c57806378238c371461024f57600080fd5b806303e24d171461015d5780630fb5a6b4146101725780632b3297f91461018e5780632c613a14146101b95780634641257d146101eb5780635431c94e146101f3575b600080fd5b61017061016b36600461169b565b61032f565b005b61017b60695481565b6040519081526020015b60405180910390f35b6067546101a1906001600160a01b031681565b6040516001600160a01b039091168152602001610185565b6101cc6101c73660046116c5565b610347565b604080516001600160a01b039093168352602083019190915201610185565b61017061038f565b6101706102013660046116de565b610490565b606e5461017b565b6065546101a1906001600160a01b031681565b6066546101a1906001600160a01b031681565b610170610561565b61017061024a3660046116c5565b610575565b61017061025d366004611711565b6105c8565b6101cc6102703660046116c5565b6106a0565b6033546001600160a01b03166101a1565b6101a16102943660046116c5565b6106e8565b6101706102a7366004611711565b610712565b6101706102ba366004611733565b6107e1565b61017b60685481565b6101706102d63660046117a8565b6108ef565b6101706102e9366004611711565b610a52565b6101706102fc366004611711565b610aa8565b61017061030f36600461169b565b610b1e565b6101706103223660046116c5565b610b6f565b60725461017b565b610337610bac565b610343606b8383610c06565b5050565b600080606b6000018381548110610360576103606117f3565b60009182526020808320909101546001600160a01b0316808352606d9091526040909120549094909350915050565b606a5460005b81811015610478576000606a82815481106103b2576103b26117f3565b60009182526020822001546040516370a0823160e01b81523060048201526001600160a01b03909116925082906370a0823190602401602060405180830381865afa158015610405573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104299190611809565b604080516001600160a01b0385168152602081018390529192507fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba910160405180910390a15050600101610395565b506104836001610de1565b61048d6000610de1565b50565b610498610bac565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156104df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105039190611809565b90506105196001600160a01b0384168383611151565b604080516001600160a01b038086168252841660208201527fbfad076d6a1d05fa5f54965cabe504bdca88c511c84830d3ae5e52be23632dd0910160405180910390a1505050565b610569610bac565b61057360006111b9565b565b61057d610bac565b6103e881111561058c57506103e85b60688190556040518181527fa7c4c731ff77ef9526cef11cdc6945803b9d84efb979c9e9c1c700938d5616a3906020015b60405180910390a150565b6105d0610bac565b606680546001600160a01b038381166001600160a01b03198316179092551660005b606f5481101561065e576000606f6000018281548110610614576106146117f3565b60009182526020822001546001600160a01b03169150610637908290859061120b565b61064d6001600160a01b0382168560001961120b565b5061065781611838565b90506105f2565b506040516001600160a01b03831681527f173d73afad648e625c4a53878536f7a2debed1f51a04f21d728bce3cf534fcc1906020015b60405180910390a15050565b600080606f60000183815481106106b9576106b96117f3565b60009182526020808320909101546001600160a01b031680835260719091526040909120549094909350915050565b606a81815481106106f857600080fd5b6000918252602090912001546001600160a01b0316905081565b61071a610bac565b6067546001600160a01b031660005b606a54811015610792576000606a8281548110610748576107486117f3565b60009182526020822001546001600160a01b0316915061076b908290859061120b565b6107816001600160a01b0382168560001961120b565b5061078b81611838565b9050610729565b50606780546001600160a01b0319166001600160a01b0384169081179091556040519081527f211f06c051495b535b79192c1a4531d819d569657ff4bd16daa8e9e5e6ed2bfd90602001610694565b6107e9610bac565b60005b606a5481101561084a57606754606a805461083a926001600160a01b0316916000918590811061081e5761081e6117f3565b6000918252602090912001546001600160a01b0316919061120b565b61084381611838565b90506107ec565b50610857606a8383611607565b5060005b818110156108bd576067546108ad906001600160a01b0316600019858585818110610888576108886117f3565b905060200201602081019061089d9190611711565b6001600160a01b0316919061120b565b6108b681611838565b905061085b565b507fd426742c47f2338f5f21ee5f1f8219c4788c770a813bfc6db4949eab29a846b08282604051610694929190611851565b600054610100900460ff161580801561090f5750600054600160ff909116105b806109295750303b158015610929575060005460ff166001145b6109915760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff1916600117905580156109b4576000805461ff0019166101001790555b6109bc61129a565b606580546001600160a01b038087166001600160a01b031992831617909255606680548884169083161790556068849055606780549286169290911691909117905562093a806069558015610a4b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b610a5a610bac565b606580546001600160a01b0319166001600160a01b0383169081179091556040519081527fcb7ef3e545f5cdb893f5c568ba710fe08f336375a2d9fd66e161033f8fc09ef3906020016105bd565b610ab0610bac565b6001600160a01b038116610b155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610988565b61048d816111b9565b610b26610bac565b610b32606f8383610c06565b8015610b5457606654610343906001600160a01b03848116911660001961120b565b606654610343906001600160a01b038481169116600061120b565b610b77610bac565b60698190556040518181527f30e4fe018f9748721db1d6cfa76687e1ff0f75594888399281701125a49774ee906020016105bd565b6033546001600160a01b031633146105735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610988565b6001600160a01b038216600090815260028401602052604090205415801590610c2d575080155b15610d035782546000908490610c459060019061189d565b81548110610c5557610c556117f3565b60009182526020808320909101546001600160a01b03868116845260018801909252604080842054929091168084529220819055855491925082918691908110610ca157610ca16117f3565b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790558354849080610cdb57610cdb6118b0565b600082815260209020810160001990810180546001600160a01b031916905501905550610d71565b6001600160a01b0382166000908152600284016020526040902054158015610d2b5750600081115b15610d715782546001600160a01b038316600081815260018087016020908152604083208590559084018755868252902090910180546001600160a01b03191690911790555b6001600160a01b038216600090815260028401602052604081205460038501805491929091610da190849061189d565b9250508190555080836003016000828254610dbc91906118c6565b90915550506001600160a01b0390911660009081526002909201602052604090912055565b600081610def57606f610df2565b606b5b805490915060005b8181101561114b576000836000018281548110610e1957610e196117f3565b6000918252602082200154606a546001600160a01b039091169250815b8181101561100f576000606a8281548110610e5357610e536117f3565b60009182526020822001546040516370a0823160e01b81523060048201526001600160a01b03909116925082906370a0823190602401602060405180830381865afa158015610ea6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eca9190611809565b9050856001600160a01b0316826001600160a01b031603610ef257610eef858261189d565b90505b60038901546001600160a01b038716600090815260028b016020526040812054909190610f1f90846118d9565b610f2991906118f0565b90508a15610f4f576103e860685482610f4291906118d9565b610f4c91906118f0565b90505b801561100157866001600160a01b0316836001600160a01b031614610ff257606754604051630df791e560e41b81526001600160a01b0385811660048301528981166024830152604482018490529091169063df791e50906064016020604051808303816000875af1158015610fc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fed9190611809565b610ff4565b805b610ffe90876118c6565b95505b836001019350505050610e36565b50811561113d57861561107e57606554611036906001600160a01b03858116911684611151565b826001600160a01b03167f102adaae7a3a17c98c67effcb69ac81695728ae3130dde2c1cfd9e7fe412ce948360405161107191815260200190565b60405180910390a261113d565b6066546069546040516328f362b160e21b81526001600160a01b03868116600483015260248201869052604482019290925291169063a3cd8ac490606401600060405180830381600087803b1580156110d657600080fd5b505af11580156110ea573d6000803e3d6000fd5b50505050826001600160a01b03167f8686eb89a89ae527cfd2dd59fa36fc67670d4ddc062e5149e826cd6c12dc3e3683606954604051611134929190918252602082015260400190565b60405180910390a25b836001019350505050610dfa565b50505050565b6040516001600160a01b0383166024820152604481018290526111b490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526112c9565b505050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261125c848261139e565b61114b576040516001600160a01b03841660248201526000604482015261129090859063095ea7b360e01b9060640161117d565b61114b84826112c9565b600054610100900460ff166112c15760405162461bcd60e51b815260040161098890611912565b610573611447565b600061131e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114779092919063ffffffff16565b905080516000148061133f57508080602001905181019061133f919061195d565b6111b45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610988565b6000806000846001600160a01b0316846040516113bb91906119a3565b6000604051808303816000865af19150503d80600081146113f8576040519150601f19603f3d011682016040523d82523d6000602084013e6113fd565b606091505b5091509150818015611427575080511580611427575080806020019051810190611427919061195d565b801561143c57506001600160a01b0385163b15155b925050505b92915050565b600054610100900460ff1661146e5760405162461bcd60e51b815260040161098890611912565b610573336111b9565b6060611486848460008561148e565b949350505050565b6060824710156114ef5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610988565b600080866001600160a01b0316858760405161150b91906119a3565b60006040518083038185875af1925050503d8060008114611548576040519150601f19603f3d011682016040523d82523d6000602084013e61154d565b606091505b509150915061155e87838387611569565b979650505050505050565b606083156115d85782516000036115d1576001600160a01b0385163b6115d15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610988565b5081611486565b61148683838151156115ed5781518083602001fd5b8060405162461bcd60e51b815260040161098891906119bf565b82805482825590600052602060002090810192821561165a579160200282015b8281111561165a5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190611627565b5061166692915061166a565b5090565b5b80821115611666576000815560010161166b565b80356001600160a01b038116811461169657600080fd5b919050565b600080604083850312156116ae57600080fd5b6116b78361167f565b946020939093013593505050565b6000602082840312156116d757600080fd5b5035919050565b600080604083850312156116f157600080fd5b6116fa8361167f565b91506117086020840161167f565b90509250929050565b60006020828403121561172357600080fd5b61172c8261167f565b9392505050565b6000806020838503121561174657600080fd5b823567ffffffffffffffff8082111561175e57600080fd5b818501915085601f83011261177257600080fd5b81358181111561178157600080fd5b8660208260051b850101111561179657600080fd5b60209290920196919550909350505050565b600080600080608085870312156117be57600080fd5b6117c78561167f565b93506117d56020860161167f565b92506117e36040860161167f565b9396929550929360600135925050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561181b57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60006001820161184a5761184a611822565b5060010190565b60208082528181018390526000908460408401835b86811015611892576001600160a01b0361187f8461167f565b1682529183019190830190600101611866565b509695505050505050565b8181038181111561144157611441611822565b634e487b7160e01b600052603160045260246000fd5b8082018082111561144157611441611822565b808202811582820484141761144157611441611822565b60008261190d57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561196f57600080fd5b8151801515811461172c57600080fd5b60005b8381101561199a578181015183820152602001611982565b50506000910152565b600082516119b581846020870161197f565b9190910192915050565b60208152600082518060208401526119de81604085016020870161197f565b601f01601f1916919091016040019291505056fea2646970667358221220cd81fa5da0b2d6f3ac2398db7d569232feb3b6fcdcaec63243e0028b68c7379f64736f6c63430008130033
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.