Source Code
Overview
HYPE Balance
HYPE Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
IncentivesHelper
Compiler Version
v0.8.30+commit.73712a01
Contract Source Code (Solidity)
/**
*Submitted for verification at hyperevmscan.io on 2025-11-27
*/
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant NOT_ENTERED = 1;
uint256 private constant ENTERED = 2;
uint256 private _status;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}
// File: @openzeppelin/contracts/utils/Context.sol
// 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;
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
/**
* @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);
}
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
// File: @openzeppelin/contracts/utils/Address.sol
// 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();
}
}
}
// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}
// File: contracts/IncentivesHelper.sol
pragma solidity ^0.8.0;
interface IGenericIncentives {
function incentivize(address token, uint256 amount) external;
function notifyRewardAmount(address token, uint256 amount) external;
function notifyRewardAmountForPeriod(address token, uint256 amount, uint256 period) external;
}
/// @dev contract for batching multiple FeeDistributor and Gauge operations
/// @dev made for https://www.ramses.xyz/incentives
/// @dev default enabled in Advanced/Developer mode
contract IncentivesHelper is ReentrancyGuard, Ownable {
using SafeERC20 for IERC20;
constructor(address _owner) Ownable(_owner) {}
/// @dev submits vote bribes
function incentivizeVoting(
IGenericIncentives[] calldata distributors,
address[] calldata tokens,
uint256[] calldata amounts
) external nonReentrant {
require(distributors.length == tokens.length && distributors.length == amounts.length, "Invalid input lengths");
uint256 i;
for (; i < distributors.length; ++i) {
IERC20 token = IERC20(tokens[i]);
uint256 tokenAmount = amounts[i];
address distributor = address(distributors[i]);
token.safeTransferFrom(msg.sender, address(this), tokenAmount);
token.forceApprove(distributor, tokenAmount);
distributors[i].incentivize(address(token), tokenAmount);
/// @dev wipe the approval
token.forceApprove(distributor, 0);
}
}
/// @dev submits liquidity rewards for legacy
function notifyLiquidityRewardsLegacy(
IGenericIncentives[] calldata distributors,
address[] calldata tokens,
uint256[] calldata amounts
) external nonReentrant {
require(distributors.length == tokens.length && distributors.length == amounts.length, "Invalid input lengths");
uint256 i;
for (; i < distributors.length; ++i) {
IERC20 token = IERC20(tokens[i]);
uint256 tokenAmount = amounts[i];
address distributor = address(distributors[i]);
token.safeTransferFrom(msg.sender, address(this), tokenAmount);
token.forceApprove(distributor, tokenAmount);
distributors[i].notifyRewardAmount(address(token), tokenAmount);
/// @dev wipe the approval
token.forceApprove(distributor, 0);
}
}
/// @dev submits liquidity rewards for CL
function notifyLiquidityRewardsCL(
IGenericIncentives[] calldata distributors,
address[] calldata tokens,
uint256[] calldata amounts,
uint256[] calldata periods
) external nonReentrant {
require(
distributors.length == tokens.length && distributors.length == amounts.length
&& distributors.length == periods.length,
"Invalid input lengths"
);
uint256 i;
uint256 currentPeriod = getPeriod();
for (; i < distributors.length; ++i) {
IERC20 token = IERC20(tokens[i]);
uint256 tokenAmount = amounts[i];
uint256 period = periods[i];
address distributor = address(distributors[i]);
token.safeTransferFrom(msg.sender, address(this), tokenAmount);
token.forceApprove(distributor, tokenAmount);
/// @dev check that the period is valid (cannot LP bribe past epochs through these functions)
require(period >= currentPeriod, "Invalid period");
/// @dev check for the current period first
if (period == currentPeriod) {
distributors[i].notifyRewardAmount(address(token), tokenAmount);
}
/// @dev if the period is for a future one, use the forPeriod variant
else {
distributors[i].notifyRewardAmountForPeriod(address(token), tokenAmount, period);
}
/// @dev wipe the approval
token.forceApprove(distributor, 0);
}
}
/// @notice general read function for grabbing the current period (epoch)
function getPeriod() public view returns (uint256) {
return (block.timestamp / 1 weeks);
}
/// @dev recover stuck tokens that are mistakenly sent here
function sweep(address token, uint256 amount) external onlyOwner {
IERC20(token).safeTransfer(owner(), amount);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","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":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"getPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IGenericIncentives[]","name":"distributors","type":"address[]"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"incentivizeVoting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IGenericIncentives[]","name":"distributors","type":"address[]"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"periods","type":"uint256[]"}],"name":"notifyLiquidityRewardsCL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IGenericIncentives[]","name":"distributors","type":"address[]"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"notifyLiquidityRewardsLegacy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561000f575f5ffd5b5060405161135d38038061135d83398101604081905261002e916100c1565b60015f55806001600160a01b03811661006057604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b61006981610070565b50506100ee565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f602082840312156100d1575f5ffd5b81516001600160a01b03811681146100e7575f5ffd5b9392505050565b611262806100fb5f395ff3fe608060405234801561000f575f5ffd5b5060043610610085575f3560e01c80636ea056a9116100585780636ea056a9146100df578063715018a6146100f25780638da5cb5b146100fa578063f2fde38b14610122575f5ffd5b806314078a70146100895780631ed241951461009e57806345b8a210146100b9578063654c4c15146100cc575b5f5ffd5b61009c610097366004610fbf565b610135565b005b6100a66104c0565b6040519081526020015b60405180910390f35b61009c6100c736600461108d565b6104d3565b61009c6100da36600461108d565b6106fa565b61009c6100ed36600461114d565b61090f565b61009c61095b565b60015460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100b0565b61009c610130366004611177565b61096e565b61013d6109d1565b868514801561014b57508683145b801561015657508681145b6101c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e76616c696420696e707574206c656e67746873000000000000000000000060448201526064015b60405180910390fd5b5f5f6101cb6104c0565b90505b888210156104ab575f8888848181106101e9576101e9611192565b90506020020160208101906101fe9190611177565b90505f87878581811061021357610213611192565b9050602002013590505f86868681811061022f5761022f611192565b9050602002013590505f8d8d8781811061024b5761024b611192565b90506020020160208101906102609190611177565b905061028473ffffffffffffffffffffffffffffffffffffffff8516333086610a12565b6102a573ffffffffffffffffffffffffffffffffffffffff85168285610aa1565b8482101561030f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420706572696f6400000000000000000000000000000000000060448201526064016101b8565b8482036103c7578d8d8781811061032857610328611192565b905060200201602081019061033d9190611177565b6040517fb66503cf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201869052919091169063b66503cf906044015f604051808303815f87803b1580156103ac575f5ffd5b505af11580156103be573d5f5f3e3d5ffd5b5050505061047b565b8d8d878181106103d9576103d9611192565b90506020020160208101906103ee9190611177565b6040517f1b9e88b100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201869052604482018590529190911690631b9e88b1906064015f604051808303815f87803b158015610464575f5ffd5b505af1158015610476573d5f5f3e3d5ffd5b505050505b61049c73ffffffffffffffffffffffffffffffffffffffff8516825f610aa1565b505050508160010191506101ce565b50506104b660015f55565b5050505050505050565b5f6104ce62093a80426111bf565b905090565b6104db6109d1565b84831480156104e957508481145b61054f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e76616c696420696e707574206c656e67746873000000000000000000000060448201526064016101b8565b5f5b858110156106e8575f85858381811061056c5761056c611192565b90506020020160208101906105819190611177565b90505f84848481811061059657610596611192565b9050602002013590505f8989858181106105b2576105b2611192565b90506020020160208101906105c79190611177565b90506105eb73ffffffffffffffffffffffffffffffffffffffff8416333085610a12565b61060c73ffffffffffffffffffffffffffffffffffffffff84168284610aa1565b89898581811061061e5761061e611192565b90506020020160208101906106339190611177565b6040517ff915f98200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260248201859052919091169063f915f982906044015f604051808303815f87803b1580156106a2575f5ffd5b505af11580156106b4573d5f5f3e3d5ffd5b506106da9250505073ffffffffffffffffffffffffffffffffffffffff8416825f610aa1565b505050806001019050610551565b506106f260015f55565b505050505050565b6107026109d1565b848314801561071057508481145b610776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e76616c696420696e707574206c656e67746873000000000000000000000060448201526064016101b8565b5f5b858110156106e8575f85858381811061079357610793611192565b90506020020160208101906107a89190611177565b90505f8484848181106107bd576107bd611192565b9050602002013590505f8989858181106107d9576107d9611192565b90506020020160208101906107ee9190611177565b905061081273ffffffffffffffffffffffffffffffffffffffff8416333085610a12565b61083373ffffffffffffffffffffffffffffffffffffffff84168284610aa1565b89898581811061084557610845611192565b905060200201602081019061085a9190611177565b6040517fb66503cf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260248201859052919091169063b66503cf906044015f604051808303815f87803b1580156108c9575f5ffd5b505af11580156108db573d5f5f3e3d5ffd5b506109019250505073ffffffffffffffffffffffffffffffffffffffff8416825f610aa1565b505050806001019050610778565b610917610b78565b61095761093960015473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff84169083610bcb565b5050565b610963610b78565b61096c5f610c0e565b565b610976610b78565b73ffffffffffffffffffffffffffffffffffffffff81166109c5576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f60048201526024016101b8565b6109ce81610c0e565b50565b60025f5403610a0c576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025f55565b60405173ffffffffffffffffffffffffffffffffffffffff8481166024830152838116604483015260648201839052610a9b9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610c84565b50505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b300000000000000000000000000000000000000000000000000000000179052610b2d8482610d18565b610a9b5760405173ffffffffffffffffffffffffffffffffffffffff84811660248301525f6044830152610b6e91869182169063095ea7b390606401610a54565b610a9b8482610c84565b60015473ffffffffffffffffffffffffffffffffffffffff16331461096c576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016101b8565b60405173ffffffffffffffffffffffffffffffffffffffff838116602483015260448201839052610c0991859182169063a9059cbb90606401610a54565b505050565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f610ca573ffffffffffffffffffffffffffffffffffffffff841683610dd3565b905080515f14158015610cc9575080806020019051810190610cc791906111f7565b155b15610c09576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024016101b8565b5f5f5f8473ffffffffffffffffffffffffffffffffffffffff1684604051610d409190611216565b5f604051808303815f865af19150503d805f8114610d79576040519150601f19603f3d011682016040523d82523d5f602084013e610d7e565b606091505b5091509150818015610da8575080511580610da8575080806020019051810190610da891906111f7565b8015610dca57505f8573ffffffffffffffffffffffffffffffffffffffff163b115b95945050505050565b6060610de083835f610de7565b9392505050565b606081471015610e25576040517fcd7860590000000000000000000000000000000000000000000000000000000081523060048201526024016101b8565b5f5f8573ffffffffffffffffffffffffffffffffffffffff168486604051610e4d9190611216565b5f6040518083038185875af1925050503d805f8114610e87576040519150601f19603f3d011682016040523d82523d5f602084013e610e8c565b606091505b5091509150610e9c868383610ea6565b9695505050505050565b606082610ebb57610eb682610f35565b610de0565b8151158015610edf575073ffffffffffffffffffffffffffffffffffffffff84163b155b15610f2e576040517f9996b31500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff851660048201526024016101b8565b5080610de0565b805115610f455780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5f83601f840112610f87575f5ffd5b50813567ffffffffffffffff811115610f9e575f5ffd5b6020830191508360208260051b8501011115610fb8575f5ffd5b9250929050565b5f5f5f5f5f5f5f5f6080898b031215610fd6575f5ffd5b883567ffffffffffffffff811115610fec575f5ffd5b610ff88b828c01610f77565b909950975050602089013567ffffffffffffffff811115611017575f5ffd5b6110238b828c01610f77565b909750955050604089013567ffffffffffffffff811115611042575f5ffd5b61104e8b828c01610f77565b909550935050606089013567ffffffffffffffff81111561106d575f5ffd5b6110798b828c01610f77565b999c989b5096995094979396929594505050565b5f5f5f5f5f5f606087890312156110a2575f5ffd5b863567ffffffffffffffff8111156110b8575f5ffd5b6110c489828a01610f77565b909750955050602087013567ffffffffffffffff8111156110e3575f5ffd5b6110ef89828a01610f77565b909550935050604087013567ffffffffffffffff81111561110e575f5ffd5b61111a89828a01610f77565b979a9699509497509295939492505050565b73ffffffffffffffffffffffffffffffffffffffff811681146109ce575f5ffd5b5f5f6040838503121561115e575f5ffd5b82356111698161112c565b946020939093013593505050565b5f60208284031215611187575f5ffd5b8135610de08161112c565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f826111f2577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b5f60208284031215611207575f5ffd5b81518015158114610de0575f5ffd5b5f82518060208501845e5f92019182525091905056fea26469706673582212201e0e81b24ea186158b536dc107221850d683005d892137af71155fe913877ac564736f6c634300081e003300000000000000000000000020d630cf1f5628285bfb91dfac8c89eb9087be1a
Deployed Bytecode
0x608060405234801561000f575f5ffd5b5060043610610085575f3560e01c80636ea056a9116100585780636ea056a9146100df578063715018a6146100f25780638da5cb5b146100fa578063f2fde38b14610122575f5ffd5b806314078a70146100895780631ed241951461009e57806345b8a210146100b9578063654c4c15146100cc575b5f5ffd5b61009c610097366004610fbf565b610135565b005b6100a66104c0565b6040519081526020015b60405180910390f35b61009c6100c736600461108d565b6104d3565b61009c6100da36600461108d565b6106fa565b61009c6100ed36600461114d565b61090f565b61009c61095b565b60015460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100b0565b61009c610130366004611177565b61096e565b61013d6109d1565b868514801561014b57508683145b801561015657508681145b6101c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e76616c696420696e707574206c656e67746873000000000000000000000060448201526064015b60405180910390fd5b5f5f6101cb6104c0565b90505b888210156104ab575f8888848181106101e9576101e9611192565b90506020020160208101906101fe9190611177565b90505f87878581811061021357610213611192565b9050602002013590505f86868681811061022f5761022f611192565b9050602002013590505f8d8d8781811061024b5761024b611192565b90506020020160208101906102609190611177565b905061028473ffffffffffffffffffffffffffffffffffffffff8516333086610a12565b6102a573ffffffffffffffffffffffffffffffffffffffff85168285610aa1565b8482101561030f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420706572696f6400000000000000000000000000000000000060448201526064016101b8565b8482036103c7578d8d8781811061032857610328611192565b905060200201602081019061033d9190611177565b6040517fb66503cf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201869052919091169063b66503cf906044015f604051808303815f87803b1580156103ac575f5ffd5b505af11580156103be573d5f5f3e3d5ffd5b5050505061047b565b8d8d878181106103d9576103d9611192565b90506020020160208101906103ee9190611177565b6040517f1b9e88b100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201869052604482018590529190911690631b9e88b1906064015f604051808303815f87803b158015610464575f5ffd5b505af1158015610476573d5f5f3e3d5ffd5b505050505b61049c73ffffffffffffffffffffffffffffffffffffffff8516825f610aa1565b505050508160010191506101ce565b50506104b660015f55565b5050505050505050565b5f6104ce62093a80426111bf565b905090565b6104db6109d1565b84831480156104e957508481145b61054f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e76616c696420696e707574206c656e67746873000000000000000000000060448201526064016101b8565b5f5b858110156106e8575f85858381811061056c5761056c611192565b90506020020160208101906105819190611177565b90505f84848481811061059657610596611192565b9050602002013590505f8989858181106105b2576105b2611192565b90506020020160208101906105c79190611177565b90506105eb73ffffffffffffffffffffffffffffffffffffffff8416333085610a12565b61060c73ffffffffffffffffffffffffffffffffffffffff84168284610aa1565b89898581811061061e5761061e611192565b90506020020160208101906106339190611177565b6040517ff915f98200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260248201859052919091169063f915f982906044015f604051808303815f87803b1580156106a2575f5ffd5b505af11580156106b4573d5f5f3e3d5ffd5b506106da9250505073ffffffffffffffffffffffffffffffffffffffff8416825f610aa1565b505050806001019050610551565b506106f260015f55565b505050505050565b6107026109d1565b848314801561071057508481145b610776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e76616c696420696e707574206c656e67746873000000000000000000000060448201526064016101b8565b5f5b858110156106e8575f85858381811061079357610793611192565b90506020020160208101906107a89190611177565b90505f8484848181106107bd576107bd611192565b9050602002013590505f8989858181106107d9576107d9611192565b90506020020160208101906107ee9190611177565b905061081273ffffffffffffffffffffffffffffffffffffffff8416333085610a12565b61083373ffffffffffffffffffffffffffffffffffffffff84168284610aa1565b89898581811061084557610845611192565b905060200201602081019061085a9190611177565b6040517fb66503cf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260248201859052919091169063b66503cf906044015f604051808303815f87803b1580156108c9575f5ffd5b505af11580156108db573d5f5f3e3d5ffd5b506109019250505073ffffffffffffffffffffffffffffffffffffffff8416825f610aa1565b505050806001019050610778565b610917610b78565b61095761093960015473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff84169083610bcb565b5050565b610963610b78565b61096c5f610c0e565b565b610976610b78565b73ffffffffffffffffffffffffffffffffffffffff81166109c5576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f60048201526024016101b8565b6109ce81610c0e565b50565b60025f5403610a0c576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025f55565b60405173ffffffffffffffffffffffffffffffffffffffff8481166024830152838116604483015260648201839052610a9b9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610c84565b50505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b300000000000000000000000000000000000000000000000000000000179052610b2d8482610d18565b610a9b5760405173ffffffffffffffffffffffffffffffffffffffff84811660248301525f6044830152610b6e91869182169063095ea7b390606401610a54565b610a9b8482610c84565b60015473ffffffffffffffffffffffffffffffffffffffff16331461096c576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016101b8565b60405173ffffffffffffffffffffffffffffffffffffffff838116602483015260448201839052610c0991859182169063a9059cbb90606401610a54565b505050565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f610ca573ffffffffffffffffffffffffffffffffffffffff841683610dd3565b905080515f14158015610cc9575080806020019051810190610cc791906111f7565b155b15610c09576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024016101b8565b5f5f5f8473ffffffffffffffffffffffffffffffffffffffff1684604051610d409190611216565b5f604051808303815f865af19150503d805f8114610d79576040519150601f19603f3d011682016040523d82523d5f602084013e610d7e565b606091505b5091509150818015610da8575080511580610da8575080806020019051810190610da891906111f7565b8015610dca57505f8573ffffffffffffffffffffffffffffffffffffffff163b115b95945050505050565b6060610de083835f610de7565b9392505050565b606081471015610e25576040517fcd7860590000000000000000000000000000000000000000000000000000000081523060048201526024016101b8565b5f5f8573ffffffffffffffffffffffffffffffffffffffff168486604051610e4d9190611216565b5f6040518083038185875af1925050503d805f8114610e87576040519150601f19603f3d011682016040523d82523d5f602084013e610e8c565b606091505b5091509150610e9c868383610ea6565b9695505050505050565b606082610ebb57610eb682610f35565b610de0565b8151158015610edf575073ffffffffffffffffffffffffffffffffffffffff84163b155b15610f2e576040517f9996b31500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff851660048201526024016101b8565b5080610de0565b805115610f455780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5f83601f840112610f87575f5ffd5b50813567ffffffffffffffff811115610f9e575f5ffd5b6020830191508360208260051b8501011115610fb8575f5ffd5b9250929050565b5f5f5f5f5f5f5f5f6080898b031215610fd6575f5ffd5b883567ffffffffffffffff811115610fec575f5ffd5b610ff88b828c01610f77565b909950975050602089013567ffffffffffffffff811115611017575f5ffd5b6110238b828c01610f77565b909750955050604089013567ffffffffffffffff811115611042575f5ffd5b61104e8b828c01610f77565b909550935050606089013567ffffffffffffffff81111561106d575f5ffd5b6110798b828c01610f77565b999c989b5096995094979396929594505050565b5f5f5f5f5f5f606087890312156110a2575f5ffd5b863567ffffffffffffffff8111156110b8575f5ffd5b6110c489828a01610f77565b909750955050602087013567ffffffffffffffff8111156110e3575f5ffd5b6110ef89828a01610f77565b909550935050604087013567ffffffffffffffff81111561110e575f5ffd5b61111a89828a01610f77565b979a9699509497509295939492505050565b73ffffffffffffffffffffffffffffffffffffffff811681146109ce575f5ffd5b5f5f6040838503121561115e575f5ffd5b82356111698161112c565b946020939093013593505050565b5f60208284031215611187575f5ffd5b8135610de08161112c565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f826111f2577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b5f60208284031215611207575f5ffd5b81518015158114610de0575f5ffd5b5f82518060208501845e5f92019182525091905056fea26469706673582212201e0e81b24ea186158b536dc107221850d683005d892137af71155fe913877ac564736f6c634300081e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000020d630cf1f5628285bfb91dfac8c89eb9087be1a
-----Decoded View---------------
Arg [0] : _owner (address): 0x20D630cF1f5628285BfB91DfaC8C89eB9087BE1A
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000020d630cf1f5628285bfb91dfac8c89eb9087be1a
Deployed Bytecode Sourcemap
27291:3979:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29291:1585;;;;;;:::i;:::-;;:::i;:::-;;30963:104;;;:::i;:::-;;;2094:25:1;;;2082:2;2067:18;30963:104:0;;;;;;;;27475:842;;;;;;:::i;:::-;;:::i;28376:860::-;;;;;;:::i;:::-;;:::i;31140:127::-;;;;;;:::i;:::-;;:::i;9753:103::-;;;:::i;9078:87::-;9151:6;;9078:87;;9151:6;;;;3945:74:1;;3933:2;3918:18;9078:87:0;3799:226:1;10011:220:0;;;;;;:::i;:::-;;:::i;29291:1585::-;5477:21;:19;:21::i;:::-;29550:36;;::::1;:77:::0;::::1;;;-1:-1:-1::0;29590:37:0;;::::1;29550:77;:135;;;;-1:-1:-1::0;29648:37:0;;::::1;29550:135;29528:206;;;::::0;::::1;::::0;;4484:2:1;29528:206:0::1;::::0;::::1;4466:21:1::0;4523:2;4503:18;;;4496:30;4562:23;4542:18;;;4535:51;4603:18;;29528:206:0::1;;;;;;;;;29745:9;29765:21;29789:11;:9;:11::i;:::-;29765:35;;29811:1058;29818:23:::0;;::::1;29811:1058;;;29863:12;29885:6;;29892:1;29885:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;29863:32;;29910:19;29932:7;;29940:1;29932:10;;;;;;;:::i;:::-;;;;;;;29910:32;;29957:14;29974:7;;29982:1;29974:10;;;;;;;:::i;:::-;;;;;;;29957:27;;29999:19;30029:12;;30042:1;30029:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;29999:46:::0;-1:-1:-1;30060:62:0::1;:22;::::0;::::1;30083:10;30103:4;30110:11:::0;30060:22:::1;:62::i;:::-;30137:44;:18;::::0;::::1;30156:11:::0;30169;30137:18:::1;:44::i;:::-;30321:13;30311:6;:23;;30303:50;;;::::0;::::1;::::0;;5301:2:1;30303:50:0::1;::::0;::::1;5283:21:1::0;5340:2;5320:18;;;5313:30;5379:16;5359:18;;;5352:44;5413:18;;30303:50:0::1;5099:338:1::0;30303:50:0::1;30439:13;30429:6;:23:::0;30425:344:::1;;30473:12;;30486:1;30473:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;:63;::::0;;;;:34:::1;5634:55:1::0;;;30473:63:0::1;::::0;::::1;5616:74:1::0;5706:18;;;5699:34;;;30473::0;;;::::1;::::0;::::1;::::0;5589:18:1;;30473:63:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30425:344;;;30673:12;;30686:1;30673:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;:80;::::0;;;;:43:::1;5964:55:1::0;;;30673:80:0::1;::::0;::::1;5946:74:1::0;6036:18;;;6029:34;;;6079:18;;;6072:34;;;30673:43:0;;;::::1;::::0;::::1;::::0;5919:18:1;;30673:80:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30425:344;30823:34;:18;::::0;::::1;30842:11:::0;30855:1:::1;30823:18;:34::i;:::-;29848:1021;;;;29843:3;;;;;29811:1058;;;29517:1359;;5521:20:::0;4812:1;6063:7;:21;5880:212;5521:20;29291:1585;;;;;;;;:::o;30963:104::-;31005:7;31033:25;31051:7;31033:15;:25;:::i;:::-;31025:34;;30963:104;:::o;27475:842::-;5477:21;:19;:21::i;:::-;27676:36;;::::1;:77:::0;::::1;;;-1:-1:-1::0;27716:37:0;;::::1;27676:77;27668:111;;;::::0;::::1;::::0;;4484:2:1;27668:111:0::1;::::0;::::1;4466:21:1::0;4523:2;4503:18;;;4496:30;4562:23;4542:18;;;4535:51;4603:18;;27668:111:0::1;4282:345:1::0;27668:111:0::1;27790:9;27810:500;27817:23:::0;;::::1;27810:500;;;27862:12;27884:6;;27891:1;27884:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;27862:32;;27909:19;27931:7;;27939:1;27931:10;;;;;;;:::i;:::-;;;;;;;27909:32;;27956:19;27986:12;;27999:1;27986:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;27956:46:::0;-1:-1:-1;28017:62:0::1;:22;::::0;::::1;28040:10;28060:4;28067:11:::0;28017:22:::1;:62::i;:::-;28094:44;:18;::::0;::::1;28113:11:::0;28126;28094:18:::1;:44::i;:::-;28153:12;;28166:1;28153:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;:56;::::0;;;;:27:::1;5634:55:1::0;;;28153:56:0::1;::::0;::::1;5616:74:1::0;5706:18;;;5699:34;;;28153:27:0;;;::::1;::::0;::::1;::::0;5589:18:1;;28153:56:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;28264:34:0::1;::::0;-1:-1:-1;;;28264:18:0::1;::::0;::::1;28283:11:::0;28296:1:::1;28264:18;:34::i;:::-;27847:463;;;27842:3;;;;;27810:500;;;27657:660;5521:20:::0;4812:1;6063:7;:21;5880:212;5521:20;27475:842;;;;;;:::o;28376:860::-;5477:21;:19;:21::i;:::-;28588:36;;::::1;:77:::0;::::1;;;-1:-1:-1::0;28628:37:0;;::::1;28588:77;28580:111;;;::::0;::::1;::::0;;4484:2:1;28580:111:0::1;::::0;::::1;4466:21:1::0;4523:2;4503:18;;;4496:30;4562:23;4542:18;;;4535:51;4603:18;;28580:111:0::1;4282:345:1::0;28580:111:0::1;28702:9;28722:507;28729:23:::0;;::::1;28722:507;;;28774:12;28796:6;;28803:1;28796:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;28774:32;;28821:19;28843:7;;28851:1;28843:10;;;;;;;:::i;:::-;;;;;;;28821:32;;28868:19;28898:12;;28911:1;28898:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;28868:46:::0;-1:-1:-1;28929:62:0::1;:22;::::0;::::1;28952:10;28972:4;28979:11:::0;28929:22:::1;:62::i;:::-;29006:44;:18;::::0;::::1;29025:11:::0;29038;29006:18:::1;:44::i;:::-;29065:12;;29078:1;29065:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;:63;::::0;;;;:34:::1;5634:55:1::0;;;29065:63:0::1;::::0;::::1;5616:74:1::0;5706:18;;;5699:34;;;29065::0;;;::::1;::::0;::::1;::::0;5589:18:1;;29065:63:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;29183:34:0::1;::::0;-1:-1:-1;;;29183:18:0::1;::::0;::::1;29202:11:::0;29215:1:::1;29183:18;:34::i;:::-;28759:470;;;28754:3;;;;;28722:507;;31140:127:::0;8964:13;:11;:13::i;:::-;31216:43:::1;31243:7;9151:6:::0;;;;;9078:87;31243:7:::1;31216:26;::::0;::::1;::::0;31252:6;31216:26:::1;:43::i;:::-;31140:127:::0;;:::o;9753:103::-;8964:13;:11;:13::i;:::-;9818:30:::1;9845:1;9818:18;:30::i;:::-;9753:103::o:0;10011:220::-;8964:13;:11;:13::i;:::-;10096:22:::1;::::0;::::1;10092:93;;10142:31;::::0;::::1;::::0;;10170:1:::1;10142:31;::::0;::::1;3945:74:1::0;3918:18;;10142:31:0::1;3799:226:1::0;10092:93:0::1;10195:28;10214:8;10195:18;:28::i;:::-;10011:220:::0;:::o;5557:315::-;4855:1;5686:7;;:18;5682:88;;5728:30;;;;;;;;;;;;;;5682:88;4855:1;5847:7;:17;5557:315::o;22607:190::-;22735:53;;22750:18;6616:55:1;;;22735:53:0;;;6598:74:1;6708:55;;;6688:18;;;6681:83;6780:18;;;6773:34;;;22708:81:0;;22728:5;;22750:18;;;;;6571::1;;22735:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22708:19;:81::i;:::-;22607:190;;;;:::o;24233:387::-;24349:47;;;24364:13;5634:55:1;;24349:47:0;;;5616:74:1;5706:18;;;;5699:34;;;24349:47:0;;;;;;;;;;5589:18:1;;;;24349:47:0;;;;;;;;;;;;;;24414:44;24364:13;24349:47;24414:23;:44::i;:::-;24409:204;;24502:43;;24517:13;5634:55:1;;;24502:43:0;;;5616:74:1;24542:1:0;5706:18:1;;;5699:34;24475:71:0;;24495:5;;24517:13;;;;;5589:18:1;;24502:43:0;5442:297:1;24475:71:0;24561:40;24581:5;24588:12;24561:19;:40::i;9243:166::-;9151:6;;9303:23;9151:6;7167:10;9303:23;9299:103;;9350:40;;;;;7167:10;9350:40;;;3945:74:1;3918:18;;9350:40:0;3799:226:1;22200:162:0;22310:43;;22325:14;5634:55:1;;;22310:43:0;;;5616:74:1;5706:18;;;5699:34;;;22283:71:0;;22303:5;;22325:14;;;;;5589:18:1;;22310:43:0;5442:297:1;22283:71:0;22200:162;;;:::o;10391:191::-;10484:6;;;;10501:17;;;;;;;;;;;10534:40;;10484:6;;;10501:17;10484:6;;10534:40;;10465:16;;10534:40;10454:128;10391:191;:::o;25011:638::-;25435:23;25461:33;:27;;;25489:4;25461:27;:33::i;:::-;25435:59;;25509:10;:17;25530:1;25509:22;;:57;;;;;25547:10;25536:30;;;;;;;;;;;;:::i;:::-;25535:31;25509:57;25505:137;;;25590:40;;;;;3975:42:1;3963:55;;25590:40:0;;;3945:74:1;3918:18;;25590:40:0;3799:226:1;26160:585:0;26243:4;26550:12;26564:23;26599:5;26591:19;;26611:4;26591:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26549:67;;;;26634:7;:69;;;;-1:-1:-1;26646:17:0;;:22;;:56;;;26683:10;26672:30;;;;;;;;;;;;:::i;:::-;26634:103;;;;;26736:1;26715:5;26707:26;;;:30;26634:103;26627:110;26160:585;-1:-1:-1;;;;;26160:585:0:o;17326:153::-;17401:12;17433:38;17455:6;17463:4;17469:1;17433:21;:38::i;:::-;17426:45;17326:153;-1:-1:-1;;;17326:153:0:o;17814:398::-;17913:12;17966:5;17942:21;:29;17938:110;;;17995:41;;;;;18030:4;17995:41;;;3945:74:1;3918:18;;17995:41:0;3799:226:1;17938:110:0;18059:12;18073:23;18100:6;:11;;18119:5;18126:4;18100:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18058:73;;;;18149:55;18176:6;18184:7;18193:10;18149:26;:55::i;:::-;18142:62;17814:398;-1:-1:-1;;;;;;17814:398:0:o;19290:597::-;19438:12;19468:7;19463:417;;19492:19;19500:10;19492:7;:19::i;:::-;19463:417;;;19720:17;;:22;:49;;;;-1:-1:-1;19746:18:0;;;;:23;19720:49;19716:121;;;19797:24;;;;;3975:42:1;3963:55;;19797:24:0;;;3945:74:1;3918:18;;19797:24:0;3799:226:1;19716:121:0;-1:-1:-1;19858:10:0;19851:17;;20440:528;20573:17;;:21;20569:392;;20805:10;20799:17;20862:15;20849:10;20845:2;20841:19;20834:44;20569:392;20932:17;;;;;;;;;;;;;;14:387:1;97:8;107:6;161:3;154:4;146:6;142:17;138:27;128:55;;179:1;176;169:12;128:55;-1:-1:-1;202:20:1;;245:18;234:30;;231:50;;;277:1;274;267:12;231:50;314:4;306:6;302:17;290:29;;374:3;367:4;357:6;354:1;350:14;342:6;338:27;334:38;331:47;328:67;;;391:1;388;381:12;328:67;14:387;;;;;:::o;406:1537::-;626:6;634;642;650;658;666;674;682;735:3;723:9;714:7;710:23;706:33;703:53;;;752:1;749;742:12;703:53;792:9;779:23;825:18;817:6;814:30;811:50;;;857:1;854;847:12;811:50;896:90;978:7;969:6;958:9;954:22;896:90;:::i;:::-;1005:8;;-1:-1:-1;870:116:1;-1:-1:-1;;1093:2:1;1078:18;;1065:32;1122:18;1109:32;;1106:52;;;1154:1;1151;1144:12;1106:52;1193:92;1277:7;1266:8;1255:9;1251:24;1193:92;:::i;:::-;1304:8;;-1:-1:-1;1167:118:1;-1:-1:-1;;1392:2:1;1377:18;;1364:32;1421:18;1408:32;;1405:52;;;1453:1;1450;1443:12;1405:52;1492:92;1576:7;1565:8;1554:9;1550:24;1492:92;:::i;:::-;1603:8;;-1:-1:-1;1466:118:1;-1:-1:-1;;1691:2:1;1676:18;;1663:32;1720:18;1707:32;;1704:52;;;1752:1;1749;1742:12;1704:52;1791:92;1875:7;1864:8;1853:9;1849:24;1791:92;:::i;:::-;406:1537;;;;-1:-1:-1;406:1537:1;;-1:-1:-1;406:1537:1;;;;;;1902:8;-1:-1:-1;;;406:1537:1:o;2130:1185::-;2314:6;2322;2330;2338;2346;2354;2407:2;2395:9;2386:7;2382:23;2378:32;2375:52;;;2423:1;2420;2413:12;2375:52;2463:9;2450:23;2496:18;2488:6;2485:30;2482:50;;;2528:1;2525;2518:12;2482:50;2567:90;2649:7;2640:6;2629:9;2625:22;2567:90;:::i;:::-;2676:8;;-1:-1:-1;2541:116:1;-1:-1:-1;;2764:2:1;2749:18;;2736:32;2793:18;2780:32;;2777:52;;;2825:1;2822;2815:12;2777:52;2864:92;2948:7;2937:8;2926:9;2922:24;2864:92;:::i;:::-;2975:8;;-1:-1:-1;2838:118:1;-1:-1:-1;;3063:2:1;3048:18;;3035:32;3092:18;3079:32;;3076:52;;;3124:1;3121;3114:12;3076:52;3163:92;3247:7;3236:8;3225:9;3221:24;3163:92;:::i;:::-;2130:1185;;;;-1:-1:-1;2130:1185:1;;-1:-1:-1;2130:1185:1;;3274:8;;2130:1185;-1:-1:-1;;;2130:1185:1:o;3320:154::-;3406:42;3399:5;3395:54;3388:5;3385:65;3375:93;;3464:1;3461;3454:12;3479:315;3547:6;3555;3608:2;3596:9;3587:7;3583:23;3579:32;3576:52;;;3624:1;3621;3614:12;3576:52;3663:9;3650:23;3682:31;3707:5;3682:31;:::i;:::-;3732:5;3784:2;3769:18;;;;3756:32;;-1:-1:-1;;;3479:315:1:o;4030:247::-;4089:6;4142:2;4130:9;4121:7;4117:23;4113:32;4110:52;;;4158:1;4155;4148:12;4110:52;4197:9;4184:23;4216:31;4241:5;4216:31;:::i;4632:184::-;4684:77;4681:1;4674:88;4781:4;4778:1;4771:15;4805:4;4802:1;4795:15;6117:274;6157:1;6183;6173:189;;6218:77;6215:1;6208:88;6319:4;6316:1;6309:15;6347:4;6344:1;6337:15;6173:189;-1:-1:-1;6376:9:1;;6117:274::o;7128:277::-;7195:6;7248:2;7236:9;7227:7;7223:23;7219:32;7216:52;;;7264:1;7261;7254:12;7216:52;7296:9;7290:16;7349:5;7342:13;7335:21;7328:5;7325:32;7315:60;;7371:1;7368;7361:12;7410:301;7539:3;7577:6;7571:13;7623:6;7616:4;7608:6;7604:17;7599:3;7593:37;7685:1;7649:16;;7674:13;;;-1:-1:-1;7649:16:1;7410:301;-1:-1:-1;7410:301:1:o
Swarm Source
ipfs://1e0e81b24ea186158b536dc107221850d683005d892137af71155fe913877ac5
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in HYPE
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.