Source Code
Overview
MON Balance
MON Value
$0.00Latest 13 from a total of 13 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Create Reward Po... | 48293529 | 12 days ago | IN | 0 MON | 0.01898897 | ||||
| Create Reward Po... | 46345735 | 21 days ago | IN | 0 MON | 0.01897036 | ||||
| Create Reward Po... | 42951693 | 36 days ago | IN | 0 MON | 0.01897036 | ||||
| Create Reward Po... | 42950741 | 36 days ago | IN | 0 MON | 0.01897036 | ||||
| Create Reward Po... | 39619426 | 52 days ago | IN | 0 MON | 0.01915635 | ||||
| Create Reward Po... | 39619006 | 52 days ago | IN | 0 MON | 0.01897036 | ||||
| Create Reward Po... | 39618449 | 52 days ago | IN | 0 MON | 0.01878528 | ||||
| Create Reward Po... | 39617680 | 52 days ago | IN | 0 MON | 0.01877691 | ||||
| Create Reward Po... | 39420831 | 53 days ago | IN | 0 MON | 0.01884233 | ||||
| Create Reward Po... | 38130566 | 59 days ago | IN | 0 MON | 0.01878438 | ||||
| Create Reward Po... | 37977231 | 60 days ago | IN | 0 MON | 0.01878438 | ||||
| Transfer Ownersh... | 37973466 | 60 days ago | IN | 0 MON | 0.00546093 | ||||
| Add Reward Pool | 37973427 | 60 days ago | IN | 0 MON | 0.05678222 |
Latest 12 internal transactions
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 48293529 | 12 days ago | Contract Creation | 0 MON | |||
| 46345735 | 21 days ago | Contract Creation | 0 MON | |||
| 42951693 | 36 days ago | Contract Creation | 0 MON | |||
| 42950741 | 36 days ago | Contract Creation | 0 MON | |||
| 39619426 | 52 days ago | Contract Creation | 0 MON | |||
| 39619006 | 52 days ago | Contract Creation | 0 MON | |||
| 39618449 | 52 days ago | Contract Creation | 0 MON | |||
| 39617680 | 52 days ago | Contract Creation | 0 MON | |||
| 39420831 | 53 days ago | Contract Creation | 0 MON | |||
| 38130566 | 59 days ago | Contract Creation | 0 MON | |||
| 37977231 | 60 days ago | Contract Creation | 0 MON | |||
| 37973427 | 60 days ago | Contract Creation | 0 MON |
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:
Yes 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-4/contracts/proxy/beacon/BeaconProxy.sol";
import {UpgradeableBeacon} from "@openzeppelin-4/contracts/proxy/beacon/UpgradeableBeacon.sol";
import {Ownable} from "@openzeppelin-4/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) (interfaces/IERC1967.sol)
pragma solidity ^0.8.20;
/**
* @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
*/
interface IERC1967 {
/**
* @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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.0) (proxy/beacon/BeaconProxy.sol)
pragma solidity ^0.8.22;
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[ERC-1967] 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.2.0) (proxy/ERC1967/ERC1967Utils.sol)
pragma solidity ^0.8.22;
import {IBeacon} from "../beacon/IBeacon.sol";
import {IERC1967} from "../../interfaces/IERC1967.sol";
import {Address} from "../../utils/Address.sol";
import {StorageSlot} from "../../utils/StorageSlot.sol";
/**
* @dev This library provides getters and event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.
*/
library ERC1967Utils {
/**
* @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 ERC-1967 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 IERC1967.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 ERC-1967) 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 ERC-1967 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 IERC1967.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 ERC-1967 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 IERC1967.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.2.0) (utils/Address.sol)
pragma solidity ^0.8.20;
import {Errors} from "./Errors.sol";
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @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 Errors.InsufficientBalance(address(this).balance, amount);
}
(bool success, bytes memory returndata) = recipient.call{value: amount}("");
if (!success) {
_revert(returndata);
}
}
/**
* @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
* {Errors.FailedCall} 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 Errors.InsufficientBalance(address(this).balance, value);
}
(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 {Errors.FailedCall}) 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 {Errors.FailedCall} 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 {Errors.FailedCall}.
*/
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
assembly ("memory-safe") {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert Errors.FailedCall();
}
}
}// 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.1.0) (utils/Errors.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of common custom errors used in multiple contracts
*
* IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
* It is recommended to avoid relying on the error API for critical functionality.
*
* _Available since v5.1._
*/
library Errors {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error InsufficientBalance(uint256 balance, uint256 needed);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedCall();
/**
* @dev The deployment failed.
*/
error FailedDeployment();
/**
* @dev A necessary precompile is missing.
*/
error MissingPrecompile(address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.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 ERC-1967 implementation slot:
* ```solidity
* contract ERC1967 {
* // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.
* 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;
* }
* }
* ```
*
* TIP: Consider using this library along with {SlotDerivation}.
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct Int256Slot {
int256 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) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `Int256Slot` with member `value` located at `slot`.
*/
function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
assembly ("memory-safe") {
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) {
assembly ("memory-safe") {
r.slot := store.slot
}
}
/**
* @dev Returns a `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
assembly ("memory-safe") {
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) {
assembly ("memory-safe") {
r.slot := store.slot
}
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}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
608060405234801561001057600080fd5b50604051611a47380380611a4783398101604081905261002f916100d4565b338061005557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61005e81610084565b50600480546001600160a01b0319166001600160a01b0392909216919091179055610104565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100e657600080fd5b81516001600160a01b03811681146100fd57600080fd5b9392505050565b611934806101136000396000f3fe60806040523480156200001157600080fd5b5060043610620000fd5760003560e01c8063748747e61162000097578063aced1661116200006e578063aced1661146200024f578063b7eaa47a1462000263578063dd071c4b146200027a578063f2fde38b146200029357600080fd5b8063748747e6146200020f5780638da5cb5b1462000226578063a2618730146200023857600080fd5b8063456be12811620000d8578063456be12814620001be5780635a8b1a9f14620001d55780636b68389614620001ee578063715018a6146200020557600080fd5b80633ab1660e146200010257806341a1914e1462000148578063444463eb1462000198575b600080fd5b620001336200011336600462000a44565b805160208183018101805160028252928201919093012091525460ff1681565b60405190151581526020015b60405180910390f35b6200017f6200015936600462000a44565b80516020818301810180516001825292820191909301209152546001600160a01b031681565b6040516001600160a01b0390911681526020016200013f565b620001af620001a936600462000aff565b620002aa565b6040516200013f919062000b61565b6200017f620001cf36600462000bc2565b6200035f565b620001ec620001e636600462000c1e565b62000425565b005b6200017f620001ff36600462000bc2565b6200053a565b620001ec620005cd565b620001ec6200022036600462000c7b565b620005e5565b6000546001600160a01b03166200017f565b620001ec6200024936600462000bc2565b62000643565b6004546200017f906001600160a01b031681565b620001ec6200027436600462000c1e565b620006c1565b6200028462000868565b6040516200013f919062000c9b565b620001ec620002a436600462000c7b565b6200094b565b60038181548110620002bb57600080fd5b906000526020600020016000915090508054620002d89062000d03565b80601f0160208091040260200160405190810160405280929190818152602001828054620003069062000d03565b8015620003575780601f106200032b5761010080835404028352916020019162000357565b820191906000526020600020905b8154815290600101906020018083116200033957829003601f168201915b505050505081565b600080600184846040516200037692919062000d3f565b908152604051908190036020018120546001600160a01b031691506000908290620003a19062000a12565b6001600160a01b039091168152604060208201819052600090820152606001604051809103906000f080158015620003dd573d6000803e3d6000fd5b5090507f3699b7de9b98bb64c45028ff3593b0d6159da8016d0f85b6af11d765320c87bb858583604051620004159392919062000d78565b60405180910390a1949350505050565b6200042f62000993565b600283836040516200044392919062000d3f565b9081526040519081900360200190205460ff16156200047557604051631d02917d60e31b815260040160405180910390fd5b6000600184846040516200048b92919062000d3f565b90815260405190819003602001812054631b2ce7f360e11b82526001600160a01b0384811660048401521691508190633659cfe690602401600060405180830381600087803b158015620004de57600080fd5b505af1158015620004f3573d6000803e3d6000fd5b505050507f52a6e00a16a485598386bd39b6aac98ed50e4fbde10ef9b5c18374faecb550108484846040516200052c9392919062000d78565b60405180910390a150505050565b6000600183836040516200055092919062000d3f565b908152604080516020928190038301812054635c60da1b60e01b825291516001600160a01b0390921692635c60da1b926004808401938290030181865afa158015620005a0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005c6919062000da6565b9392505050565b620005d762000993565b620005e36000620009c2565b565b620005ef62000993565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527fefb5cfa1a8690c124332ab93324539c5c9c4be03f28aeb8be86f2d8a0c9fb99b9060200160405180910390a150565b6200064d62000993565b6001600283836040516200066392919062000d3f565b908152604051908190036020018120805492151560ff19909316929092179091557fdb5eb38fe380d319bb2af5e8db481d62239816dbed53336117498b997381ed0a90620006b5908490849062000dc6565b60405180910390a15050565b6000546001600160a01b03163314801590620006e857506004546001600160a01b03163314155b15620007075760405163607e454560e11b815260040160405180910390fd5b60006001600160a01b0316600184846040516200072692919062000d3f565b908152604051908190036020019020546001600160a01b0316146200075e5760405163b305d11d60e01b815260040160405180910390fd5b80306040516200076e9062000a20565b6001600160a01b03928316815291166020820152604001604051809103906000f080158015620007a2573d6000803e3d6000fd5b5060018484604051620007b792919062000d3f565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b0319909216919091179055600380546001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b016200082583858362000e39565b507fcd9ac5e9f2139bf1a75249465635a4262de654f841368ec18f5800f5feeefef18383836040516200085b9392919062000d78565b60405180910390a1505050565b60606003805480602002602001604051908101604052809291908181526020016000905b8282101562000942578382906000526020600020018054620008ae9062000d03565b80601f0160208091040260200160405190810160405280929190818152602001828054620008dc9062000d03565b80156200092d5780601f1062000901576101008083540402835291602001916200092d565b820191906000526020600020905b8154815290600101906020018083116200090f57829003601f168201915b5050505050815260200190600101906200088c565b50505050905090565b6200095562000993565b6001600160a01b0381166200098557604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6200099081620009c2565b50565b6000546001600160a01b03163314620005e35760405163118cdaa760e01b81523360048201526024016200097c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105bf8062000f0883390190565b61043880620014c783390190565b634e487b7160e01b600052604160045260246000fd5b60006020828403121562000a5757600080fd5b813567ffffffffffffffff8082111562000a7057600080fd5b818401915084601f83011262000a8557600080fd5b81358181111562000a9a5762000a9a62000a2e565b604051601f8201601f19908116603f0116810190838211818310171562000ac55762000ac562000a2e565b8160405282815287602084870101111562000adf57600080fd5b826020860160208301376000928101602001929092525095945050505050565b60006020828403121562000b1257600080fd5b5035919050565b6000815180845260005b8181101562000b415760208185018101518683018201520162000b23565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000620005c6602083018462000b19565b60008083601f84011262000b8957600080fd5b50813567ffffffffffffffff81111562000ba257600080fd5b60208301915083602082850101111562000bbb57600080fd5b9250929050565b6000806020838503121562000bd657600080fd5b823567ffffffffffffffff81111562000bee57600080fd5b62000bfc8582860162000b76565b90969095509350505050565b6001600160a01b03811681146200099057600080fd5b60008060006040848603121562000c3457600080fd5b833567ffffffffffffffff81111562000c4c57600080fd5b62000c5a8682870162000b76565b909450925050602084013562000c708162000c08565b809150509250925092565b60006020828403121562000c8e57600080fd5b8135620005c68162000c08565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101562000cf657603f1988860301845262000ce385835162000b19565b9450928501929085019060010162000cc4565b5092979650505050505050565b600181811c9082168062000d1857607f821691505b60208210810362000d3957634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60408152600062000d8e60408301858762000d4f565b905060018060a01b0383166020830152949350505050565b60006020828403121562000db957600080fd5b8151620005c68162000c08565b60208152600062000ddc60208301848662000d4f565b949350505050565b601f82111562000e34576000816000526020600020601f850160051c8101602086101562000e0f5750805b601f850160051c820191505b8181101562000e305782815560010162000e1b565b5050505b505050565b67ffffffffffffffff83111562000e545762000e5462000a2e565b62000e6c8362000e65835462000d03565b8362000de4565b6000601f84116001811462000ea3576000851562000e8a5750838201355b600019600387901b1c1916600186901b17835562000f00565b600083815260209020601f19861690835b8281101562000ed6578685013582556020948501946001909201910162000eb4565b508682101562000ef45760001960f88860031b161c19848701351681555b505060018560011b0183555b505050505056fe60a06040526040516105bf3803806105bf83398101604081905261002291610387565b61002c828261003e565b506001600160a01b031660805261047e565b610047826100fe565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a28051156100f2576100ed826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e79190610447565b82610211565b505050565b6100fa610288565b5050565b806001600160a01b03163b60000361013957604051631933b43b60e21b81526001600160a01b03821660048201526024015b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b81529051600092841691635c60da1b9160048083019260209291908290030181865afa1580156101b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d99190610447565b9050806001600160a01b03163b6000036100fa57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610130565b6060600080846001600160a01b03168460405161022e9190610462565b600060405180830381855af49150503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b50909250905061027f8583836102a9565b95945050505050565b34156102a75760405163b398979f60e01b815260040160405180910390fd5b565b6060826102be576102b982610308565b610301565b81511580156102d557506001600160a01b0384163b155b156102fe57604051639996b31560e01b81526001600160a01b0385166004820152602401610130565b50805b9392505050565b8051156103185780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80516001600160a01b038116811461034857600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561037e578181015183820152602001610366565b50506000910152565b6000806040838503121561039a57600080fd5b6103a383610331565b60208401519092506001600160401b03808211156103c057600080fd5b818501915085601f8301126103d457600080fd5b8151818111156103e6576103e661034d565b604051601f8201601f19908116603f0116810190838211818310171561040e5761040e61034d565b8160405282815288602084870101111561042757600080fd5b610438836020830160208801610363565b80955050505050509250929050565b60006020828403121561045957600080fd5b61030182610331565b60008251610474818460208701610363565b9190910192915050565b6080516101276104986000396000601e01526101276000f3fe6080604052600a600c565b005b60186014601a565b60a0565b565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156079573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190609b919060c3565b905090565b3660008037600080366000845af43d6000803e80801560be573d6000f35b3d6000fd5b60006020828403121560d457600080fd5b81516001600160a01b038116811460ea57600080fd5b939250505056fea2646970667358221220431941af5a4bbf4116e9835ddbca8a88276bb3535d6a7da06715c0a40322389864736f6c63430008170033608060405234801561001057600080fd5b5060405161043838038061043883398101604081905261002f91610165565b806001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61006881610079565b50610072826100c9565b5050610198565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b6000036100ff5760405163211eb15960e21b81526001600160a01b0382166004820152602401610056565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b80516001600160a01b038116811461016057600080fd5b919050565b6000806040838503121561017857600080fd5b61018183610149565b915061018f60208401610149565b90509250929050565b610291806101a76000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610071578063715018a61461009a5780638da5cb5b146100a2578063f2fde38b146100b3575b600080fd5b61006f61006a36600461022b565b6100c6565b005b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61006f6100da565b6000546001600160a01b031661007e565b61006f6100c136600461022b565b6100ee565b6100ce61012e565b6100d78161015b565b50565b6100e261012e565b6100ec60006101db565b565b6100f661012e565b6001600160a01b03811661012557604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6100d7816101db565b6000546001600160a01b031633146100ec5760405163118cdaa760e01b815233600482015260240161011c565b806001600160a01b03163b6000036101915760405163211eb15960e21b81526001600160a01b038216600482015260240161011c565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561023d57600080fd5b81356001600160a01b038116811461025457600080fd5b939250505056fea2646970667358221220756a1cba9d9d22f3f26c7b678d9b761beca7e0adafd83d782c6d258797bb5b8064736f6c63430008170033a2646970667358221220a13c0f33664bcf32acb68782e047450814de346bdda71a5587e4f1afd17e4e4564736f6c634300081700330000000000000000000000004fed5491693007f0cd49f4614ffc38ab6a04b619
Deployed Bytecode
0x60806040523480156200001157600080fd5b5060043610620000fd5760003560e01c8063748747e61162000097578063aced1661116200006e578063aced1661146200024f578063b7eaa47a1462000263578063dd071c4b146200027a578063f2fde38b146200029357600080fd5b8063748747e6146200020f5780638da5cb5b1462000226578063a2618730146200023857600080fd5b8063456be12811620000d8578063456be12814620001be5780635a8b1a9f14620001d55780636b68389614620001ee578063715018a6146200020557600080fd5b80633ab1660e146200010257806341a1914e1462000148578063444463eb1462000198575b600080fd5b620001336200011336600462000a44565b805160208183018101805160028252928201919093012091525460ff1681565b60405190151581526020015b60405180910390f35b6200017f6200015936600462000a44565b80516020818301810180516001825292820191909301209152546001600160a01b031681565b6040516001600160a01b0390911681526020016200013f565b620001af620001a936600462000aff565b620002aa565b6040516200013f919062000b61565b6200017f620001cf36600462000bc2565b6200035f565b620001ec620001e636600462000c1e565b62000425565b005b6200017f620001ff36600462000bc2565b6200053a565b620001ec620005cd565b620001ec6200022036600462000c7b565b620005e5565b6000546001600160a01b03166200017f565b620001ec6200024936600462000bc2565b62000643565b6004546200017f906001600160a01b031681565b620001ec6200027436600462000c1e565b620006c1565b6200028462000868565b6040516200013f919062000c9b565b620001ec620002a436600462000c7b565b6200094b565b60038181548110620002bb57600080fd5b906000526020600020016000915090508054620002d89062000d03565b80601f0160208091040260200160405190810160405280929190818152602001828054620003069062000d03565b8015620003575780601f106200032b5761010080835404028352916020019162000357565b820191906000526020600020905b8154815290600101906020018083116200033957829003601f168201915b505050505081565b600080600184846040516200037692919062000d3f565b908152604051908190036020018120546001600160a01b031691506000908290620003a19062000a12565b6001600160a01b039091168152604060208201819052600090820152606001604051809103906000f080158015620003dd573d6000803e3d6000fd5b5090507f3699b7de9b98bb64c45028ff3593b0d6159da8016d0f85b6af11d765320c87bb858583604051620004159392919062000d78565b60405180910390a1949350505050565b6200042f62000993565b600283836040516200044392919062000d3f565b9081526040519081900360200190205460ff16156200047557604051631d02917d60e31b815260040160405180910390fd5b6000600184846040516200048b92919062000d3f565b90815260405190819003602001812054631b2ce7f360e11b82526001600160a01b0384811660048401521691508190633659cfe690602401600060405180830381600087803b158015620004de57600080fd5b505af1158015620004f3573d6000803e3d6000fd5b505050507f52a6e00a16a485598386bd39b6aac98ed50e4fbde10ef9b5c18374faecb550108484846040516200052c9392919062000d78565b60405180910390a150505050565b6000600183836040516200055092919062000d3f565b908152604080516020928190038301812054635c60da1b60e01b825291516001600160a01b0390921692635c60da1b926004808401938290030181865afa158015620005a0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005c6919062000da6565b9392505050565b620005d762000993565b620005e36000620009c2565b565b620005ef62000993565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527fefb5cfa1a8690c124332ab93324539c5c9c4be03f28aeb8be86f2d8a0c9fb99b9060200160405180910390a150565b6200064d62000993565b6001600283836040516200066392919062000d3f565b908152604051908190036020018120805492151560ff19909316929092179091557fdb5eb38fe380d319bb2af5e8db481d62239816dbed53336117498b997381ed0a90620006b5908490849062000dc6565b60405180910390a15050565b6000546001600160a01b03163314801590620006e857506004546001600160a01b03163314155b15620007075760405163607e454560e11b815260040160405180910390fd5b60006001600160a01b0316600184846040516200072692919062000d3f565b908152604051908190036020019020546001600160a01b0316146200075e5760405163b305d11d60e01b815260040160405180910390fd5b80306040516200076e9062000a20565b6001600160a01b03928316815291166020820152604001604051809103906000f080158015620007a2573d6000803e3d6000fd5b5060018484604051620007b792919062000d3f565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b0319909216919091179055600380546001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b016200082583858362000e39565b507fcd9ac5e9f2139bf1a75249465635a4262de654f841368ec18f5800f5feeefef18383836040516200085b9392919062000d78565b60405180910390a1505050565b60606003805480602002602001604051908101604052809291908181526020016000905b8282101562000942578382906000526020600020018054620008ae9062000d03565b80601f0160208091040260200160405190810160405280929190818152602001828054620008dc9062000d03565b80156200092d5780601f1062000901576101008083540402835291602001916200092d565b820191906000526020600020905b8154815290600101906020018083116200090f57829003601f168201915b5050505050815260200190600101906200088c565b50505050905090565b6200095562000993565b6001600160a01b0381166200098557604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6200099081620009c2565b50565b6000546001600160a01b03163314620005e35760405163118cdaa760e01b81523360048201526024016200097c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105bf8062000f0883390190565b61043880620014c783390190565b634e487b7160e01b600052604160045260246000fd5b60006020828403121562000a5757600080fd5b813567ffffffffffffffff8082111562000a7057600080fd5b818401915084601f83011262000a8557600080fd5b81358181111562000a9a5762000a9a62000a2e565b604051601f8201601f19908116603f0116810190838211818310171562000ac55762000ac562000a2e565b8160405282815287602084870101111562000adf57600080fd5b826020860160208301376000928101602001929092525095945050505050565b60006020828403121562000b1257600080fd5b5035919050565b6000815180845260005b8181101562000b415760208185018101518683018201520162000b23565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000620005c6602083018462000b19565b60008083601f84011262000b8957600080fd5b50813567ffffffffffffffff81111562000ba257600080fd5b60208301915083602082850101111562000bbb57600080fd5b9250929050565b6000806020838503121562000bd657600080fd5b823567ffffffffffffffff81111562000bee57600080fd5b62000bfc8582860162000b76565b90969095509350505050565b6001600160a01b03811681146200099057600080fd5b60008060006040848603121562000c3457600080fd5b833567ffffffffffffffff81111562000c4c57600080fd5b62000c5a8682870162000b76565b909450925050602084013562000c708162000c08565b809150509250925092565b60006020828403121562000c8e57600080fd5b8135620005c68162000c08565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101562000cf657603f1988860301845262000ce385835162000b19565b9450928501929085019060010162000cc4565b5092979650505050505050565b600181811c9082168062000d1857607f821691505b60208210810362000d3957634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60408152600062000d8e60408301858762000d4f565b905060018060a01b0383166020830152949350505050565b60006020828403121562000db957600080fd5b8151620005c68162000c08565b60208152600062000ddc60208301848662000d4f565b949350505050565b601f82111562000e34576000816000526020600020601f850160051c8101602086101562000e0f5750805b601f850160051c820191505b8181101562000e305782815560010162000e1b565b5050505b505050565b67ffffffffffffffff83111562000e545762000e5462000a2e565b62000e6c8362000e65835462000d03565b8362000de4565b6000601f84116001811462000ea3576000851562000e8a5750838201355b600019600387901b1c1916600186901b17835562000f00565b600083815260209020601f19861690835b8281101562000ed6578685013582556020948501946001909201910162000eb4565b508682101562000ef45760001960f88860031b161c19848701351681555b505060018560011b0183555b505050505056fe60a06040526040516105bf3803806105bf83398101604081905261002291610387565b61002c828261003e565b506001600160a01b031660805261047e565b610047826100fe565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a28051156100f2576100ed826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e79190610447565b82610211565b505050565b6100fa610288565b5050565b806001600160a01b03163b60000361013957604051631933b43b60e21b81526001600160a01b03821660048201526024015b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b81529051600092841691635c60da1b9160048083019260209291908290030181865afa1580156101b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d99190610447565b9050806001600160a01b03163b6000036100fa57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610130565b6060600080846001600160a01b03168460405161022e9190610462565b600060405180830381855af49150503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b50909250905061027f8583836102a9565b95945050505050565b34156102a75760405163b398979f60e01b815260040160405180910390fd5b565b6060826102be576102b982610308565b610301565b81511580156102d557506001600160a01b0384163b155b156102fe57604051639996b31560e01b81526001600160a01b0385166004820152602401610130565b50805b9392505050565b8051156103185780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80516001600160a01b038116811461034857600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561037e578181015183820152602001610366565b50506000910152565b6000806040838503121561039a57600080fd5b6103a383610331565b60208401519092506001600160401b03808211156103c057600080fd5b818501915085601f8301126103d457600080fd5b8151818111156103e6576103e661034d565b604051601f8201601f19908116603f0116810190838211818310171561040e5761040e61034d565b8160405282815288602084870101111561042757600080fd5b610438836020830160208801610363565b80955050505050509250929050565b60006020828403121561045957600080fd5b61030182610331565b60008251610474818460208701610363565b9190910192915050565b6080516101276104986000396000601e01526101276000f3fe6080604052600a600c565b005b60186014601a565b60a0565b565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156079573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190609b919060c3565b905090565b3660008037600080366000845af43d6000803e80801560be573d6000f35b3d6000fd5b60006020828403121560d457600080fd5b81516001600160a01b038116811460ea57600080fd5b939250505056fea2646970667358221220431941af5a4bbf4116e9835ddbca8a88276bb3535d6a7da06715c0a40322389864736f6c63430008170033608060405234801561001057600080fd5b5060405161043838038061043883398101604081905261002f91610165565b806001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61006881610079565b50610072826100c9565b5050610198565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b6000036100ff5760405163211eb15960e21b81526001600160a01b0382166004820152602401610056565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b80516001600160a01b038116811461016057600080fd5b919050565b6000806040838503121561017857600080fd5b61018183610149565b915061018f60208401610149565b90509250929050565b610291806101a76000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610071578063715018a61461009a5780638da5cb5b146100a2578063f2fde38b146100b3575b600080fd5b61006f61006a36600461022b565b6100c6565b005b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61006f6100da565b6000546001600160a01b031661007e565b61006f6100c136600461022b565b6100ee565b6100ce61012e565b6100d78161015b565b50565b6100e261012e565b6100ec60006101db565b565b6100f661012e565b6001600160a01b03811661012557604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6100d7816101db565b6000546001600160a01b031633146100ec5760405163118cdaa760e01b815233600482015260240161011c565b806001600160a01b03163b6000036101915760405163211eb15960e21b81526001600160a01b038216600482015260240161011c565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561023d57600080fd5b81356001600160a01b038116811461025457600080fd5b939250505056fea2646970667358221220756a1cba9d9d22f3f26c7b678d9b761beca7e0adafd83d782c6d258797bb5b8064736f6c63430008170033a2646970667358221220a13c0f33664bcf32acb68782e047450814de346bdda71a5587e4f1afd17e4e4564736f6c63430008170033
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 MON
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.