Overview
FTM Balance
0 FTM
FTM Value
$0.00More Info
Private Name Tags
ContractCreator:
Sponsored
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 19787348 | 888 days ago | IN | Create: BeefyFeeBatchV2 | 0 FTM | 0.46280227 |
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
19787348 | 888 days ago | Contract Creation | 0 FTM |
Loading...
Loading
Contract Name:
BeefyFeeBatchV2
Compiler Version
v0.8.2+commit.661d1103
Contract Source Code (Solidity)
/** *Submitted for verification at ftmscan.com on 2021-10-22 */ // Sources flattened with hardhat v2.6.4 https://hardhat.org // File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected] // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 {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. */ 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 || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } } // File @openzeppelin/contracts-upgradeable/utils/[email protected] pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; } // File @openzeppelin/contracts-upgradeable/access/[email protected] pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * 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 initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; } // File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected] pragma solidity ^0.8.0; /** * @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); } // File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/[email protected] pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20MetadataUpgradeable is IERC20Upgradeable { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected] pragma solidity ^0.8.0; /** * @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 Contracts guidelines: functions revert * instead 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, IERC20MetadataUpgradeable { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two 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_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } 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] + 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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This 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); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(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: * * - `account` 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 += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(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 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 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} uint256[45] private __gap; } // File @openzeppelin/contracts-upgradeable/utils/[email protected] pragma solidity ^0.8.0; /** * @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 on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; 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"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts-upgradeable/token/ERC20/utils/[email protected] pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } 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"); uint256 newAllowance = oldAllowance - value; _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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/BIFI/infra/BeefyFeeBatchV2.sol pragma solidity 0.8.2; interface IRewardPool { function notifyRewardAmount(uint256 amount) external; function transferOwnership(address owner) external; } interface IUniswapRouter { function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); } contract BeefyFeeBatchV2 is Initializable, OwnableUpgradeable { using SafeERC20Upgradeable for IERC20Upgradeable; IERC20Upgradeable public wNative; IERC20Upgradeable public bifi; address public treasury; address public rewardPool; address public unirouter; // Fee constants uint constant public MAX_FEE = 1000; uint public treasuryFee; uint public rewardPoolFee; address[] public wNativeToBifiRoute; bool public routerInitialized; event NewRewardPool(address oldRewardPool, address newRewardPool); event NewTreasury(address oldTreasury, address newTreasury); event NewUnirouter(address oldUnirouter, address newUnirouter); event NewBifiRoute(address[] oldRoute, address[] newRoute); function initialize( address _bifi, address _wNative, address _treasury, address _rewardPool, address _unirouter ) public initializer { __Ownable_init(); bifi = IERC20Upgradeable(_bifi); wNative = IERC20Upgradeable(_wNative); treasury = _treasury; rewardPool = _rewardPool; treasuryFee = 140; rewardPoolFee = MAX_FEE - treasuryFee; if (unirouter != address(0x0)) { _initRouter(_unirouter); } wNativeToBifiRoute = [_wNative, _bifi]; } // Main function. Divides Beefy's profits. function harvest() public { uint256 wNativeBal = wNative.balanceOf(address(this)); if (routerInitialized) { uint256 treasuryHalf = wNativeBal * treasuryFee / MAX_FEE / 2; wNative.safeTransfer(treasury, treasuryHalf); IUniswapRouter(unirouter).swapExactTokensForTokens(treasuryHalf, 0, wNativeToBifiRoute, treasury, block.timestamp); } else { uint256 treasuryAmount = wNativeBal * treasuryFee / MAX_FEE; wNative.safeTransfer(treasury, treasuryAmount); } uint256 rewardPoolAmount = wNativeBal * rewardPoolFee / MAX_FEE; wNative.safeTransfer(rewardPool, rewardPoolAmount); IRewardPool(rewardPool).notifyRewardAmount(rewardPoolAmount); } // Manage the contract function setRewardPool(address _rewardPool) external onlyOwner { emit NewRewardPool(rewardPool, _rewardPool); rewardPool = _rewardPool; } function setTreasury(address _treasury) external onlyOwner { emit NewTreasury(treasury, _treasury); treasury = _treasury; } function initRouter(address _unirouter) public onlyOwner { _initRouter(_unirouter); } function _initRouter(address _unirouter) internal { unirouter = _unirouter; wNative.safeApprove(unirouter, type(uint).max); routerInitialized = true; } function setUnirouter(address _unirouter) external onlyOwner { require(routerInitialized, "!initialized"); emit NewUnirouter(unirouter, _unirouter); wNative.safeApprove(_unirouter, type(uint).max); wNative.safeApprove(unirouter, 0); unirouter = _unirouter; } function setNativeToBifiRoute(address[] memory _route) external onlyOwner { require(_route[0] == address(wNative), "!wNative"); require(_route[_route.length - 1] == address(bifi), "!bifi"); emit NewBifiRoute(wNativeToBifiRoute, _route); wNativeToBifiRoute = _route; } function setTreasuryFee(uint256 _fee) public onlyOwner { require(_fee <= MAX_FEE, "!cap"); treasuryFee = _fee; rewardPoolFee = MAX_FEE - treasuryFee; } // Rescue locked funds sent by mistake function inCaseTokensGetStuck(address _token, address _recipient) external onlyOwner { require(_token != address(wNative), "!safe"); uint256 amount = IERC20Upgradeable(_token).balanceOf(address(this)); IERC20Upgradeable(_token).safeTransfer(_recipient, amount); } function transferRewardPoolOwnership(address _newOwner) external onlyOwner { IRewardPool(rewardPool).transferOwnership(_newOwner); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"oldRoute","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"newRoute","type":"address[]"}],"name":"NewBifiRoute","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldRewardPool","type":"address"},{"indexed":false,"internalType":"address","name":"newRewardPool","type":"address"}],"name":"NewRewardPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldTreasury","type":"address"},{"indexed":false,"internalType":"address","name":"newTreasury","type":"address"}],"name":"NewTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldUnirouter","type":"address"},{"indexed":false,"internalType":"address","name":"newUnirouter","type":"address"}],"name":"NewUnirouter","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"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bifi","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_unirouter","type":"address"}],"name":"initRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bifi","type":"address"},{"internalType":"address","name":"_wNative","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_rewardPool","type":"address"},{"internalType":"address","name":"_unirouter","type":"address"}],"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":[],"name":"rewardPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPoolFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"routerInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_route","type":"address[]"}],"name":"setNativeToBifiRoute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardPool","type":"address"}],"name":"setRewardPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_unirouter","type":"address"}],"name":"setUnirouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferRewardPoolOwnership","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":[],"name":"unirouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wNative","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"wNativeToBifiRoute","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506118dd806100206000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806366666aa9116100c3578063bc063e1a1161007c578063bc063e1a146102a6578063c6854db8146102bd578063cc32d176146102c6578063d92f3d73146102cf578063f0f44260146102e2578063f2fde38b146102f55761014d565b806366666aa914610241578063715018a61461025457806377e741c71461025c57806378238c371461026f5780638da5cb5b14610282578063906cd40b146102935761014d565b80632d68efc9116101155780632d68efc9146101da5780634458020b146101ed5780634641257d146102005780634708dd5e146102085780634bb43fc21461021b57806361d027b31461022e5761014d565b80631166b44b146101525780631459457a146101675780631939bbc11461017a578063257ae0de1461018d5780632bd63831146101bd575b600080fd5b6101656101603660046113cd565b610308565b005b610165610175366004611419565b610347565b6101656101883660046113e7565b610470565b6069546101a0906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b606d546101ca9060ff1681565b60405190151581526020016101b4565b6065546101a0906001600160a01b031681565b6066546101a0906001600160a01b031681565b610165610575565b6101656102163660046113cd565b6107b9565b61016561022936600461147d565b610845565b6067546101a0906001600160a01b031681565b6068546101a0906001600160a01b031681565b6101656109bc565b61016561026a3660046115bd565b6109f2565b61016561027d3660046113cd565b610a6e565b6033546001600160a01b03166101a0565b6101a06102a13660046115bd565b610b01565b6102af6103e881565b6040519081526020016101b4565b6102af606b5481565b6102af606a5481565b6101656102dd3660046113cd565b610b2b565b6101656102f03660046113cd565b610c36565b6101656103033660046113cd565b610cc9565b6033546001600160a01b0316331461033b5760405162461bcd60e51b81526004016103329061172f565b60405180910390fd5b61034481610d61565b50565b600054610100900460ff1680610360575060005460ff16155b61037c5760405162461bcd60e51b8152600401610332906116e1565b600054610100900460ff161580156103a7576000805460ff1961ff0019909116610100171660011790555b6103af610da6565b606680546001600160a01b038089166001600160a01b03199283161790925560658054888416908316179055606780548784169083161790556068805492861692909116919091179055608c606a81905561040c906103e8611834565b606b556069546001600160a01b0316156104295761042982610d61565b604080518082019091526001600160a01b0380871682528716602082015261045590606c90600261133c565b508015610468576000805461ff00191690555b505050505050565b6033546001600160a01b0316331461049a5760405162461bcd60e51b81526004016103329061172f565b6065546001600160a01b03838116911614156104e05760405162461bcd60e51b8152602060048201526005602482015264217361666560d81b6044820152606401610332565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561052257600080fd5b505afa158015610536573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055a91906115d5565b90506105706001600160a01b0384168383610e2a565b505050565b6065546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156105b957600080fd5b505afa1580156105cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f191906115d5565b606d5490915060ff16156106e357600060026103e8606a54846106149190611815565b61061e91906117f5565b61062891906117f5565b606754606554919250610648916001600160a01b03908116911683610e2a565b6069546067546040516338ed173960e01b81526001600160a01b03928316926338ed173992610686928692600092606c929116904290600401611764565b600060405180830381600087803b1580156106a057600080fd5b505af11580156106b4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106dc9190810190611519565b5050610722565b60006103e8606a54836106f69190611815565b61070091906117f5565b606754606554919250610720916001600160a01b03908116911683610e2a565b505b60006103e8606b54836107359190611815565b61073f91906117f5565b60685460655491925061075f916001600160a01b03908116911683610e2a565b606854604051633c6b16ab60e01b8152600481018390526001600160a01b0390911690633c6b16ab90602401600060405180830381600087803b1580156107a557600080fd5b505af1158015610468573d6000803e3d6000fd5b6033546001600160a01b031633146107e35760405162461bcd60e51b81526004016103329061172f565b60685460405163f2fde38b60e01b81526001600160a01b0383811660048301529091169063f2fde38b90602401600060405180830381600087803b15801561082a57600080fd5b505af115801561083e573d6000803e3d6000fd5b5050505050565b6033546001600160a01b0316331461086f5760405162461bcd60e51b81526004016103329061172f565b60655481516001600160a01b0390911690829060009061089f57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316146108e85760405162461bcd60e51b815260206004820152600860248201526721774e617469766560c01b6044820152606401610332565b60665481516001600160a01b0390911690829061090790600190611834565b8151811061092557634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161461096b5760405162461bcd60e51b8152602060048201526005602482015264216269666960d81b6044820152606401610332565b7f87c6f79e7abb284656dc44f1ef4767a74344ec68149ef892ce9cc73fe80103c7606c8260405161099d92919061164f565b60405180910390a180516109b890606c90602084019061133c565b5050565b6033546001600160a01b031633146109e65760405162461bcd60e51b81526004016103329061172f565b6109f06000610e8d565b565b6033546001600160a01b03163314610a1c5760405162461bcd60e51b81526004016103329061172f565b6103e8811115610a575760405162461bcd60e51b8152600401610332906020808252600490820152630216361760e41b604082015260600190565b606a819055610a68816103e8611834565b606b5550565b6033546001600160a01b03163314610a985760405162461bcd60e51b81526004016103329061172f565b606854604080516001600160a01b03928316815291831660208301527fe3d88fc63ce6f40e089447cea2116e10d00cd00302225a3d4d57db7d456933b3910160405180910390a1606880546001600160a01b0319166001600160a01b0392909216919091179055565b606c8181548110610b1157600080fd5b6000918252602090912001546001600160a01b0316905081565b6033546001600160a01b03163314610b555760405162461bcd60e51b81526004016103329061172f565b606d5460ff16610b965760405162461bcd60e51b815260206004820152600c60248201526b085a5b9a5d1a585b1a5e995960a21b6044820152606401610332565b606954604080516001600160a01b03928316815291831660208301527f826424c54f0e53618740c75270163dc0ce89545f38164b0e4b3a265cf7314453910160405180910390a1606554610bf6906001600160a01b031682600019610edf565b606954606554610c14916001600160a01b0391821691166000610edf565b606980546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b03163314610c605760405162461bcd60e51b81526004016103329061172f565b606754604080516001600160a01b03928316815291831660208301527f567657fa3f286518b318f4a29870674f433f622fdfc819691acb13105b228225910160405180910390a1606780546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b03163314610cf35760405162461bcd60e51b81526004016103329061172f565b6001600160a01b038116610d585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610332565b61034481610e8d565b606980546001600160a01b0319166001600160a01b038381169190911791829055606554610d96929082169116600019610edf565b50606d805460ff19166001179055565b600054610100900460ff1680610dbf575060005460ff16155b610ddb5760405162461bcd60e51b8152600401610332906116e1565b600054610100900460ff16158015610e06576000805460ff1961ff0019909116610100171660011790555b610e0e611003565b610e16611076565b8015610344576000805461ff001916905550565b6040516001600160a01b03831660248201526044810182905261057090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526110df565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b801580610f685750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015610f2e57600080fd5b505afa158015610f42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6691906115d5565b155b610fd35760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610332565b6040516001600160a01b03831660248201526044810182905261057090849063095ea7b360e01b90606401610e56565b600054610100900460ff168061101c575060005460ff16155b6110385760405162461bcd60e51b8152600401610332906116e1565b600054610100900460ff16158015610e16576000805460ff1961ff0019909116610100171660011790558015610344576000805461ff001916905550565b600054610100900460ff168061108f575060005460ff16155b6110ab5760405162461bcd60e51b8152600401610332906116e1565b600054610100900460ff161580156110d6576000805460ff1961ff0019909116610100171660011790555b610e1633610e8d565b6000611134826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111b19092919063ffffffff16565b8051909150156105705780806020019051810190611152919061159d565b6105705760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610332565b60606111c084846000856111ca565b90505b9392505050565b60608247101561122b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610332565b611234856112f9565b6112805760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610332565b600080866001600160a01b0316858760405161129c9190611633565b60006040518083038185875af1925050503d80600081146112d9576040519150601f19603f3d011682016040523d82523d6000602084013e6112de565b606091505b50915091506112ee828286611303565b979650505050505050565b803b15155b919050565b606083156113125750816111c3565b8251156113225782518084602001fd5b8160405162461bcd60e51b815260040161033291906116ae565b828054828255906000526020600020908101928215611391579160200282015b8281111561139157825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061135c565b5061139d9291506113a1565b5090565b5b8082111561139d57600081556001016113a2565b80356001600160a01b03811681146112fe57600080fd5b6000602082840312156113de578081fd5b6111c3826113b6565b600080604083850312156113f9578081fd5b611402836113b6565b9150611410602084016113b6565b90509250929050565b600080600080600060a08688031215611430578081fd5b611439866113b6565b9450611447602087016113b6565b9350611455604087016113b6565b9250611463606087016113b6565b9150611471608087016113b6565b90509295509295909350565b6000602080838503121561148f578182fd5b823567ffffffffffffffff8111156114a5578283fd5b8301601f810185136114b5578283fd5b80356114c86114c3826117d1565b6117a0565b81815283810190838501858402850186018910156114e4578687fd5b8694505b8385101561150d576114f9816113b6565b8352600194909401939185019185016114e8565b50979650505050505050565b6000602080838503121561152b578182fd5b825167ffffffffffffffff811115611541578283fd5b8301601f81018513611551578283fd5b805161155f6114c3826117d1565b818152838101908385018584028501860189101561157b578687fd5b8694505b8385101561150d57805183526001949094019391850191850161157f565b6000602082840312156115ae578081fd5b815180151581146111c3578182fd5b6000602082840312156115ce578081fd5b5035919050565b6000602082840312156115e6578081fd5b5051919050565b6000815480845260208085019450838352808320835b838110156116285781546001600160a01b031687529582019560019182019101611603565b509495945050505050565b6000825161164581846020870161184b565b9190910192915050565b60006040825261166260408301856115ed565b828103602084810191909152845180835285820192820190845b818110156116a15784516001600160a01b03168352938301939183019160010161167c565b5090979650505050505050565b60006020825282518060208401526116cd81604085016020870161184b565b601f01601f19169190910160400192915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600086825285602083015260a0604083015261178360a08301866115ed565b6001600160a01b0394909416606083015250608001529392505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156117c9576117c9611891565b604052919050565b600067ffffffffffffffff8211156117eb576117eb611891565b5060209081020190565b60008261181057634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561182f5761182f61187b565b500290565b6000828210156118465761184661187b565b500390565b60005b8381101561186657818101518382015260200161184e565b83811115611875576000848401525b50505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220d36b59faa3bd295f5ab7cf062dd776a5ea96757e830f921a98bb2afb9f7c7d6764736f6c63430008020033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c806366666aa9116100c3578063bc063e1a1161007c578063bc063e1a146102a6578063c6854db8146102bd578063cc32d176146102c6578063d92f3d73146102cf578063f0f44260146102e2578063f2fde38b146102f55761014d565b806366666aa914610241578063715018a61461025457806377e741c71461025c57806378238c371461026f5780638da5cb5b14610282578063906cd40b146102935761014d565b80632d68efc9116101155780632d68efc9146101da5780634458020b146101ed5780634641257d146102005780634708dd5e146102085780634bb43fc21461021b57806361d027b31461022e5761014d565b80631166b44b146101525780631459457a146101675780631939bbc11461017a578063257ae0de1461018d5780632bd63831146101bd575b600080fd5b6101656101603660046113cd565b610308565b005b610165610175366004611419565b610347565b6101656101883660046113e7565b610470565b6069546101a0906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b606d546101ca9060ff1681565b60405190151581526020016101b4565b6065546101a0906001600160a01b031681565b6066546101a0906001600160a01b031681565b610165610575565b6101656102163660046113cd565b6107b9565b61016561022936600461147d565b610845565b6067546101a0906001600160a01b031681565b6068546101a0906001600160a01b031681565b6101656109bc565b61016561026a3660046115bd565b6109f2565b61016561027d3660046113cd565b610a6e565b6033546001600160a01b03166101a0565b6101a06102a13660046115bd565b610b01565b6102af6103e881565b6040519081526020016101b4565b6102af606b5481565b6102af606a5481565b6101656102dd3660046113cd565b610b2b565b6101656102f03660046113cd565b610c36565b6101656103033660046113cd565b610cc9565b6033546001600160a01b0316331461033b5760405162461bcd60e51b81526004016103329061172f565b60405180910390fd5b61034481610d61565b50565b600054610100900460ff1680610360575060005460ff16155b61037c5760405162461bcd60e51b8152600401610332906116e1565b600054610100900460ff161580156103a7576000805460ff1961ff0019909116610100171660011790555b6103af610da6565b606680546001600160a01b038089166001600160a01b03199283161790925560658054888416908316179055606780548784169083161790556068805492861692909116919091179055608c606a81905561040c906103e8611834565b606b556069546001600160a01b0316156104295761042982610d61565b604080518082019091526001600160a01b0380871682528716602082015261045590606c90600261133c565b508015610468576000805461ff00191690555b505050505050565b6033546001600160a01b0316331461049a5760405162461bcd60e51b81526004016103329061172f565b6065546001600160a01b03838116911614156104e05760405162461bcd60e51b8152602060048201526005602482015264217361666560d81b6044820152606401610332565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561052257600080fd5b505afa158015610536573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055a91906115d5565b90506105706001600160a01b0384168383610e2a565b505050565b6065546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156105b957600080fd5b505afa1580156105cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f191906115d5565b606d5490915060ff16156106e357600060026103e8606a54846106149190611815565b61061e91906117f5565b61062891906117f5565b606754606554919250610648916001600160a01b03908116911683610e2a565b6069546067546040516338ed173960e01b81526001600160a01b03928316926338ed173992610686928692600092606c929116904290600401611764565b600060405180830381600087803b1580156106a057600080fd5b505af11580156106b4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106dc9190810190611519565b5050610722565b60006103e8606a54836106f69190611815565b61070091906117f5565b606754606554919250610720916001600160a01b03908116911683610e2a565b505b60006103e8606b54836107359190611815565b61073f91906117f5565b60685460655491925061075f916001600160a01b03908116911683610e2a565b606854604051633c6b16ab60e01b8152600481018390526001600160a01b0390911690633c6b16ab90602401600060405180830381600087803b1580156107a557600080fd5b505af1158015610468573d6000803e3d6000fd5b6033546001600160a01b031633146107e35760405162461bcd60e51b81526004016103329061172f565b60685460405163f2fde38b60e01b81526001600160a01b0383811660048301529091169063f2fde38b90602401600060405180830381600087803b15801561082a57600080fd5b505af115801561083e573d6000803e3d6000fd5b5050505050565b6033546001600160a01b0316331461086f5760405162461bcd60e51b81526004016103329061172f565b60655481516001600160a01b0390911690829060009061089f57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316146108e85760405162461bcd60e51b815260206004820152600860248201526721774e617469766560c01b6044820152606401610332565b60665481516001600160a01b0390911690829061090790600190611834565b8151811061092557634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161461096b5760405162461bcd60e51b8152602060048201526005602482015264216269666960d81b6044820152606401610332565b7f87c6f79e7abb284656dc44f1ef4767a74344ec68149ef892ce9cc73fe80103c7606c8260405161099d92919061164f565b60405180910390a180516109b890606c90602084019061133c565b5050565b6033546001600160a01b031633146109e65760405162461bcd60e51b81526004016103329061172f565b6109f06000610e8d565b565b6033546001600160a01b03163314610a1c5760405162461bcd60e51b81526004016103329061172f565b6103e8811115610a575760405162461bcd60e51b8152600401610332906020808252600490820152630216361760e41b604082015260600190565b606a819055610a68816103e8611834565b606b5550565b6033546001600160a01b03163314610a985760405162461bcd60e51b81526004016103329061172f565b606854604080516001600160a01b03928316815291831660208301527fe3d88fc63ce6f40e089447cea2116e10d00cd00302225a3d4d57db7d456933b3910160405180910390a1606880546001600160a01b0319166001600160a01b0392909216919091179055565b606c8181548110610b1157600080fd5b6000918252602090912001546001600160a01b0316905081565b6033546001600160a01b03163314610b555760405162461bcd60e51b81526004016103329061172f565b606d5460ff16610b965760405162461bcd60e51b815260206004820152600c60248201526b085a5b9a5d1a585b1a5e995960a21b6044820152606401610332565b606954604080516001600160a01b03928316815291831660208301527f826424c54f0e53618740c75270163dc0ce89545f38164b0e4b3a265cf7314453910160405180910390a1606554610bf6906001600160a01b031682600019610edf565b606954606554610c14916001600160a01b0391821691166000610edf565b606980546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b03163314610c605760405162461bcd60e51b81526004016103329061172f565b606754604080516001600160a01b03928316815291831660208301527f567657fa3f286518b318f4a29870674f433f622fdfc819691acb13105b228225910160405180910390a1606780546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b03163314610cf35760405162461bcd60e51b81526004016103329061172f565b6001600160a01b038116610d585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610332565b61034481610e8d565b606980546001600160a01b0319166001600160a01b038381169190911791829055606554610d96929082169116600019610edf565b50606d805460ff19166001179055565b600054610100900460ff1680610dbf575060005460ff16155b610ddb5760405162461bcd60e51b8152600401610332906116e1565b600054610100900460ff16158015610e06576000805460ff1961ff0019909116610100171660011790555b610e0e611003565b610e16611076565b8015610344576000805461ff001916905550565b6040516001600160a01b03831660248201526044810182905261057090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526110df565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b801580610f685750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015610f2e57600080fd5b505afa158015610f42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6691906115d5565b155b610fd35760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610332565b6040516001600160a01b03831660248201526044810182905261057090849063095ea7b360e01b90606401610e56565b600054610100900460ff168061101c575060005460ff16155b6110385760405162461bcd60e51b8152600401610332906116e1565b600054610100900460ff16158015610e16576000805460ff1961ff0019909116610100171660011790558015610344576000805461ff001916905550565b600054610100900460ff168061108f575060005460ff16155b6110ab5760405162461bcd60e51b8152600401610332906116e1565b600054610100900460ff161580156110d6576000805460ff1961ff0019909116610100171660011790555b610e1633610e8d565b6000611134826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111b19092919063ffffffff16565b8051909150156105705780806020019051810190611152919061159d565b6105705760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610332565b60606111c084846000856111ca565b90505b9392505050565b60608247101561122b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610332565b611234856112f9565b6112805760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610332565b600080866001600160a01b0316858760405161129c9190611633565b60006040518083038185875af1925050503d80600081146112d9576040519150601f19603f3d011682016040523d82523d6000602084013e6112de565b606091505b50915091506112ee828286611303565b979650505050505050565b803b15155b919050565b606083156113125750816111c3565b8251156113225782518084602001fd5b8160405162461bcd60e51b815260040161033291906116ae565b828054828255906000526020600020908101928215611391579160200282015b8281111561139157825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061135c565b5061139d9291506113a1565b5090565b5b8082111561139d57600081556001016113a2565b80356001600160a01b03811681146112fe57600080fd5b6000602082840312156113de578081fd5b6111c3826113b6565b600080604083850312156113f9578081fd5b611402836113b6565b9150611410602084016113b6565b90509250929050565b600080600080600060a08688031215611430578081fd5b611439866113b6565b9450611447602087016113b6565b9350611455604087016113b6565b9250611463606087016113b6565b9150611471608087016113b6565b90509295509295909350565b6000602080838503121561148f578182fd5b823567ffffffffffffffff8111156114a5578283fd5b8301601f810185136114b5578283fd5b80356114c86114c3826117d1565b6117a0565b81815283810190838501858402850186018910156114e4578687fd5b8694505b8385101561150d576114f9816113b6565b8352600194909401939185019185016114e8565b50979650505050505050565b6000602080838503121561152b578182fd5b825167ffffffffffffffff811115611541578283fd5b8301601f81018513611551578283fd5b805161155f6114c3826117d1565b818152838101908385018584028501860189101561157b578687fd5b8694505b8385101561150d57805183526001949094019391850191850161157f565b6000602082840312156115ae578081fd5b815180151581146111c3578182fd5b6000602082840312156115ce578081fd5b5035919050565b6000602082840312156115e6578081fd5b5051919050565b6000815480845260208085019450838352808320835b838110156116285781546001600160a01b031687529582019560019182019101611603565b509495945050505050565b6000825161164581846020870161184b565b9190910192915050565b60006040825261166260408301856115ed565b828103602084810191909152845180835285820192820190845b818110156116a15784516001600160a01b03168352938301939183019160010161167c565b5090979650505050505050565b60006020825282518060208401526116cd81604085016020870161184b565b601f01601f19169190910160400192915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600086825285602083015260a0604083015261178360a08301866115ed565b6001600160a01b0394909416606083015250608001529392505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156117c9576117c9611891565b604052919050565b600067ffffffffffffffff8211156117eb576117eb611891565b5060209081020190565b60008261181057634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561182f5761182f61187b565b500290565b6000828210156118465761184661187b565b500390565b60005b8381101561186657818101518382015260200161184e565b83811115611875576000848401525b50505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220d36b59faa3bd295f5ab7cf062dd776a5ea96757e830f921a98bb2afb9f7c7d6764736f6c63430008020033
Deployed Bytecode Sourcemap
33246:4216:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35821:99;;;;;;:::i;:::-;;:::i;:::-;;34026:611;;;;;;:::i;:::-;;:::i;37008:297::-;;;;;;:::i;:::-;;:::i;33509:24::-;;;;;-1:-1:-1;;;;;33509:24:0;;;;;;-1:-1:-1;;;;;4714:32:1;;;4696:51;;4684:2;4669:18;33509:24:0;;;;;;;;33714:29;;;;;;;;;;;;6354:14:1;;6347:22;6329:41;;6317:2;6302:18;33714:29:0;6284:92:1;33372:32:0;;;;;-1:-1:-1;;;;;33372:32:0;;;33411:29;;;;;-1:-1:-1;;;;;33411:29:0;;;34693:770;;;:::i;37313:146::-;;;;;;:::i;:::-;;:::i;36449:310::-;;;;;;:::i;:::-;;:::i;33447:23::-;;;;;-1:-1:-1;;;;;33447:23:0;;;33477:25;;;;;-1:-1:-1;;;;;33477:25:0;;;4930:94;;;:::i;36767:185::-;;;;;;:::i;:::-;;:::i;35499:160::-;;;;;;:::i;:::-;;:::i;4279:87::-;4352:6;;-1:-1:-1;;;;;4352:6:0;4279:87;;33670:35;;;;;;:::i;:::-;;:::i;33564:::-;;33595:4;33564:35;;;;;11605:25:1;;;11593:2;11578:18;33564:35:0;11560:76:1;33636:25:0;;;;;;33606:23;;;;;;36119:322;;;;;;:::i;:::-;;:::i;35667:146::-;;;;;;:::i;:::-;;:::i;5179:192::-;;;;;;:::i;:::-;;:::i;35821:99::-;4352:6;;-1:-1:-1;;;;;4352:6:0;2871:10;4499:23;4491:68;;;;-1:-1:-1;;;4491:68:0;;;;;;;:::i;:::-;;;;;;;;;35889:23:::1;35901:10;35889:11;:23::i;:::-;35821:99:::0;:::o;34026:611::-;1588:13;;;;;;;;:30;;-1:-1:-1;1606:12:0;;;;1605:13;1588:30;1580:89;;;;-1:-1:-1;;;1580:89:0;;;;;;;:::i;:::-;1682:19;1705:13;;;;;;1704:14;1729:101;;;;1764:13;:20;;-1:-1:-1;;;;1764:20:0;;;;;1799:19;1780:4;1799:19;;;1729:101;34224:16:::1;:14;:16::i;:::-;34253:4;:31:::0;;-1:-1:-1;;;;;34253:31:0;;::::1;-1:-1:-1::0;;;;;;34253:31:0;;::::1;;::::0;;;34295:7:::1;:38:::0;;;;::::1;::::0;;::::1;;::::0;;34344:8:::1;:20:::0;;;;::::1;::::0;;::::1;;::::0;;34375:10:::1;:24:::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;34426:3:::1;34412:11;:17:::0;;;34456:21:::1;::::0;33595:4:::1;34456:21;:::i;:::-;34440:13;:37:::0;34494:9:::1;::::0;-1:-1:-1;;;;;34494:9:0::1;:25:::0;34490:81:::1;;34536:23;34548:10;34536:11;:23::i;:::-;34591:38;::::0;;;;::::1;::::0;;;-1:-1:-1;;;;;34591:38:0;;::::1;::::0;;;::::1;;::::0;::::1;::::0;::::1;::::0;:18:::1;::::0;:38:::1;;:::i;:::-;;1860:14:::0;1856:68;;;1907:5;1891:21;;-1:-1:-1;;1891:21:0;;;1856:68;34026:611;;;;;;:::o;37008:297::-;4352:6;;-1:-1:-1;;;;;4352:6:0;2871:10;4499:23;4491:68;;;;-1:-1:-1;;;4491:68:0;;;;;;;:::i;:::-;37130:7:::1;::::0;-1:-1:-1;;;;;37112:26:0;;::::1;37130:7:::0;::::1;37112:26;;37104:44;;;::::0;-1:-1:-1;;;37104:44:0;;7545:2:1;37104:44:0::1;::::0;::::1;7527:21:1::0;7584:1;7564:18;;;7557:29;-1:-1:-1;;;7602:18:1;;;7595:35;7647:18;;37104:44:0::1;7517:154:1::0;37104:44:0::1;37178:50;::::0;-1:-1:-1;;;37178:50:0;;37222:4:::1;37178:50;::::0;::::1;4696:51:1::0;37161:14:0::1;::::0;-1:-1:-1;;;;;37178:35:0;::::1;::::0;::::1;::::0;4669:18:1;;37178:50:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;37161:67:::0;-1:-1:-1;37239:58:0::1;-1:-1:-1::0;;;;;37239:38:0;::::1;37278:10:::0;37161:67;37239:38:::1;:58::i;:::-;4570:1;37008:297:::0;;:::o;34693:770::-;34751:7;;:32;;-1:-1:-1;;;34751:32:0;;34777:4;34751:32;;;4696:51:1;34730:18:0;;-1:-1:-1;;;;;34751:7:0;;:17;;4669:18:1;;34751:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;34800:17;;34730:53;;-1:-1:-1;34800:17:0;;34796:452;;;34834:20;34894:1;33595:4;34870:11;;34857:10;:24;;;;:::i;:::-;:34;;;;:::i;:::-;:38;;;;:::i;:::-;34931:8;;34910:7;;34834:61;;-1:-1:-1;34910:44:0;;-1:-1:-1;;;;;34910:7:0;;;;34931:8;34834:61;34910:20;:44::i;:::-;34984:9;;35057:8;;34969:114;;-1:-1:-1;;;34969:114:0;;-1:-1:-1;;;;;34984:9:0;;;;34969:50;;:114;;35020:12;;34984:9;;35037:18;;35057:8;;;35067:15;;34969:114;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;34969:114:0;;;;;;;;;;;;:::i;:::-;;34796:452;;;;35116:22;33595:4;35154:11;;35141:10;:24;;;;:::i;:::-;:34;;;;:::i;:::-;35211:8;;35190:7;;35116:59;;-1:-1:-1;35190:46:0;;-1:-1:-1;;;;;35190:7:0;;;;35211:8;35116:59;35190:20;:46::i;:::-;34796:452;;35260:24;33595:4;35300:13;;35287:10;:26;;;;:::i;:::-;:36;;;;:::i;:::-;35355:10;;35334:7;;35260:63;;-1:-1:-1;35334:50:0;;-1:-1:-1;;;;;35334:7:0;;;;35355:10;35260:63;35334:20;:50::i;:::-;35407:10;;35395:60;;-1:-1:-1;;;35395:60:0;;;;;11605:25:1;;;-1:-1:-1;;;;;35407:10:0;;;;35395:42;;11578:18:1;;35395:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37313:146;4352:6;;-1:-1:-1;;;;;4352:6:0;2871:10;4499:23;4491:68;;;;-1:-1:-1;;;4491:68:0;;;;;;;:::i;:::-;37411:10:::1;::::0;37399:52:::1;::::0;-1:-1:-1;;;37399:52:0;;-1:-1:-1;;;;;4714:32:1;;;37399:52:0::1;::::0;::::1;4696:51:1::0;37411:10:0;;::::1;::::0;37399:41:::1;::::0;4669:18:1;;37399:52:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;37313:146:::0;:::o;36449:310::-;4352:6;;-1:-1:-1;;;;;4352:6:0;2871:10;4499:23;4491:68;;;;-1:-1:-1;;;4491:68:0;;;;;;;:::i;:::-;36563:7:::1;::::0;36542:9;;-1:-1:-1;;;;;36563:7:0;;::::1;::::0;36542:6;;36563:7:::1;::::0;36542:9:::1;;-1:-1:-1::0;;;36542:9:0::1;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;36542:29:0::1;;36534:50;;;::::0;-1:-1:-1;;;36534:50:0;;9024:2:1;36534:50:0::1;::::0;::::1;9006:21:1::0;9063:1;9043:18;;;9036:29;-1:-1:-1;;;9081:18:1;;;9074:38;9129:18;;36534:50:0::1;8996:157:1::0;36534:50:0::1;36640:4;::::0;36610:13;;-1:-1:-1;;;;;36640:4:0;;::::1;::::0;36603:6;;36610:17:::1;::::0;36640:4;;36610:17:::1;:::i;:::-;36603:25;;;;;;-1:-1:-1::0;;;36603:25:0::1;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;36603:42:0::1;;36595:60;;;::::0;-1:-1:-1;;;36595:60:0;;10905:2:1;36595:60:0::1;::::0;::::1;10887:21:1::0;10944:1;10924:18;;;10917:29;-1:-1:-1;;;10962:18:1;;;10955:35;11007:18;;36595:60:0::1;10877:154:1::0;36595:60:0::1;36673:40;36686:18;36706:6;36673:40;;;;;;;:::i;:::-;;;;;;;;36724:27:::0;;::::1;::::0;:18:::1;::::0;:27:::1;::::0;::::1;::::0;::::1;:::i;:::-;;36449:310:::0;:::o;4930:94::-;4352:6;;-1:-1:-1;;;;;4352:6:0;2871:10;4499:23;4491:68;;;;-1:-1:-1;;;4491:68:0;;;;;;;:::i;:::-;4995:21:::1;5013:1;4995:9;:21::i;:::-;4930:94::o:0;36767:185::-;4352:6;;-1:-1:-1;;;;;4352:6:0;2871:10;4499:23;4491:68;;;;-1:-1:-1;;;4491:68:0;;;;;;;:::i;:::-;33595:4:::1;36841;:15;;36833:32;;;;-1:-1:-1::0;;;36833:32:0::1;;;;;;8692:2:1::0;8674:21;;;8731:1;8711:18;;;8704:29;-1:-1:-1;;;8764:2:1;8749:18;;8742:34;8808:2;8793:18;;8664:153;36833:32:0::1;36878:11;:18:::0;;;36923:21:::1;36892:4:::0;33595::::1;36923:21;:::i;:::-;36907:13;:37:::0;-1:-1:-1;36767:185:0:o;35499:160::-;4352:6;;-1:-1:-1;;;;;4352:6:0;2871:10;4499:23;4491:68;;;;-1:-1:-1;;;4491:68:0;;;;;;;:::i;:::-;35592:10:::1;::::0;35578:38:::1;::::0;;-1:-1:-1;;;;;35592:10:0;;::::1;4970:34:1::0;;5040:15;;;5035:2;5020:18;;5013:43;35578:38:0::1;::::0;4905:18:1;35578:38:0::1;;;;;;;35627:10;:24:::0;;-1:-1:-1;;;;;;35627:24:0::1;-1:-1:-1::0;;;;;35627:24:0;;;::::1;::::0;;;::::1;::::0;;35499:160::o;33670:35::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33670:35:0;;-1:-1:-1;33670:35:0;:::o;36119:322::-;4352:6;;-1:-1:-1;;;;;4352:6:0;2871:10;4499:23;4491:68;;;;-1:-1:-1;;;4491:68:0;;;;;;;:::i;:::-;36199:17:::1;::::0;::::1;;36191:42;;;::::0;-1:-1:-1;;;36191:42:0;;7204:2:1;36191:42:0::1;::::0;::::1;7186:21:1::0;7243:2;7223:18;;;7216:30;-1:-1:-1;;;7262:18:1;;;7255:42;7314:18;;36191:42:0::1;7176:162:1::0;36191:42:0::1;36264:9;::::0;36251:35:::1;::::0;;-1:-1:-1;;;;;36264:9:0;;::::1;4970:34:1::0;;5040:15;;;5035:2;5020:18;;5013:43;36251:35:0::1;::::0;4905:18:1;36251:35:0::1;;;;;;;36299:7;::::0;:47:::1;::::0;-1:-1:-1;;;;;36299:7:0::1;36319:10:::0;-1:-1:-1;;36299:19:0::1;:47::i;:::-;36377:9;::::0;36357:7:::1;::::0;:33:::1;::::0;-1:-1:-1;;;;;36357:7:0;;::::1;::::0;36377:9:::1;;36357:19;:33::i;:::-;36411:9;:22:::0;;-1:-1:-1;;;;;;36411:22:0::1;-1:-1:-1::0;;;;;36411:22:0;;;::::1;::::0;;;::::1;::::0;;36119:322::o;35667:146::-;4352:6;;-1:-1:-1;;;;;4352:6:0;2871:10;4499:23;4491:68;;;;-1:-1:-1;;;4491:68:0;;;;;;;:::i;:::-;35754:8:::1;::::0;35742:32:::1;::::0;;-1:-1:-1;;;;;35754:8:0;;::::1;4970:34:1::0;;5040:15;;;5035:2;5020:18;;5013:43;35742:32:0::1;::::0;4905:18:1;35742:32:0::1;;;;;;;35785:8;:20:::0;;-1:-1:-1;;;;;;35785:20:0::1;-1:-1:-1::0;;;;;35785:20:0;;;::::1;::::0;;;::::1;::::0;;35667:146::o;5179:192::-;4352:6;;-1:-1:-1;;;;;4352:6:0;2871:10;4499:23;4491:68;;;;-1:-1:-1;;;4491:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;5268:22:0;::::1;5260:73;;;::::0;-1:-1:-1;;;5260:73:0;;7878:2:1;5260:73:0::1;::::0;::::1;7860:21:1::0;7917:2;7897:18;;;7890:30;7956:34;7936:18;;;7929:62;-1:-1:-1;;;8007:18:1;;;8000:36;8053:19;;5260:73:0::1;7850:228:1::0;5260:73:0::1;5344:19;5354:8;5344:9;:19::i;35928:183::-:0;35989:9;:22;;-1:-1:-1;;;;;;35989:22:0;-1:-1:-1;;;;;35989:22:0;;;;;;;;;;;36022:7;;:46;;:7;;;;36042:9;-1:-1:-1;;36022:19:0;:46::i;:::-;-1:-1:-1;36079:17:0;:24;;-1:-1:-1;;36079:24:0;36099:4;36079:24;;;35928:183::o;3962:129::-;1588:13;;;;;;;;:30;;-1:-1:-1;1606:12:0;;;;1605:13;1588:30;1580:89;;;;-1:-1:-1;;;1580:89:0;;;;;;;:::i;:::-;1682:19;1705:13;;;;;;1704:14;1729:101;;;;1764:13;:20;;-1:-1:-1;;;;1764:20:0;;;;;1799:19;1780:4;1799:19;;;1729:101;4020:26:::1;:24;:26::i;:::-;4057;:24;:26::i;:::-;1860:14:::0;1856:68;;;1907:5;1891:21;;-1:-1:-1;;1891:21:0;;;3962:129;:::o;29394:222::-;29549:58;;-1:-1:-1;;;;;5259:32:1;;29549:58:0;;;5241:51:1;5308:18;;;5301:34;;;29522:86:0;;29542:5;;-1:-1:-1;;;29572:23:0;5214:18:1;;29549:58:0;;;;-1:-1:-1;;29549:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;29549:58:0;-1:-1:-1;;;;;;29549:58:0;;;;;;;;;;29522:19;:86::i;5379:173::-;5454:6;;;-1:-1:-1;;;;;5471:17:0;;;-1:-1:-1;;;;;;5471:17:0;;;;;;;5504:40;;5454:6;;;5471:17;5454:6;;5504:40;;5435:16;;5504:40;5379:173;;:::o;30152:627::-;30527:10;;;30526:62;;-1:-1:-1;30543:39:0;;-1:-1:-1;;;30543:39:0;;30567:4;30543:39;;;4970:34:1;-1:-1:-1;;;;;5040:15:1;;;5020:18;;;5013:43;30543:15:0;;;;;4905:18:1;;30543:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;30526:62;30504:166;;;;-1:-1:-1;;;30504:166:0;;11238:2:1;30504:166:0;;;11220:21:1;11277:2;11257:18;;;11250:30;11316:34;11296:18;;;11289:62;-1:-1:-1;;;11367:18:1;;;11360:52;11429:19;;30504:166:0;11210:244:1;30504:166:0;30708:62;;-1:-1:-1;;;;;5259:32:1;;30708:62:0;;;5241:51:1;5308:18;;;5301:34;;;30681:90:0;;30701:5;;-1:-1:-1;;;30731:22:0;5214:18:1;;30708:62:0;5196:145:1;2720:65:0;1588:13;;;;;;;;:30;;-1:-1:-1;1606:12:0;;;;1605:13;1588:30;1580:89;;;;-1:-1:-1;;;1580:89:0;;;;;;;:::i;:::-;1682:19;1705:13;;;;;;1704:14;1729:101;;;;1764:13;:20;;-1:-1:-1;;;;1764:20:0;;;;;1799:19;1780:4;1799:19;;;1860:14;1856:68;;;1907:5;1891:21;;-1:-1:-1;;1891:21:0;;;2720:65;:::o;4099:99::-;1588:13;;;;;;;;:30;;-1:-1:-1;1606:12:0;;;;1605:13;1588:30;1580:89;;;;-1:-1:-1;;;1580:89:0;;;;;;;:::i;:::-;1682:19;1705:13;;;;;;1704:14;1729:101;;;;1764:13;:20;;-1:-1:-1;;;;1764:20:0;;;;;1799:19;1780:4;1799:19;;;1729:101;4167:23:::1;2871:10:::0;4167:9:::1;:23::i;32022:727::-:0;32457:23;32483:69;32511:4;32483:69;;;;;;;;;;;;;;;;;32491:5;-1:-1:-1;;;;;32483:27:0;;;:69;;;;;:::i;:::-;32567:17;;32457:95;;-1:-1:-1;32567:21:0;32563:179;;32664:10;32653:30;;;;;;;;;;;;:::i;:::-;32645:85;;;;-1:-1:-1;;;32645:85:0;;10494:2:1;32645:85:0;;;10476:21:1;10533:2;10513:18;;;10506:30;10572:34;10552:18;;;10545:62;-1:-1:-1;;;10623:18:1;;;10616:40;10673:19;;32645:85:0;10466:232:1;25168:229:0;25305:12;25337:52;25359:6;25367:4;25373:1;25376:12;25337:21;:52::i;:::-;25330:59;;25168:229;;;;;;:::o;26288:510::-;26458:12;26516:5;26491:21;:30;;26483:81;;;;-1:-1:-1;;;26483:81:0;;8285:2:1;26483:81:0;;;8267:21:1;8324:2;8304:18;;;8297:30;8363:34;8343:18;;;8336:62;-1:-1:-1;;;8414:18:1;;;8407:36;8460:19;;26483:81:0;8257:228:1;26483:81:0;26583:18;26594:6;26583:10;:18::i;:::-;26575:60;;;;-1:-1:-1;;;26575:60:0;;10136:2:1;26575:60:0;;;10118:21:1;10175:2;10155:18;;;10148:30;10214:31;10194:18;;;10187:59;10263:18;;26575:60:0;10108:179:1;26575:60:0;26649:12;26663:23;26690:6;-1:-1:-1;;;;;26690:11:0;26709:5;26716:4;26690:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26648:73;;;;26739:51;26756:7;26765:10;26777:12;26739:16;:51::i;:::-;26732:58;26288:510;-1:-1:-1;;;;;;;26288:510:0:o;22362:387::-;22685:20;;22733:8;;22362:387;;;;:::o;27997:712::-;28147:12;28176:7;28172:530;;;-1:-1:-1;28207:10:0;28200:17;;28172:530;28321:17;;:21;28317:374;;28519:10;28513:17;28580:15;28567:10;28563:2;28559:19;28552:44;28467:148;28662:12;28655:20;;-1:-1:-1;;;28655:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;192:196;;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;393:270::-;;;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:494::-;;;;;;848:3;836:9;827:7;823:23;819:33;816:2;;;870:6;862;855:22;816:2;898:29;917:9;898:29;:::i;:::-;888:39;;946:38;980:2;969:9;965:18;946:38;:::i;:::-;936:48;;1003:38;1037:2;1026:9;1022:18;1003:38;:::i;:::-;993:48;;1060:38;1094:2;1083:9;1079:18;1060:38;:::i;:::-;1050:48;;1117:39;1151:3;1140:9;1136:19;1117:39;:::i;:::-;1107:49;;806:356;;;;;;;;:::o;1167:954::-;;1282:2;1325;1313:9;1304:7;1300:23;1296:32;1293:2;;;1346:6;1338;1331:22;1293:2;1391:9;1378:23;1424:18;1416:6;1413:30;1410:2;;;1461:6;1453;1446:22;1410:2;1489:22;;1542:4;1534:13;;1530:27;-1:-1:-1;1520:2:1;;1576:6;1568;1561:22;1520:2;1617;1604:16;1640:60;1656:43;1696:2;1656:43;:::i;:::-;1640:60;:::i;:::-;1734:15;;;1765:12;;;;1797:11;;;1835;;;1827:20;;1823:29;;1820:42;-1:-1:-1;1817:2:1;;;1880:6;1872;1865:22;1817:2;1907:6;1898:15;;1922:169;1936:2;1933:1;1930:9;1922:169;;;1993:23;2012:3;1993:23;:::i;:::-;1981:36;;1954:1;1947:9;;;;;2037:12;;;;2069;;1922:169;;;-1:-1:-1;2110:5:1;1262:859;-1:-1:-1;;;;;;;1262:859:1:o;2126:938::-;;2252:2;2295;2283:9;2274:7;2270:23;2266:32;2263:2;;;2316:6;2308;2301:22;2263:2;2354:9;2348:16;2387:18;2379:6;2376:30;2373:2;;;2424:6;2416;2409:22;2373:2;2452:22;;2505:4;2497:13;;2493:27;-1:-1:-1;2483:2:1;;2539:6;2531;2524:22;2483:2;2573;2567:9;2596:60;2612:43;2652:2;2612:43;:::i;2596:60::-;2690:15;;;2721:12;;;;2753:11;;;2791;;;2783:20;;2779:29;;2776:42;-1:-1:-1;2773:2:1;;;2836:6;2828;2821:22;2773:2;2863:6;2854:15;;2878:156;2892:2;2889:1;2886:9;2878:156;;;2949:10;;2937:23;;2910:1;2903:9;;;;;2980:12;;;;3012;;2878:156;;3069:297;;3189:2;3177:9;3168:7;3164:23;3160:32;3157:2;;;3210:6;3202;3195:22;3157:2;3247:9;3241:16;3300:5;3293:13;3286:21;3279:5;3276:32;3266:2;;3327:6;3319;3312:22;3371:190;;3483:2;3471:9;3462:7;3458:23;3454:32;3451:2;;;3504:6;3496;3489:22;3451:2;-1:-1:-1;3532:23:1;;3441:120;-1:-1:-1;3441:120:1:o;3566:194::-;;3689:2;3677:9;3668:7;3664:23;3660:32;3657:2;;;3710:6;3702;3695:22;3657:2;-1:-1:-1;3738:16:1;;3647:113;-1:-1:-1;3647:113:1:o;3765:501::-;;3864:5;3858:12;3891:6;3886:3;3879:19;3917:4;3946:2;3941:3;3937:12;3930:19;;3970:5;3965:3;3958:18;4014:2;4009:3;3999:18;4035:3;4047:194;4061:6;4058:1;4055:13;4047:194;;;4126:13;;-1:-1:-1;;;;;4122:39:1;4110:52;;4182:12;;;;4158:1;4217:14;;;;4076:9;4047:194;;;-1:-1:-1;4257:3:1;;3834:432;-1:-1:-1;;;;;3834:432:1:o;4271:274::-;;4438:6;4432:13;4454:53;4500:6;4495:3;4488:4;4480:6;4476:17;4454:53;:::i;:::-;4523:16;;;;;4408:137;-1:-1:-1;;4408:137:1:o;5346:838::-;;5600:2;5589:9;5582:21;5626:64;5686:2;5675:9;5671:18;5663:6;5626:64;:::i;:::-;5747:22;;;5709:2;5727:18;;;5720:50;;;;5819:13;;5841:22;;;5917:15;;;;5879;;;5950:4;5963:195;5977:6;5974:1;5971:13;5963:195;;;6042:13;;-1:-1:-1;;;;;6038:39:1;6026:52;;6133:15;;;;6098:12;;;;6074:1;5992:9;5963:195;;;-1:-1:-1;6175:3:1;;5572:612;-1:-1:-1;;;;;;;5572:612:1:o;6614:383::-;;6763:2;6752:9;6745:21;6795:6;6789:13;6838:6;6833:2;6822:9;6818:18;6811:34;6854:66;6913:6;6908:2;6897:9;6893:18;6888:2;6880:6;6876:15;6854:66;:::i;:::-;6981:2;6960:15;-1:-1:-1;;6956:29:1;6941:45;;;;6988:2;6937:54;;6735:262;-1:-1:-1;;6735:262:1:o;9158:410::-;9360:2;9342:21;;;9399:2;9379:18;;;9372:30;9438:34;9433:2;9418:18;;9411:62;-1:-1:-1;;;9504:2:1;9489:18;;9482:44;9558:3;9543:19;;9332:236::o;9573:356::-;9775:2;9757:21;;;9794:18;;;9787:30;9853:34;9848:2;9833:18;;9826:62;9920:2;9905:18;;9747:182::o;11641:587::-;;11937:6;11926:9;11919:25;11980:6;11975:2;11964:9;11960:18;11953:34;12023:3;12018:2;12007:9;12003:18;11996:31;12044:65;12104:3;12093:9;12089:19;12081:6;12044:65;:::i;:::-;-1:-1:-1;;;;;12145:32:1;;;;12140:2;12125:18;;12118:60;-1:-1:-1;12209:3:1;12194:19;12187:35;12036:73;11909:319;-1:-1:-1;;;11909:319:1:o;12233:275::-;12304:2;12298:9;12369:2;12350:13;;-1:-1:-1;;12346:27:1;12334:40;;12404:18;12389:34;;12425:22;;;12386:62;12383:2;;;12451:18;;:::i;:::-;12487:2;12480:22;12278:230;;-1:-1:-1;12278:230:1:o;12513:186::-;;12606:18;12598:6;12595:30;12592:2;;;12628:18;;:::i;:::-;-1:-1:-1;12688:4:1;12669:17;;;12665:28;;12582:117::o;12704:217::-;;12770:1;12760:2;;-1:-1:-1;;;12795:31:1;;12849:4;12846:1;12839:15;12877:4;12802:1;12867:15;12760:2;-1:-1:-1;12906:9:1;;12750:171::o;12926:168::-;;13032:1;13028;13024:6;13020:14;13017:1;13014:21;13009:1;13002:9;12995:17;12991:45;12988:2;;;13039:18;;:::i;:::-;-1:-1:-1;13079:9:1;;12978:116::o;13099:125::-;;13167:1;13164;13161:8;13158:2;;;13172:18;;:::i;:::-;-1:-1:-1;13209:9:1;;13148:76::o;13229:258::-;13301:1;13311:113;13325:6;13322:1;13319:13;13311:113;;;13401:11;;;13395:18;13382:11;;;13375:39;13347:2;13340:10;13311:113;;;13442:6;13439:1;13436:13;13433:2;;;13477:1;13468:6;13463:3;13459:16;13452:27;13433:2;;13282:205;;;:::o;13492:127::-;13553:10;13548:3;13544:20;13541:1;13534:31;13584:4;13581:1;13574:15;13608:4;13605:1;13598:15;13624:127;13685:10;13680:3;13676:20;13673:1;13666:31;13716:4;13713:1;13706:15;13740:4;13737:1;13730:15
Swarm Source
ipfs://d36b59faa3bd295f5ab7cf062dd776a5ea96757e830f921a98bb2afb9f7c7d67
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.