Source Code
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 12962764 | 431 days ago | Contract Creation | 0 FRAX |
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
BeefyRewardPoolFactory
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
import {BeaconProxy} from "@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol";
import {UpgradeableBeacon} from "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
// Beefy Reward Pool Proxy Factory
// Minimal upgradeable beacon proxy pattern for creating new Beefy concentrated liquidity reward pools
contract BeefyRewardPoolFactory is Ownable {
/// @notice instance mapping to reward pool name
mapping (string => UpgradeableBeacon) public instances;
/// @notice Is Immutable mapping
mapping (string => bool) public isImmutable;
/// @notice deployed rewardPool types
string[] public rewardPoolTypes;
/// @notice The address of the keeper
address public keeper;
/// @notice Emitted when a new Beefy Reward Pool is created
event ProxyCreated(string rewardPoolName, address proxy);
/// @notice Emitted when a Beefy Reward Pool is upgraded
event InstanceUpgraded(string RewardPoolName, address newImplementation);
/// @notice Emitted when a new Beefy Reward Pool is added
event NewRewardPoolAdded(string rewardPoolName, address implementation);
/// @notice Emitted when a reward pool type is set as immutable
event RewardPoolIsImmutable(string rewardPoolName);
/// @notice Emitted when the keeper address is changed
event SetKeeper(address keeper);
// Errors
error NotManager();
error VersionExists();
error IsImmutable();
/// @notice Throws if called by any account other than the owner or the keeper.
modifier onlyManager() {
if (msg.sender != owner() && msg.sender != address(keeper)) revert NotManager();
_;
}
/// @notice Constructor initializes the keeper address
constructor( address _keeper) Ownable(msg.sender) {
keeper = _keeper;
}
/** @notice Creates a new Beefy Reward Pool as a proxy of the template instance
* @param _rewardPoolName The name of the rewardPool
* @return A reference to the new proxied Beefy Reward Pool
*/
function createRewardPool(string calldata _rewardPoolName) external returns (address) {
// Create a new Beefy Reward Pool as a proxy of the template instance
UpgradeableBeacon instance = instances[_rewardPoolName];
BeaconProxy proxy = new BeaconProxy(address(instance), "");
emit ProxyCreated(_rewardPoolName, address(proxy));
return address(proxy);
}
/**
* @notice Upgrades the implementation of a rewardPool
* @param _rewardPoolName The name of the reward pool
* @param _newImplementation The new implementation address
*/
function upgradeTo(string calldata _rewardPoolName, address _newImplementation) external onlyOwner {
if (isImmutable[_rewardPoolName]) revert IsImmutable();
UpgradeableBeacon instance = instances[_rewardPoolName];
instance.upgradeTo(_newImplementation);
emit InstanceUpgraded(_rewardPoolName, _newImplementation);
}
/**
* @notice Adds a new reward pool to the factory
* @param _rewardPoolName The name of the reward pool
* @param _implementation The implementation address
*/
function addRewardPool(string calldata _rewardPoolName, address _implementation) external onlyManager {
if (address(instances[_rewardPoolName]) != address(0)) revert VersionExists();
instances[_rewardPoolName] = new UpgradeableBeacon(_implementation, address(this));
// Store in our deployed reward pool type array
rewardPoolTypes.push(_rewardPoolName);
emit NewRewardPoolAdded(_rewardPoolName, _implementation);
}
/**
* @notice Sets a reward pool type as immutable
*/
function SetRewardPoolTypeImmutable(string calldata _rewardPoolName) external onlyOwner {
isImmutable[_rewardPoolName] = true;
emit RewardPoolIsImmutable(_rewardPoolName);
}
/**
* @notice set the keeper address
* @param _keeper The new keeper address
*/
function setKeeper(address _keeper) external onlyOwner {
keeper = _keeper;
emit SetKeeper(_keeper);
}
/**
* @notice Gets the implementation of a reward pool
* @param _rewardPoolName The name of the reward pool
* @return The implementation address
*/
function getImplementation(string calldata _rewardPoolName) external view returns (address) {
return instances[_rewardPoolName].implementation();
}
/**
* @notice Gets the array of deployed reward pools
* @return The array of deployed reward pools
*/
function getRewardPoolTypes() external view returns (string[] memory) {
return rewardPoolTypes;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_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);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/BeaconProxy.sol)
pragma solidity ^0.8.20;
import {IBeacon} from "./IBeacon.sol";
import {Proxy} from "../Proxy.sol";
import {ERC1967Utils} from "../ERC1967/ERC1967Utils.sol";
/**
* @dev This contract implements a proxy that gets the implementation address for each call from an {UpgradeableBeacon}.
*
* The beacon address can only be set once during construction, and cannot be changed afterwards. It is stored in an
* immutable variable to avoid unnecessary storage reads, and also in the beacon storage slot specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] so that it can be accessed externally.
*
* CAUTION: Since the beacon address can never be changed, you must ensure that you either control the beacon, or trust
* the beacon to not upgrade the implementation maliciously.
*
* IMPORTANT: Do not use the implementation logic to modify the beacon storage slot. Doing so would leave the proxy in
* an inconsistent state where the beacon storage slot does not match the beacon address.
*/
contract BeaconProxy is Proxy {
// An immutable address for the beacon to avoid unnecessary SLOADs before each delegate call.
address private immutable _beacon;
/**
* @dev Initializes the proxy with `beacon`.
*
* If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This
* will typically be an encoded function call, and allows initializing the storage of the proxy like a Solidity
* constructor.
*
* Requirements:
*
* - `beacon` must be a contract with the interface {IBeacon}.
* - If `data` is empty, `msg.value` must be zero.
*/
constructor(address beacon, bytes memory data) payable {
ERC1967Utils.upgradeBeaconToAndCall(beacon, data);
_beacon = beacon;
}
/**
* @dev Returns the current implementation address of the associated beacon.
*/
function _implementation() internal view virtual override returns (address) {
return IBeacon(_getBeacon()).implementation();
}
/**
* @dev Returns the beacon.
*/
function _getBeacon() internal view virtual returns (address) {
return _beacon;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)
pragma solidity ^0.8.20;
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeacon {
/**
* @dev Must return an address that can be used as a delegate call target.
*
* {UpgradeableBeacon} will check that this address is a contract.
*/
function implementation() external view returns (address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/UpgradeableBeacon.sol)
pragma solidity ^0.8.20;
import {IBeacon} from "./IBeacon.sol";
import {Ownable} from "../../access/Ownable.sol";
/**
* @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their
* implementation contract, which is where they will delegate all function calls.
*
* An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.
*/
contract UpgradeableBeacon is IBeacon, Ownable {
address private _implementation;
/**
* @dev The `implementation` of the beacon is invalid.
*/
error BeaconInvalidImplementation(address implementation);
/**
* @dev Emitted when the implementation returned by the beacon is changed.
*/
event Upgraded(address indexed implementation);
/**
* @dev Sets the address of the initial implementation, and the initial owner who can upgrade the beacon.
*/
constructor(address implementation_, address initialOwner) Ownable(initialOwner) {
_setImplementation(implementation_);
}
/**
* @dev Returns the current implementation address.
*/
function implementation() public view virtual returns (address) {
return _implementation;
}
/**
* @dev Upgrades the beacon to a new implementation.
*
* Emits an {Upgraded} event.
*
* Requirements:
*
* - msg.sender must be the owner of the contract.
* - `newImplementation` must be a contract.
*/
function upgradeTo(address newImplementation) public virtual onlyOwner {
_setImplementation(newImplementation);
}
/**
* @dev Sets the implementation contract address for this beacon
*
* Requirements:
*
* - `newImplementation` must be a contract.
*/
function _setImplementation(address newImplementation) private {
if (newImplementation.code.length == 0) {
revert BeaconInvalidImplementation(newImplementation);
}
_implementation = newImplementation;
emit Upgraded(newImplementation);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)
pragma solidity ^0.8.20;
import {IBeacon} from "../beacon/IBeacon.sol";
import {Address} from "../../utils/Address.sol";
import {StorageSlot} from "../../utils/StorageSlot.sol";
/**
* @dev This abstract contract provides getters and event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
*/
library ERC1967Utils {
// We re-declare ERC-1967 events here because they can't be used directly from IERC1967.
// This will be fixed in Solidity 0.8.21. At that point we should remove these events.
/**
* @dev Emitted when the implementation is upgraded.
*/
event Upgraded(address indexed implementation);
/**
* @dev Emitted when the admin account has changed.
*/
event AdminChanged(address previousAdmin, address newAdmin);
/**
* @dev Emitted when the beacon is changed.
*/
event BeaconUpgraded(address indexed beacon);
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1.
*/
// solhint-disable-next-line private-vars-leading-underscore
bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @dev The `implementation` of the proxy is invalid.
*/
error ERC1967InvalidImplementation(address implementation);
/**
* @dev The `admin` of the proxy is invalid.
*/
error ERC1967InvalidAdmin(address admin);
/**
* @dev The `beacon` of the proxy is invalid.
*/
error ERC1967InvalidBeacon(address beacon);
/**
* @dev An upgrade function sees `msg.value > 0` that may be lost.
*/
error ERC1967NonPayable();
/**
* @dev Returns the current implementation address.
*/
function getImplementation() internal view returns (address) {
return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 implementation slot.
*/
function _setImplementation(address newImplementation) private {
if (newImplementation.code.length == 0) {
revert ERC1967InvalidImplementation(newImplementation);
}
StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;
}
/**
* @dev Performs implementation upgrade with additional setup call if data is nonempty.
* This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
* to avoid stuck value in the contract.
*
* Emits an {IERC1967-Upgraded} event.
*/
function upgradeToAndCall(address newImplementation, bytes memory data) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
if (data.length > 0) {
Address.functionDelegateCall(newImplementation, data);
} else {
_checkNonPayable();
}
}
/**
* @dev Storage slot with the admin of the contract.
* This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1.
*/
// solhint-disable-next-line private-vars-leading-underscore
bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
/**
* @dev Returns the current admin.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using
* the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
* `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
*/
function getAdmin() internal view returns (address) {
return StorageSlot.getAddressSlot(ADMIN_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 admin slot.
*/
function _setAdmin(address newAdmin) private {
if (newAdmin == address(0)) {
revert ERC1967InvalidAdmin(address(0));
}
StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {IERC1967-AdminChanged} event.
*/
function changeAdmin(address newAdmin) internal {
emit AdminChanged(getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
/**
* @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
* This is the keccak-256 hash of "eip1967.proxy.beacon" subtracted by 1.
*/
// solhint-disable-next-line private-vars-leading-underscore
bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
/**
* @dev Returns the current beacon.
*/
function getBeacon() internal view returns (address) {
return StorageSlot.getAddressSlot(BEACON_SLOT).value;
}
/**
* @dev Stores a new beacon in the EIP1967 beacon slot.
*/
function _setBeacon(address newBeacon) private {
if (newBeacon.code.length == 0) {
revert ERC1967InvalidBeacon(newBeacon);
}
StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;
address beaconImplementation = IBeacon(newBeacon).implementation();
if (beaconImplementation.code.length == 0) {
revert ERC1967InvalidImplementation(beaconImplementation);
}
}
/**
* @dev Change the beacon and trigger a setup call if data is nonempty.
* This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
* to avoid stuck value in the contract.
*
* Emits an {IERC1967-BeaconUpgraded} event.
*
* CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since
* it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for
* efficiency.
*/
function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {
_setBeacon(newBeacon);
emit BeaconUpgraded(newBeacon);
if (data.length > 0) {
Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
} else {
_checkNonPayable();
}
}
/**
* @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract
* if an upgrade doesn't perform an initialization call.
*/
function _checkNonPayable() private {
if (msg.value > 0) {
revert ERC1967NonPayable();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)
pragma solidity ^0.8.20;
/**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
* different contract through the {_delegate} function.
*
* The success and return data of the delegated call will be returned back to the caller of the proxy.
*/
abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internal call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, calldatasize())
// Call the implementation.
// out and outsize are 0 because we don't know the size yet.
let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)
// Copy the returned data.
returndatacopy(0, 0, returndatasize())
switch result
// delegatecall returns 0 on error.
case 0 {
revert(0, returndatasize())
}
default {
return(0, returndatasize())
}
}
}
/**
* @dev This is a virtual function that should be overridden so it returns the address to which the fallback
* function and {_fallback} should delegate.
*/
function _implementation() internal view virtual returns (address);
/**
* @dev Delegates the current call to the address returned by `_implementation()`.
*
* This function does not return to its internal call site, it will return directly to the external caller.
*/
function _fallback() internal virtual {
_delegate(_implementation());
}
/**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
* function in the contract matches the call data.
*/
fallback() external payable virtual {
_fallback();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @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 or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* 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.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @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`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) 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 FailedInnerCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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 Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.20;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```solidity
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(newImplementation.code.length > 0);
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
/**
* @dev Returns an `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"IsImmutable","type":"error"},{"inputs":[],"name":"NotManager","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"VersionExists","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"RewardPoolName","type":"string"},{"indexed":false,"internalType":"address","name":"newImplementation","type":"address"}],"name":"InstanceUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"rewardPoolName","type":"string"},{"indexed":false,"internalType":"address","name":"implementation","type":"address"}],"name":"NewRewardPoolAdded","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":"string","name":"rewardPoolName","type":"string"},{"indexed":false,"internalType":"address","name":"proxy","type":"address"}],"name":"ProxyCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"rewardPoolName","type":"string"}],"name":"RewardPoolIsImmutable","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"keeper","type":"address"}],"name":"SetKeeper","type":"event"},{"inputs":[{"internalType":"string","name":"_rewardPoolName","type":"string"}],"name":"SetRewardPoolTypeImmutable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_rewardPoolName","type":"string"},{"internalType":"address","name":"_implementation","type":"address"}],"name":"addRewardPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_rewardPoolName","type":"string"}],"name":"createRewardPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_rewardPoolName","type":"string"}],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardPoolTypes","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"instances","outputs":[{"internalType":"contract UpgradeableBeacon","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"isImmutable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"uint256","name":"","type":"uint256"}],"name":"rewardPoolTypes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_rewardPoolName","type":"string"},{"internalType":"address","name":"_newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b5060405162002e7838038062002e78833981810160405281019062000037919062000235565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000ad5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a4919062000278565b60405180910390fd5b620000be816200010760201b60201c565b5080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000295565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001fd82620001d0565b9050919050565b6200020f81620001f0565b81146200021b57600080fd5b50565b6000815190506200022f8162000204565b92915050565b6000602082840312156200024e576200024d620001cb565b5b60006200025e848285016200021e565b91505092915050565b6200027281620001f0565b82525050565b60006020820190506200028f600083018462000267565b92915050565b612bd380620002a56000396000f3fe60806040523480156200001157600080fd5b5060043610620001005760003560e01c8063748747e61162000099578063aced1661116200006f578063aced166114620002a1578063b7eaa47a14620002c3578063dd071c4b14620002e3578063f2fde38b14620003055762000100565b8063748747e6146200023f5780638da5cb5b146200025f578063a261873014620002815762000100565b8063456be12811620000db578063456be12814620001a75780635a8b1a9f14620001dd5780636b68389614620001fd578063715018a614620002335762000100565b80633ab1660e146200010557806341a1914e146200013b578063444463eb1462000171575b600080fd5b6200012360048036038101906200011d919062000fb1565b62000325565b6040516200013291906200101f565b60405180910390f35b62000159600480360381019062000153919062000fb1565b6200035b565b604051620001689190620010c7565b60405180910390f35b6200018f60048036038101906200018991906200111f565b620003a4565b6040516200019e9190620011da565b60405180910390f35b620001c56004803603810190620001bf919062001267565b62000459565b604051620001d49190620012e1565b60405180910390f35b620001fb6004803603810190620001f591906200132f565b62000526565b005b6200021b600480360381019062000215919062001267565b62000691565b6040516200022a9190620012e1565b60405180910390f35b6200023d6200074f565b005b6200025d600480360381019062000257919062001399565b62000767565b005b62000269620007ee565b604051620002789190620012e1565b60405180910390f35b6200029f600480360381019062000299919062001267565b62000817565b005b620002ab6200089b565b604051620002ba9190620012e1565b60405180910390f35b620002e16004803603810190620002db91906200132f565b620008c1565b005b620002ed62000b53565b604051620002fc9190620014ed565b60405180910390f35b6200032360048036038101906200031d919062001399565b62000c36565b005b6002818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b6001818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60038181548110620003b557600080fd5b906000526020600020016000915090508054620003d29062001540565b80601f0160208091040260200160405190810160405280929190818152602001828054620004009062001540565b8015620004515780601f10620004255761010080835404028352916020019162000451565b820191906000526020600020905b8154815290600101906020018083116200043357829003601f168201915b505050505081565b6000806001848460405162000470929190620015a9565b908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600081604051620004b29062000e1f565b620004be9190620015ff565b604051809103906000f080158015620004db573d6000803e3d6000fd5b5090507f3699b7de9b98bb64c45028ff3593b0d6159da8016d0f85b6af11d765320c87bb858583604051620005139392919062001664565b60405180910390a1809250505092915050565b6200053062000cc3565b6002838360405162000544929190620015a9565b908152602001604051809103902060009054906101000a900460ff161562000598576040517fe8148be800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060018484604051620005ae929190620015a9565b908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff16633659cfe6836040518263ffffffff1660e01b81526004016200061a9190620012e1565b600060405180830381600087803b1580156200063557600080fd5b505af11580156200064a573d6000803e3d6000fd5b505050507f52a6e00a16a485598386bd39b6aac98ed50e4fbde10ef9b5c18374faecb55010848484604051620006839392919062001664565b60405180910390a150505050565b600060018383604051620006a7929190620015a9565b908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000721573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007479190620016b1565b905092915050565b6200075962000cc3565b62000765600062000d53565b565b6200077162000cc3565b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fefb5cfa1a8690c124332ab93324539c5c9c4be03f28aeb8be86f2d8a0c9fb99b81604051620007e39190620012e1565b60405180910390a150565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6200082162000cc3565b60016002838360405162000837929190620015a9565b908152602001604051809103902060006101000a81548160ff0219169083151502179055507fdb5eb38fe380d319bb2af5e8db481d62239816dbed53336117498b997381ed0a82826040516200088f929190620016e3565b60405180910390a15050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b620008cb620007ee565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015620009555750600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b156200098d576040517fc0fc8a8a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660018484604051620009b9929190620015a9565b908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161462000a36576040517fb305d11d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803060405162000a469062000e2d565b62000a5392919062001709565b604051809103906000f08015801562000a70573d6000803e3d6000fd5b506001848460405162000a85929190620015a9565b908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600383839091806001815401808255809150506001900390600052602060002001600090919290919290919290919250918262000b1092919062001909565b507fcd9ac5e9f2139bf1a75249465635a4262de654f841368ec18f5800f5feeefef183838360405162000b469392919062001664565b60405180910390a1505050565b60606003805480602002602001604051908101604052809291908181526020016000905b8282101562000c2d57838290600052602060002001805462000b999062001540565b80601f016020809104026020016040519081016040528092919081815260200182805462000bc79062001540565b801562000c185780601f1062000bec5761010080835404028352916020019162000c18565b820191906000526020600020905b81548152906001019060200180831162000bfa57829003601f168201915b50505050508152602001906001019062000b77565b50505050905090565b62000c4062000cc3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000cb55760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040162000cac9190620012e1565b60405180910390fd5b62000cc08162000d53565b50565b62000ccd62000e17565b73ffffffffffffffffffffffffffffffffffffffff1662000ced620007ee565b73ffffffffffffffffffffffffffffffffffffffff161462000d515762000d1362000e17565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040162000d489190620012e1565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b61096080620019ef83390190565b61084f806200234f83390190565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000ea48262000e59565b810181811067ffffffffffffffff8211171562000ec65762000ec562000e6a565b5b80604052505050565b600062000edb62000e3b565b905062000ee9828262000e99565b919050565b600067ffffffffffffffff82111562000f0c5762000f0b62000e6a565b5b62000f178262000e59565b9050602081019050919050565b82818337600083830152505050565b600062000f4a62000f448462000eee565b62000ecf565b90508281526020810184848401111562000f695762000f6862000e54565b5b62000f7684828562000f24565b509392505050565b600082601f83011262000f965762000f9562000e4f565b5b813562000fa884826020860162000f33565b91505092915050565b60006020828403121562000fca5762000fc962000e45565b5b600082013567ffffffffffffffff81111562000feb5762000fea62000e4a565b5b62000ff98482850162000f7e565b91505092915050565b60008115159050919050565b620010198162001002565b82525050565b60006020820190506200103660008301846200100e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600062001087620010816200107b846200103c565b6200105c565b6200103c565b9050919050565b60006200109b8262001066565b9050919050565b6000620010af826200108e565b9050919050565b620010c181620010a2565b82525050565b6000602082019050620010de6000830184620010b6565b92915050565b6000819050919050565b620010f981620010e4565b81146200110557600080fd5b50565b6000813590506200111981620010ee565b92915050565b60006020828403121562001138576200113762000e45565b5b6000620011488482850162001108565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156200118d57808201518184015260208101905062001170565b60008484015250505050565b6000620011a68262001151565b620011b281856200115c565b9350620011c48185602086016200116d565b620011cf8162000e59565b840191505092915050565b60006020820190508181036000830152620011f6818462001199565b905092915050565b600080fd5b600080fd5b60008083601f84011262001221576200122062000e4f565b5b8235905067ffffffffffffffff811115620012415762001240620011fe565b5b60208301915083600182028301111562001260576200125f62001203565b5b9250929050565b6000806020838503121562001281576200128062000e45565b5b600083013567ffffffffffffffff811115620012a257620012a162000e4a565b5b620012b08582860162001208565b92509250509250929050565b6000620012c9826200103c565b9050919050565b620012db81620012bc565b82525050565b6000602082019050620012f86000830184620012d0565b92915050565b6200130981620012bc565b81146200131557600080fd5b50565b6000813590506200132981620012fe565b92915050565b6000806000604084860312156200134b576200134a62000e45565b5b600084013567ffffffffffffffff8111156200136c576200136b62000e4a565b5b6200137a8682870162001208565b935093505060206200138f8682870162001318565b9150509250925092565b600060208284031215620013b257620013b162000e45565b5b6000620013c28482850162001318565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000620014158262001151565b620014218185620013f7565b9350620014338185602086016200116d565b6200143e8162000e59565b840191505092915050565b600062001457838362001408565b905092915050565b6000602082019050919050565b60006200147982620013cb565b620014858185620013d6565b9350836020820285016200149985620013e7565b8060005b85811015620014db5784840389528151620014b9858262001449565b9450620014c6836200145f565b925060208a019950506001810190506200149d565b50829750879550505050505092915050565b600060208201905081810360008301526200150981846200146c565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200155957607f821691505b6020821081036200156f576200156e62001511565b5b50919050565b600081905092915050565b60006200158e838562001575565b93506200159d83858462000f24565b82840190509392505050565b6000620015b882848662001580565b91508190509392505050565b600082825260208201905092915050565b50565b6000620015e7600083620015c4565b9150620015f482620015d5565b600082019050919050565b6000604082019050620016166000830184620012d0565b81810360208301526200162981620015d8565b905092915050565b60006200163f83856200115c565b93506200164e83858462000f24565b620016598362000e59565b840190509392505050565b600060408201905081810360008301526200168181858762001631565b9050620016926020830184620012d0565b949350505050565b600081519050620016ab81620012fe565b92915050565b600060208284031215620016ca57620016c962000e45565b5b6000620016da848285016200169a565b91505092915050565b600060208201905081810360008301526200170081848662001631565b90509392505050565b6000604082019050620017206000830185620012d0565b6200172f6020830184620012d0565b9392505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620017a57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262001766565b620017b1868362001766565b95508019841693508086168417925050509392505050565b6000620017ea620017e4620017de84620010e4565b6200105c565b620010e4565b9050919050565b6000819050919050565b6200180683620017c9565b6200181e6200181582620017f1565b84845462001773565b825550505050565b600090565b6200183562001826565b62001842818484620017fb565b505050565b5b818110156200186a576200185e6000826200182b565b60018101905062001848565b5050565b601f821115620018b957620018838162001741565b6200188e8462001756565b810160208510156200189e578190505b620018b6620018ad8562001756565b83018262001847565b50505b505050565b600082821c905092915050565b6000620018de60001984600802620018be565b1980831691505092915050565b6000620018f98383620018cb565b9150826002028217905092915050565b62001915838362001736565b67ffffffffffffffff81111562001931576200193062000e6a565b5b6200193d825462001540565b6200194a8282856200186e565b6000601f8311600181146200197e576000841562001969578287013590505b620019758582620018eb565b865550620019e5565b601f1984166200198e8662001741565b60005b82811015620019b85784890135825560018201915060208501945060208101905062001991565b86831015620019d85784890135620019d4601f891682620018cb565b8355505b6001600288020188555050505b5050505050505056fe60a060405260405161096038038061096083398181016040528101906100259190610684565b610035828261007060201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505050610795565b61007f8261016360201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff167f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e60405160405180910390a26000815111156101505761014a8273ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561011a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013e91906106e0565b8261030660201b60201c565b5061015f565b61015e61039060201b60201c565b5b5050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036101bf57806040517f64ced0ec0000000000000000000000000000000000000000000000000000000081526004016101b6919061071c565b60405180910390fd5b806101f27fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5060001b6103cd60201b60201c565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008173ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610280573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a491906106e0565b905060008173ffffffffffffffffffffffffffffffffffffffff163b0361030257806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016102f9919061071c565b60405180910390fd5b5050565b60606000808473ffffffffffffffffffffffffffffffffffffffff1684604051610330919061077e565b600060405180830381855af49150503d806000811461036b576040519150601f19603f3d011682016040523d82523d6000602084013e610370565b606091505b50915091506103868583836103d760201b60201c565b9250505092915050565b60003411156103cb576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000819050919050565b6060826103f2576103ed8261046c60201b60201c565b610464565b6000825114801561041a575060008473ffffffffffffffffffffffffffffffffffffffff163b145b1561045c57836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401610453919061071c565b60405180910390fd5b819050610465565b5b9392505050565b60008151111561047f5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104f0826104c5565b9050919050565b610500816104e5565b811461050b57600080fd5b50565b60008151905061051d816104f7565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6105768261052d565b810181811067ffffffffffffffff821117156105955761059461053e565b5b80604052505050565b60006105a86104b1565b90506105b4828261056d565b919050565b600067ffffffffffffffff8211156105d4576105d361053e565b5b6105dd8261052d565b9050602081019050919050565b60005b838110156106085780820151818401526020810190506105ed565b60008484015250505050565b6000610627610622846105b9565b61059e565b90508281526020810184848401111561064357610642610528565b5b61064e8482856105ea565b509392505050565b600082601f83011261066b5761066a610523565b5b815161067b848260208601610614565b91505092915050565b6000806040838503121561069b5761069a6104bb565b5b60006106a98582860161050e565b925050602083015167ffffffffffffffff8111156106ca576106c96104c0565b5b6106d685828601610656565b9150509250929050565b6000602082840312156106f6576106f56104bb565b5b60006107048482850161050e565b91505092915050565b610716816104e5565b82525050565b6000602082019050610731600083018461070d565b92915050565b600081519050919050565b600081905092915050565b600061075882610737565b6107628185610742565b93506107728185602086016105ea565b80840191505092915050565b600061078a828461074d565b915081905092915050565b6080516101b16107af600039600060c701526101b16000f3fe608060405261000c61000e565b005b61001e610019610020565b61009d565b565b600061002a6100c3565b73ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610074573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610098919061014e565b905090565b3660008037600080366000845af43d6000803e80600081146100be573d6000f35b3d6000fd5b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061011b826100f0565b9050919050565b61012b81610110565b811461013657600080fd5b50565b60008151905061014881610122565b92915050565b600060208284031215610164576101636100eb565b5b600061017284828501610139565b9150509291505056fea264697066735822122032bc54f1e24a935320cbf07e279930227567789253f0f771d66d5678ab6e257364736f6c63430008170033608060405234801561001057600080fd5b5060405161084f38038061084f833981810160405281019061003291906102d5565b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a55760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161009c9190610324565b60405180910390fd5b6100b4816100cb60201b60201c565b506100c48261018f60201b60201c565b505061033f565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036101eb57806040517f847ac5640000000000000000000000000000000000000000000000000000000081526004016101e29190610324565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006102a282610277565b9050919050565b6102b281610297565b81146102bd57600080fd5b50565b6000815190506102cf816102a9565b92915050565b600080604083850312156102ec576102eb610272565b5b60006102fa858286016102c0565b925050602061030b858286016102c0565b9150509250929050565b61031e81610297565b82525050565b60006020820190506103396000830184610315565b92915050565b6105018061034e6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610078578063715018a6146100965780638da5cb5b146100a0578063f2fde38b146100be575b600080fd5b61007660048036038101906100719190610474565b6100da565b005b6100806100ee565b60405161008d91906104b0565b60405180910390f35b61009e610118565b005b6100a861012c565b6040516100b591906104b0565b60405180910390f35b6100d860048036038101906100d39190610474565b610155565b005b6100e26101db565b6100eb81610262565b50565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6101206101db565b61012a6000610345565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61015d6101db565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101cf5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016101c691906104b0565b60405180910390fd5b6101d881610345565b50565b6101e3610409565b73ffffffffffffffffffffffffffffffffffffffff1661020161012c565b73ffffffffffffffffffffffffffffffffffffffff161461026057610224610409565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161025791906104b0565b60405180910390fd5b565b60008173ffffffffffffffffffffffffffffffffffffffff163b036102be57806040517f847ac5640000000000000000000000000000000000000000000000000000000081526004016102b591906104b0565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061044182610416565b9050919050565b61045181610436565b811461045c57600080fd5b50565b60008135905061046e81610448565b92915050565b60006020828403121561048a57610489610411565b5b60006104988482850161045f565b91505092915050565b6104aa81610436565b82525050565b60006020820190506104c560008301846104a1565b9291505056fea26469706673582212206821cc4d63f188eecf2720f7911bce4fa3a6840506d54f667c58a500acf46ca664736f6c63430008170033a264697066735822122057413a5e54ae92043dc1824f1570890fab8ca900589ad2c47288b56317d9851a64736f6c634300081700330000000000000000000000004fed5491693007f0cd49f4614ffc38ab6a04b619
Deployed Bytecode
0x60806040523480156200001157600080fd5b5060043610620001005760003560e01c8063748747e61162000099578063aced1661116200006f578063aced166114620002a1578063b7eaa47a14620002c3578063dd071c4b14620002e3578063f2fde38b14620003055762000100565b8063748747e6146200023f5780638da5cb5b146200025f578063a261873014620002815762000100565b8063456be12811620000db578063456be12814620001a75780635a8b1a9f14620001dd5780636b68389614620001fd578063715018a614620002335762000100565b80633ab1660e146200010557806341a1914e146200013b578063444463eb1462000171575b600080fd5b6200012360048036038101906200011d919062000fb1565b62000325565b6040516200013291906200101f565b60405180910390f35b62000159600480360381019062000153919062000fb1565b6200035b565b604051620001689190620010c7565b60405180910390f35b6200018f60048036038101906200018991906200111f565b620003a4565b6040516200019e9190620011da565b60405180910390f35b620001c56004803603810190620001bf919062001267565b62000459565b604051620001d49190620012e1565b60405180910390f35b620001fb6004803603810190620001f591906200132f565b62000526565b005b6200021b600480360381019062000215919062001267565b62000691565b6040516200022a9190620012e1565b60405180910390f35b6200023d6200074f565b005b6200025d600480360381019062000257919062001399565b62000767565b005b62000269620007ee565b604051620002789190620012e1565b60405180910390f35b6200029f600480360381019062000299919062001267565b62000817565b005b620002ab6200089b565b604051620002ba9190620012e1565b60405180910390f35b620002e16004803603810190620002db91906200132f565b620008c1565b005b620002ed62000b53565b604051620002fc9190620014ed565b60405180910390f35b6200032360048036038101906200031d919062001399565b62000c36565b005b6002818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b6001818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60038181548110620003b557600080fd5b906000526020600020016000915090508054620003d29062001540565b80601f0160208091040260200160405190810160405280929190818152602001828054620004009062001540565b8015620004515780601f10620004255761010080835404028352916020019162000451565b820191906000526020600020905b8154815290600101906020018083116200043357829003601f168201915b505050505081565b6000806001848460405162000470929190620015a9565b908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600081604051620004b29062000e1f565b620004be9190620015ff565b604051809103906000f080158015620004db573d6000803e3d6000fd5b5090507f3699b7de9b98bb64c45028ff3593b0d6159da8016d0f85b6af11d765320c87bb858583604051620005139392919062001664565b60405180910390a1809250505092915050565b6200053062000cc3565b6002838360405162000544929190620015a9565b908152602001604051809103902060009054906101000a900460ff161562000598576040517fe8148be800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060018484604051620005ae929190620015a9565b908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff16633659cfe6836040518263ffffffff1660e01b81526004016200061a9190620012e1565b600060405180830381600087803b1580156200063557600080fd5b505af11580156200064a573d6000803e3d6000fd5b505050507f52a6e00a16a485598386bd39b6aac98ed50e4fbde10ef9b5c18374faecb55010848484604051620006839392919062001664565b60405180910390a150505050565b600060018383604051620006a7929190620015a9565b908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000721573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007479190620016b1565b905092915050565b6200075962000cc3565b62000765600062000d53565b565b6200077162000cc3565b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fefb5cfa1a8690c124332ab93324539c5c9c4be03f28aeb8be86f2d8a0c9fb99b81604051620007e39190620012e1565b60405180910390a150565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6200082162000cc3565b60016002838360405162000837929190620015a9565b908152602001604051809103902060006101000a81548160ff0219169083151502179055507fdb5eb38fe380d319bb2af5e8db481d62239816dbed53336117498b997381ed0a82826040516200088f929190620016e3565b60405180910390a15050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b620008cb620007ee565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015620009555750600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b156200098d576040517fc0fc8a8a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660018484604051620009b9929190620015a9565b908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161462000a36576040517fb305d11d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803060405162000a469062000e2d565b62000a5392919062001709565b604051809103906000f08015801562000a70573d6000803e3d6000fd5b506001848460405162000a85929190620015a9565b908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600383839091806001815401808255809150506001900390600052602060002001600090919290919290919290919250918262000b1092919062001909565b507fcd9ac5e9f2139bf1a75249465635a4262de654f841368ec18f5800f5feeefef183838360405162000b469392919062001664565b60405180910390a1505050565b60606003805480602002602001604051908101604052809291908181526020016000905b8282101562000c2d57838290600052602060002001805462000b999062001540565b80601f016020809104026020016040519081016040528092919081815260200182805462000bc79062001540565b801562000c185780601f1062000bec5761010080835404028352916020019162000c18565b820191906000526020600020905b81548152906001019060200180831162000bfa57829003601f168201915b50505050508152602001906001019062000b77565b50505050905090565b62000c4062000cc3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000cb55760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040162000cac9190620012e1565b60405180910390fd5b62000cc08162000d53565b50565b62000ccd62000e17565b73ffffffffffffffffffffffffffffffffffffffff1662000ced620007ee565b73ffffffffffffffffffffffffffffffffffffffff161462000d515762000d1362000e17565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040162000d489190620012e1565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b61096080620019ef83390190565b61084f806200234f83390190565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000ea48262000e59565b810181811067ffffffffffffffff8211171562000ec65762000ec562000e6a565b5b80604052505050565b600062000edb62000e3b565b905062000ee9828262000e99565b919050565b600067ffffffffffffffff82111562000f0c5762000f0b62000e6a565b5b62000f178262000e59565b9050602081019050919050565b82818337600083830152505050565b600062000f4a62000f448462000eee565b62000ecf565b90508281526020810184848401111562000f695762000f6862000e54565b5b62000f7684828562000f24565b509392505050565b600082601f83011262000f965762000f9562000e4f565b5b813562000fa884826020860162000f33565b91505092915050565b60006020828403121562000fca5762000fc962000e45565b5b600082013567ffffffffffffffff81111562000feb5762000fea62000e4a565b5b62000ff98482850162000f7e565b91505092915050565b60008115159050919050565b620010198162001002565b82525050565b60006020820190506200103660008301846200100e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600062001087620010816200107b846200103c565b6200105c565b6200103c565b9050919050565b60006200109b8262001066565b9050919050565b6000620010af826200108e565b9050919050565b620010c181620010a2565b82525050565b6000602082019050620010de6000830184620010b6565b92915050565b6000819050919050565b620010f981620010e4565b81146200110557600080fd5b50565b6000813590506200111981620010ee565b92915050565b60006020828403121562001138576200113762000e45565b5b6000620011488482850162001108565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156200118d57808201518184015260208101905062001170565b60008484015250505050565b6000620011a68262001151565b620011b281856200115c565b9350620011c48185602086016200116d565b620011cf8162000e59565b840191505092915050565b60006020820190508181036000830152620011f6818462001199565b905092915050565b600080fd5b600080fd5b60008083601f84011262001221576200122062000e4f565b5b8235905067ffffffffffffffff811115620012415762001240620011fe565b5b60208301915083600182028301111562001260576200125f62001203565b5b9250929050565b6000806020838503121562001281576200128062000e45565b5b600083013567ffffffffffffffff811115620012a257620012a162000e4a565b5b620012b08582860162001208565b92509250509250929050565b6000620012c9826200103c565b9050919050565b620012db81620012bc565b82525050565b6000602082019050620012f86000830184620012d0565b92915050565b6200130981620012bc565b81146200131557600080fd5b50565b6000813590506200132981620012fe565b92915050565b6000806000604084860312156200134b576200134a62000e45565b5b600084013567ffffffffffffffff8111156200136c576200136b62000e4a565b5b6200137a8682870162001208565b935093505060206200138f8682870162001318565b9150509250925092565b600060208284031215620013b257620013b162000e45565b5b6000620013c28482850162001318565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000620014158262001151565b620014218185620013f7565b9350620014338185602086016200116d565b6200143e8162000e59565b840191505092915050565b600062001457838362001408565b905092915050565b6000602082019050919050565b60006200147982620013cb565b620014858185620013d6565b9350836020820285016200149985620013e7565b8060005b85811015620014db5784840389528151620014b9858262001449565b9450620014c6836200145f565b925060208a019950506001810190506200149d565b50829750879550505050505092915050565b600060208201905081810360008301526200150981846200146c565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200155957607f821691505b6020821081036200156f576200156e62001511565b5b50919050565b600081905092915050565b60006200158e838562001575565b93506200159d83858462000f24565b82840190509392505050565b6000620015b882848662001580565b91508190509392505050565b600082825260208201905092915050565b50565b6000620015e7600083620015c4565b9150620015f482620015d5565b600082019050919050565b6000604082019050620016166000830184620012d0565b81810360208301526200162981620015d8565b905092915050565b60006200163f83856200115c565b93506200164e83858462000f24565b620016598362000e59565b840190509392505050565b600060408201905081810360008301526200168181858762001631565b9050620016926020830184620012d0565b949350505050565b600081519050620016ab81620012fe565b92915050565b600060208284031215620016ca57620016c962000e45565b5b6000620016da848285016200169a565b91505092915050565b600060208201905081810360008301526200170081848662001631565b90509392505050565b6000604082019050620017206000830185620012d0565b6200172f6020830184620012d0565b9392505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620017a57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262001766565b620017b1868362001766565b95508019841693508086168417925050509392505050565b6000620017ea620017e4620017de84620010e4565b6200105c565b620010e4565b9050919050565b6000819050919050565b6200180683620017c9565b6200181e6200181582620017f1565b84845462001773565b825550505050565b600090565b6200183562001826565b62001842818484620017fb565b505050565b5b818110156200186a576200185e6000826200182b565b60018101905062001848565b5050565b601f821115620018b957620018838162001741565b6200188e8462001756565b810160208510156200189e578190505b620018b6620018ad8562001756565b83018262001847565b50505b505050565b600082821c905092915050565b6000620018de60001984600802620018be565b1980831691505092915050565b6000620018f98383620018cb565b9150826002028217905092915050565b62001915838362001736565b67ffffffffffffffff81111562001931576200193062000e6a565b5b6200193d825462001540565b6200194a8282856200186e565b6000601f8311600181146200197e576000841562001969578287013590505b620019758582620018eb565b865550620019e5565b601f1984166200198e8662001741565b60005b82811015620019b85784890135825560018201915060208501945060208101905062001991565b86831015620019d85784890135620019d4601f891682620018cb565b8355505b6001600288020188555050505b5050505050505056fe60a060405260405161096038038061096083398181016040528101906100259190610684565b610035828261007060201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505050610795565b61007f8261016360201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff167f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e60405160405180910390a26000815111156101505761014a8273ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561011a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013e91906106e0565b8261030660201b60201c565b5061015f565b61015e61039060201b60201c565b5b5050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036101bf57806040517f64ced0ec0000000000000000000000000000000000000000000000000000000081526004016101b6919061071c565b60405180910390fd5b806101f27fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5060001b6103cd60201b60201c565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008173ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610280573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a491906106e0565b905060008173ffffffffffffffffffffffffffffffffffffffff163b0361030257806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016102f9919061071c565b60405180910390fd5b5050565b60606000808473ffffffffffffffffffffffffffffffffffffffff1684604051610330919061077e565b600060405180830381855af49150503d806000811461036b576040519150601f19603f3d011682016040523d82523d6000602084013e610370565b606091505b50915091506103868583836103d760201b60201c565b9250505092915050565b60003411156103cb576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000819050919050565b6060826103f2576103ed8261046c60201b60201c565b610464565b6000825114801561041a575060008473ffffffffffffffffffffffffffffffffffffffff163b145b1561045c57836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401610453919061071c565b60405180910390fd5b819050610465565b5b9392505050565b60008151111561047f5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104f0826104c5565b9050919050565b610500816104e5565b811461050b57600080fd5b50565b60008151905061051d816104f7565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6105768261052d565b810181811067ffffffffffffffff821117156105955761059461053e565b5b80604052505050565b60006105a86104b1565b90506105b4828261056d565b919050565b600067ffffffffffffffff8211156105d4576105d361053e565b5b6105dd8261052d565b9050602081019050919050565b60005b838110156106085780820151818401526020810190506105ed565b60008484015250505050565b6000610627610622846105b9565b61059e565b90508281526020810184848401111561064357610642610528565b5b61064e8482856105ea565b509392505050565b600082601f83011261066b5761066a610523565b5b815161067b848260208601610614565b91505092915050565b6000806040838503121561069b5761069a6104bb565b5b60006106a98582860161050e565b925050602083015167ffffffffffffffff8111156106ca576106c96104c0565b5b6106d685828601610656565b9150509250929050565b6000602082840312156106f6576106f56104bb565b5b60006107048482850161050e565b91505092915050565b610716816104e5565b82525050565b6000602082019050610731600083018461070d565b92915050565b600081519050919050565b600081905092915050565b600061075882610737565b6107628185610742565b93506107728185602086016105ea565b80840191505092915050565b600061078a828461074d565b915081905092915050565b6080516101b16107af600039600060c701526101b16000f3fe608060405261000c61000e565b005b61001e610019610020565b61009d565b565b600061002a6100c3565b73ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610074573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610098919061014e565b905090565b3660008037600080366000845af43d6000803e80600081146100be573d6000f35b3d6000fd5b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061011b826100f0565b9050919050565b61012b81610110565b811461013657600080fd5b50565b60008151905061014881610122565b92915050565b600060208284031215610164576101636100eb565b5b600061017284828501610139565b9150509291505056fea264697066735822122032bc54f1e24a935320cbf07e279930227567789253f0f771d66d5678ab6e257364736f6c63430008170033608060405234801561001057600080fd5b5060405161084f38038061084f833981810160405281019061003291906102d5565b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a55760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161009c9190610324565b60405180910390fd5b6100b4816100cb60201b60201c565b506100c48261018f60201b60201c565b505061033f565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036101eb57806040517f847ac5640000000000000000000000000000000000000000000000000000000081526004016101e29190610324565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006102a282610277565b9050919050565b6102b281610297565b81146102bd57600080fd5b50565b6000815190506102cf816102a9565b92915050565b600080604083850312156102ec576102eb610272565b5b60006102fa858286016102c0565b925050602061030b858286016102c0565b9150509250929050565b61031e81610297565b82525050565b60006020820190506103396000830184610315565b92915050565b6105018061034e6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610078578063715018a6146100965780638da5cb5b146100a0578063f2fde38b146100be575b600080fd5b61007660048036038101906100719190610474565b6100da565b005b6100806100ee565b60405161008d91906104b0565b60405180910390f35b61009e610118565b005b6100a861012c565b6040516100b591906104b0565b60405180910390f35b6100d860048036038101906100d39190610474565b610155565b005b6100e26101db565b6100eb81610262565b50565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6101206101db565b61012a6000610345565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61015d6101db565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101cf5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016101c691906104b0565b60405180910390fd5b6101d881610345565b50565b6101e3610409565b73ffffffffffffffffffffffffffffffffffffffff1661020161012c565b73ffffffffffffffffffffffffffffffffffffffff161461026057610224610409565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161025791906104b0565b60405180910390fd5b565b60008173ffffffffffffffffffffffffffffffffffffffff163b036102be57806040517f847ac5640000000000000000000000000000000000000000000000000000000081526004016102b591906104b0565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061044182610416565b9050919050565b61045181610436565b811461045c57600080fd5b50565b60008135905061046e81610448565b92915050565b60006020828403121561048a57610489610411565b5b60006104988482850161045f565b91505092915050565b6104aa81610436565b82525050565b60006020820190506104c560008301846104a1565b9291505056fea26469706673582212206821cc4d63f188eecf2720f7911bce4fa3a6840506d54f667c58a500acf46ca664736f6c63430008170033a264697066735822122057413a5e54ae92043dc1824f1570890fab8ca900589ad2c47288b56317d9851a64736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004fed5491693007f0cd49f4614ffc38ab6a04b619
-----Decoded View---------------
Arg [0] : _keeper (address): 0x4fED5491693007f0CD49f4614FFC38Ab6A04B619
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004fed5491693007f0cd49f4614ffc38ab6a04b619
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.