More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x41087871...336f28A0c The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
FeeDistributor
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 333 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
1234567891011121314151617181920212223242526// SPDX-License-Identifier: BUSL-1.1pragma solidity ^0.8.0;import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";import {IERC20} from "@openzeppelin/contracts/interfaces/IERC20.sol";import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";import {IFeeDistributor} from "./interfaces/IFeeDistributor.sol";import {Errors} from "contracts/libraries/Errors.sol";import {IVoter} from "./interfaces/IVoter.sol";import {IVoteModule} from "./interfaces/IVoteModule.sol";import {ILauncherPlugin} from "./interfaces/ILauncherPlugin.sol";import {IShadowV3Pool} from "./CL/core/interfaces/IShadowV3Pool.sol";contract FeeDistributor is IFeeDistributor, ReentrancyGuard {using EnumerableSet for EnumerableSet.AddressSet;/// @inheritdoc IFeeDistributorIVoter public immutable voter;/// @inheritdoc IFeeDistributorIVoteModule public immutable voteModule;/// @inheritdoc IFeeDistributoraddress public immutable feeRecipient;/// @inheritdoc IFeeDistributoruint256 public immutable firstPeriod;
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/Math.sol)pragma solidity ^0.8.20;import {Panic} from "../Panic.sol";import {SafeCast} from "./SafeCast.sol";/*** @dev Standard math utilities missing in the Solidity language.*/library Math {enum Rounding {Floor, // Toward negative infinityCeil, // Toward positive infinityTrunc, // Toward zeroExpand // Away from zero}/*** @dev Returns the addition of two unsigned integers, with an success flag (no overflow).*/function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {unchecked {uint256 c = a + b;if (c < a) return (false, 0);
123456// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)pragma solidity ^0.8.20;import {IERC20} from "../token/ERC20/IERC20.sol";
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// 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
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.1.0) (utils/structs/EnumerableSet.sol)// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.pragma solidity ^0.8.20;/*** @dev Library for managing* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive* types.** Sets have the following properties:** - Elements are added, removed, and checked for existence in constant time* (O(1)).* - Elements are enumerated in O(n). No guarantees are made on the ordering.** ```solidity* contract Example {* // Add the library methods* using EnumerableSet for EnumerableSet.AddressSet;** // Declare a set state variable* EnumerableSet.AddressSet private mySet;* }* ```
1234567891011121314151617181920212223242526// SPDX-License-Identifier: BUSL-1.1pragma solidity ^0.8.0;import {IVoter} from "../interfaces/IVoter.sol";import {IVoteModule} from "../interfaces/IVoteModule.sol";interface IFeeDistributor {event Deposit(address owner, uint256 amount);event Withdraw(address owner, uint256 amount);event NotifyReward(address indexed from, address indexed reward, uint256 amount, uint256 period);event VotesIncentivized(address indexed from, address indexed reward, uint256 amount, uint256 period);event ClaimRewards(uint256 period, address owner, address receiver, address reward, uint256 amount);event RewardsRedirected(address indexed destination, address indexed _reward, uint256 _amount);event RewardsRemoved(address _reward);/// @notice the address of the voter contractfunction voter() external view returns (IVoter);/// @notice the address of the voting modulefunction voteModule() external view returns (IVoteModule);/// @notice the address of the feeRecipient contract
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;/// @title Central Errors Library/// @notice Contains all custom errors used across the protocol/// @dev Centralized error definitions to prevent redundancylibrary Errors {/*//////////////////////////////////////////////////////////////VOTER ERRORS//////////////////////////////////////////////////////////////*//// @notice Thrown when attempting to interact with an already active gauge/// @param gauge The address of the gaugeerror ACTIVE_GAUGE(address gauge);/// @notice Thrown when attempting to interact with an inactive gauge/// @param gauge The address of the gaugeerror GAUGE_INACTIVE(address gauge);/// @notice Thrown when attempting to whitelist an already whitelisted token/// @param token The address of the tokenerror ALREADY_WHITELISTED(address token);/// @notice Thrown when caller is not authorized to perform an action/// @param caller The address of the unauthorized callererror NOT_AUTHORIZED(address caller);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: BUSL-1.1pragma solidity ^0.8.0;pragma abicoder v2;interface IVoter {event GaugeCreated(address indexed gauge, address creator, address feeDistributor, address indexed pool);event GaugeKilled(address indexed gauge);event GaugeRevived(address indexed gauge);event Voted(address indexed owner, uint256 weight, address indexed pool);event Abstained(address indexed owner, uint256 weight);event Deposit(address indexed lp, address indexed gauge, address indexed owner, uint256 amount);event Withdraw(address indexed lp, address indexed gauge, address indexed owner, uint256 amount);event NotifyReward(address indexed sender, address indexed reward, uint256 amount);event DistributeReward(address indexed sender, address indexed gauge, uint256 amount);event EmissionsRatio(address indexed caller, uint256 oldRatio, uint256 newRatio);event NewGovernor(address indexed sender, address indexed governor);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity ^0.8.0;interface IVoteModule {/*** Events*/event Deposit(address indexed from, uint256 amount);event Withdraw(address indexed from, uint256 amount);event NotifyReward(address indexed from, uint256 amount);event ClaimRewards(address indexed from, uint256 amount);event ExemptedFromCooldown(address indexed candidate, bool status);event NewDuration(uint256 oldDuration, uint256 newDuration);event NewCooldown(uint256 oldCooldown, uint256 newCooldown);event Delegate(address indexed delegator, address indexed delegatee, bool indexed isAdded);event SetAdmin(address indexed owner, address indexed operator, bool indexed isAdded);/**
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity ^0.8.0;interface ILauncherPlugin {/// @dev struct that holds the configurations of each specific poolstruct LauncherConfigs {uint256 launcherTake;address takeRecipient;}event NewOperator(address indexed _old, address indexed _new);event NewAuthority(address indexed _newAuthority);event RemovedAuthority(address indexed _previousAuthority);event EnabledPool(address indexed pool, string indexed _name);event DisabledPool(address indexed pool);event MigratedPool(address indexed oldPool, address indexed newPool);event Configured(address indexed pool, uint256 take, address indexed recipient);event Labeled(address indexed authority, string indexed label);/// @notice address of the accessHubfunction accessHub() external view returns (address _accessHub);/// @notice protocol operator addressfunction operator() external view returns (address _operator);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;import {IShadowV3PoolImmutables} from "./pool/IShadowV3PoolImmutables.sol";import {IShadowV3PoolState} from "./pool/IShadowV3PoolState.sol";import {IShadowV3PoolDerivedState} from "./pool/IShadowV3PoolDerivedState.sol";import {IShadowV3PoolActions} from "./pool/IShadowV3PoolActions.sol";import {IShadowV3PoolOwnerActions} from "./pool/IShadowV3PoolOwnerActions.sol";import {IShadowV3PoolErrors} from "./pool/IShadowV3PoolErrors.sol";import {IShadowV3PoolEvents} from "./pool/IShadowV3PoolEvents.sol";/// @title The interface for a Shadow V3 Pool/// @notice A Shadow pool facilitates swapping and automated market making between any two assets that strictly conform/// to the ERC20 specification/// @dev The pool interface is broken up into many smaller piecesinterface IShadowV3Pool isIShadowV3PoolImmutables,IShadowV3PoolState,IShadowV3PoolDerivedState,IShadowV3PoolActions,IShadowV3PoolOwnerActions,IShadowV3PoolErrors,IShadowV3PoolEvents{/// @notice if a new period, advance on interactionfunction _advancePeriod() external;
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)pragma solidity ^0.8.20;/*** @dev Helper library for emitting standardized panic codes.** ```solidity* contract Example {* using Panic for uint256;** // Use any of the declared internal constants* function foo() { Panic.GENERIC.panic(); }** // Alternatively* function foo() { Panic.panic(Panic.GENERIC); }* }* ```** Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].** _Available since v5.1._*/// slither-disable-next-line unused-statelibrary Panic {
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)// This file was procedurally generated from scripts/generate/templates/SafeCast.js.pragma solidity ^0.8.20;/*** @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow* checks.** Downcasting from uint256/int256 in Solidity does not revert on overflow. This can* easily result in undesired exploitation or bugs, since developers usually* assume that overflows raise errors. `SafeCast` restores this intuition by* reverting the transaction when such an operation overflows.** Using this library instead of the unchecked operations eliminates an entire* class of bugs, so it's recommended to use it always.*/library SafeCast {/*** @dev Value doesn't fit in an uint of `bits` size.*/error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);/*** @dev An int value doesn't fit in an uint of `bits` size.
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)pragma solidity ^0.8.20;/*** @dev Interface of the ERC-20 standard as defined in the ERC.*/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.*/
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Pool state that never changes/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same valuesinterface IShadowV3PoolImmutables {/// @notice The contract that deployed the pool, which must adhere to the IShadowV3Factory interface/// @return The contract addressfunction factory() external view returns (address);/// @notice The first of the two tokens of the pool, sorted by address/// @return The token contract addressfunction token0() external view returns (address);/// @notice The second of the two tokens of the pool, sorted by address/// @return The token contract addressfunction token1() external view returns (address);/// @notice The pool's fee in hundredths of a bip, i.e. 1e-6/// @return The feefunction fee() external view returns (uint24);/// @notice The pool tick spacing/// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive/// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, .../// This value is an int24 to avoid casting even though it is always positive.
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Pool state that can change/// @notice These methods compose the pool's state, and can change with any frequency including multiple times/// per transactioninterface IShadowV3PoolState {/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas/// when accessed externally./// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value/// @return tick The current tick of the pool, i.e. according to the last tick transition that was run./// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick/// boundary./// @return observationIndex The index of the last oracle observation that was written,/// @return observationCardinality The current maximum number of observations stored in the pool,/// @return observationCardinalityNext The next maximum number of observations, to be updated when the observation./// @return feeProtocol The protocol fee for both tokens of the pool./// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0/// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee./// unlocked Whether the pool is currently locked to reentrancyfunction slot0()externalviewreturns (uint160 sqrtPriceX96,int24 tick,
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Pool state that is not stored/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the/// blockchain. The functions here may have variable gas costs.interface IShadowV3PoolDerivedState {/// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp/// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing/// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,/// you must call it with secondsAgos = [3600, 0]./// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in/// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio./// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned/// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp/// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block/// timestampfunction observe(uint32[] calldata secondsAgos) external view returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);/// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range/// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed./// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first/// snapshot is taken and the second snapshot is taken./// @param tickLower The lower tick of the range
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Permissionless pool actions/// @notice Contains pool methods that can be called by anyoneinterface IShadowV3PoolActions {/// @notice Sets the initial price for the pool/// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value/// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96function initialize(uint160 sqrtPriceX96) external;/// @notice Adds liquidity for the given recipient/tickLower/tickUpper position/// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback/// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends/// on tickLower, tickUpper, the amount of liquidity, and the current price./// @param recipient The address for which the liquidity will be created/// @param index The index for which the liquidity will be created/// @param tickLower The lower tick of the position in which to add liquidity/// @param tickUpper The upper tick of the position in which to add liquidity/// @param amount The amount of liquidity to mint/// @param data Any data that should be passed through to the callback/// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback/// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callbackfunction mint(address recipient,uint256 index,
1234567891011121314151617181920212223// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Permissioned pool actions/// @notice Contains pool methods that may only be called by the factory ownerinterface IShadowV3PoolOwnerActions {/// @notice Set the denominator of the protocol's % share of the feesfunction setFeeProtocol() external;/// @notice Collect the protocol fee accrued to the pool/// @param recipient The address to which collected protocol fees should be sent/// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1/// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0/// @return amount0 The protocol fee collected in token0/// @return amount1 The protocol fee collected in token1function collectProtocol(address recipient,uint128 amount0Requested,uint128 amount1Requested) external returns (uint128 amount0, uint128 amount1);function setFee(uint24 _fee) external;}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Errors emitted by a pool/// @notice Contains all custom errors that can be emitted by the poolinterface IShadowV3PoolErrors {/*//////////////////////////////////////////////////////////////POOL ERRORS//////////////////////////////////////////////////////////////*//// @notice Thrown when the pool is locked during a swap or mint/burn operationerror LOK(); // Locked/// @notice Thrown when tick lower is greater than upper in position managementerror TLU(); // Tick Lower > Upper/// @notice Thrown when tick lower is less than minimum allowederror TLM(); // Tick Lower < Min/// @notice Thrown when tick upper is greater than maximum allowederror TUM(); // Tick Upper > Max/// @notice Thrown when the pool is already initializederror AI(); // Already Initialized/// @notice Thrown when the first margin value is zero
1234567891011121314151617181920212223242526// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity >=0.5.0;/// @title Events emitted by a pool/// @notice Contains all events emitted by the poolinterface IShadowV3PoolEvents {/// @notice Emitted exactly once by a pool when #initialize is first called on the pool/// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize/// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96/// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the poolevent Initialize(uint160 sqrtPriceX96, int24 tick);/// @notice Emitted when liquidity is minted for a given position/// @param sender The address that minted the liquidity/// @param owner The owner of the position and recipient of any minted liquidity/// @param tickLower The lower tick of the position/// @param tickUpper The upper tick of the position/// @param amount The amount of liquidity minted to the position range/// @param amount0 How much token0 was required for the minted liquidity/// @param amount1 How much token1 was required for the minted liquidityevent Mint(address sender,address indexed owner,int24 indexed tickLower,int24 indexed tickUpper,uint128 amount,
1234567891011121314151617181920212223242526{"remappings": ["@layerzerolabs/=node_modules/@layerzerolabs/","@layerzerolabs/lz-evm-protocol-v2/=node_modules/@layerzerolabs/lz-evm-protocol-v2/","@openzeppelin-contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.1.0/","@openzeppelin-contracts/contracts/=dependencies/@openzeppelin-contracts-5.1.0/","@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.1.0/","erc4626-tests/=dependencies/erc4626-property-tests-1.0/","forge-std/=dependencies/forge-std-1.9.4/src/","permit2/=lib/permit2/","@axelar-network/=node_modules/@axelar-network/","@chainlink/=node_modules/@chainlink/","@eth-optimism/=node_modules/@eth-optimism/","@openzeppelin-3.4.2/=node_modules/@openzeppelin-3.4.2/","@openzeppelin-contracts-5.1.0/=dependencies/@openzeppelin-contracts-5.1.0/","@openzeppelin-contracts-upgradeable-5.1.0/=dependencies/@openzeppelin-contracts-upgradeable-5.1.0/","@uniswap/=node_modules/@uniswap/","base64-sol/=node_modules/base64-sol/","erc4626-property-tests-1.0/=dependencies/erc4626-property-tests-1.0/","eth-gas-reporter/=node_modules/eth-gas-reporter/","forge-std-1.9.4/=dependencies/forge-std-1.9.4/src/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","solidity-bytes-utils/=node_modules/solidity-bytes-utils/","solmate/=node_modules/solmate/"],
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_voter","type":"address"},{"internalType":"address","name":"_feeRecipient","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"NOT_AUTHORIZED","type":"error"},{"inputs":[{"internalType":"uint256","name":"period","type":"uint256"}],"name":"NOT_FINALIZED","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"NOT_WHITELISTED","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"TOKEN_ERROR","type":"error"},{"inputs":[],"name":"ZERO_AMOUNT","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"period","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"reward","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"reward","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"period","type":"uint256"}],"name":"NotifyReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"destination","type":"address"},{"indexed":true,"internalType":"address","name":"_reward","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"RewardsRedirected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_reward","type":"address"}],"name":"RewardsRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"reward","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"period","type":"uint256"}],"name":"VotesIncentivized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"_deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"_withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"destination","type":"address"}],"name":"clawbackRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"getPeriodReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"getRewardForOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"address","name":"destination","type":"address"}],"name":"getRewardForOwnerTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardTokens","outputs":[{"internalType":"address[]","name":"_rewards","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"incentivize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"lastClaimByToken","outputs":[{"internalType":"uint256","name":"period","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"plugin","outputs":[{"internalType":"contract ILauncherPlugin","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"removeReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"address","name":"token","type":"address"}],"name":"rewardSupply","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"userClaimed","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"userVotes","outputs":[{"internalType":"uint256","name":"weight","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voteModule","outputs":[{"internalType":"contract IVoteModule","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voter","outputs":[{"internalType":"contract IVoter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"period","type":"uint256"}],"name":"votes","outputs":[{"internalType":"uint256","name":"weight","type":"uint256"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561000f575f5ffd5b506004361061018f575f3560e01c8063921b65a4116100dd578063c887d19111610088578063ef01df4f11610063578063ef01df4f146103f9578063f915f98214610420578063fe5b3e3b14610433575f5ffd5b8063c887d191146103c0578063ce37e158146103d3578063e943da8a146103e6575f5ffd5b8063b66503cf116100b8578063b66503cf14610371578063c4e3a63b14610384578063c4f59f9b146103ab575f5ffd5b8063921b65a41461031b5780639861a67a1461032e578063a4d5e67c1461035e575f5ffd5b806346c96aac1161013d578063716e5f6a11610118578063716e5f6a146102a057806385caf28b146102ca5780638bb28cb5146102f1575f5ffd5b806346c96aac1461023b5780635df813301461026257806370a0823114610281575f5ffd5b806331279d3d1161016d57806331279d3d146101d6578063463cd970146101e957806346904840146101fc575f5ffd5b80631ed2419514610193578063211dc32d146101ae578063293311ab146101c1575b5f5ffd5b61019b61045d565b6040519081526020015b60405180910390f35b61019b6101bc366004611b3e565b610470565b6101d46101cf366004611b75565b6105d9565b005b6101d46101e4366004611c4f565b610742565b6101d46101f7366004611b75565b61081c565b6102237f000000000000000000000000dba194642958257e55fb126017eba0ccd9942a9a81565b6040516001600160a01b0390911681526020016101a5565b6102237f0000000000000000000000009f59398d0a397b2eeb8a6123a6c7295cb0b0062d81565b61019b610270366004611c9c565b60026020525f908152604090205481565b61019b61028f366004611cb3565b60016020525f908152604090205481565b61019b6102ae366004611b3e565b600660209081525f928352604080842090915290825290205481565b6102237f000000000000000000000000dcb5a24ec708cc13cee12bfe6799a78a79b666b481565b61019b6102ff366004611b75565b600460209081525f928352604080842090915290825290205481565b6101d4610329366004611cce565b61094f565b61019b61033c366004611d2e565b600560209081525f938452604080852082529284528284209052825290205481565b6101d461036c366004611cb3565b6109c7565b6101d461037f366004611d62565b610a7a565b61019b7f0000000000000000000000000000000000000000000000000000000000000b4081565b6103b3610d7c565b6040516101a59190611d8c565b6101d46103ce366004611d2e565b610d88565b6101d46103e1366004611b3e565b610e56565b6101d46103f4366004611c4f565b610f94565b6102237f00000000000000000000000002d833751d5bc54675bd5686cfcfc982a8113c5381565b6101d461042e366004611d62565b610f9f565b61019b610441366004611b75565b600360209081525f928352604080842090915290825290205481565b5f61046b62093a8042611deb565b905090565b5f5f61047a61045d565b6001600160a01b038086165f908152600660209081526040808320938816835292905290812054919250906104cf907f0000000000000000000000000000000000000000000000000000000000000b40611291565b9050805b8281116105d0575f81815260026020526040902054156105c0575f81815260026020908152604080832054600383528184206001600160a01b038a16855290925282205461052990670de0b6b3a7640000611e0a565b6105339190611deb565b5f8381526004602090815260408083206001600160a01b038c168452909152902054909150670de0b6b3a76400009061056d908390611e0a565b6105779190611deb565b6105819086611e21565b5f8381526005602090815260408083206001600160a01b03808c168552908352818420908c1684529091529020549095506105bc9086611e34565b9450505b6105c981611e47565b90506104d3565b50505092915050565b336001600160a01b037f0000000000000000000000009f59398d0a397b2eeb8a6123a6c7295cb0b0062d16811461063457604051632bc10c3360e01b81526001600160a01b0390911660048201526024015b60405180910390fd5b505f61063e61045d565b610649906001611e21565b6001600160a01b0383165f90815260016020526040812080549293508592909190610675908490611e34565b90915550505f8181526003602090815260408083206001600160a01b0386168452909152902054156106fa575f8181526003602090815260408083206001600160a01b0386168452909152812080548592906106d2908490611e34565b90915550505f81815260026020526040812080548592906106f4908490611e34565b90915550505b604080516001600160a01b0384168152602081018590527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436491015b60405180910390a1505050565b61074a6112a5565b604051634b41045960e01b81523360048201526001600160a01b0383811660248301527f000000000000000000000000dcb5a24ec708cc13cee12bfe6799a78a79b666b41690634b41045990604401602060405180830381865afa1580156107b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107d89190611e5f565b339061080357604051632bc10c3360e01b81526001600160a01b03909116600482015260240161062b565b5061080f8282336112cd565b61081860015f55565b5050565b336001600160a01b037f0000000000000000000000009f59398d0a397b2eeb8a6123a6c7295cb0b0062d16811461087257604051632bc10c3360e01b81526001600160a01b03909116600482015260240161062b565b505f61087c61045d565b610887906001611e21565b6001600160a01b0383165f908152600160205260408120805492935085929091906108b3908490611e21565b90915550505f81815260026020526040812080548592906108d5908490611e21565b90915550505f8181526003602090815260408083206001600160a01b03861684529091528120805485929061090b908490611e21565b9091555050604080516001600160a01b0384168152602081018590527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9101610735565b6109576112a5565b336001600160a01b037f0000000000000000000000009f59398d0a397b2eeb8a6123a6c7295cb0b0062d1681146109ad57604051632bc10c3360e01b81526001600160a01b03909116600482015260240161062b565b506109b98383836112cd565b6109c260015f55565b505050565b336001600160a01b037f0000000000000000000000009f59398d0a397b2eeb8a6123a6c7295cb0b0062d168114610a1d57604051632bc10c3360e01b81526001600160a01b03909116600482015260240161062b565b50610a29600782611410565b15610a7757610a39600782611431565b506040516001600160a01b03821681527ffb48a5e98c18ee78db7b69705ec447f477863f5c91f44870125ed162aeecd92b9060200160405180910390a15b50565b610a826112a5565b336001600160a01b037f000000000000000000000000dba194642958257e55fb126017eba0ccd9942a9a168114610ad857604051632bc10c3360e01b81526001600160a01b03909116600482015260240161062b565b50805f03610af957604051630f6fa54560e41b815260040160405180910390fd5b5f610b0261045d565b610b0d906001611e21565b9050610b1a600784611410565b610b2b57610b29600784611445565b505b610b33611459565b15610c04576040516354fe9fd760e01b81523060048201525f9081906001600160a01b037f00000000000000000000000002d833751d5bc54675bd5686cfcfc982a8113c5316906354fe9fd7906024016040805180830381865afa158015610b9d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bc19190611e7e565b90925090505f620f4240610bd58487611e0a565b610bdf9190611deb565b90508015610c0057610bf386338484611567565b610bfd8186611e34565b94505b5050505b6040516370a0823160e01b81523060048201525f906001600160a01b038516906370a0823190602401602060405180830381865afa158015610c48573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c6c9190611ea2565b9050610c7a84333086611567565b6040516370a0823160e01b81523060048201525f906001600160a01b038616906370a0823190602401602060405180830381865afa158015610cbe573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ce29190611ea2565b9050610cee8282611e34565b5f8481526004602090815260408083206001600160a01b038a168452909152812080549296508692909190610d24908490611e21565b909155505060408051858152602081018590526001600160a01b0387169133917f52977ea98a2220a03ee9ba5cb003ada08d394ea10155483c95dc2dc77a7eb24b91015b60405180910390a350505061081860015f55565b606061046b600761169c565b610d906112a5565b604051634b41045960e01b81523360048201526001600160a01b0383811660248301527f000000000000000000000000dcb5a24ec708cc13cee12bfe6799a78a79b666b41690634b41045990604401602060405180830381865afa158015610dfa573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e1e9190611e5f565b3390610e4957604051632bc10c3360e01b81526001600160a01b03909116600482015260240161062b565b506109b9838383336116af565b7f0000000000000000000000009f59398d0a397b2eeb8a6123a6c7295cb0b0062d6001600160a01b031663e7589b396040518163ffffffff1660e01b8152600401602060405180830381865afa158015610eb2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ed69190611eb9565b33906001600160a01b03168114610f0c57604051632bc10c3360e01b81526001600160a01b03909116600482015260240161062b565b505f610f1661045d565b610f21906001611e21565b5f8181526004602090815260408083206001600160a01b03888116808652918452828520805495905591518481529495509293908616917f1da7d2b79c0952cf8fc58896c97aee9f2a5ebbf383fb95a591060cab929a576b910160405180910390a3610f8e84848361186e565b50505050565b61081882828461094f565b610fa76112a5565b805f03610fc757604051630f6fa54560e41b815260040160405180910390fd5b604051633af32abf60e01b81526001600160a01b0383811660048301527f0000000000000000000000009f59398d0a397b2eeb8a6123a6c7295cb0b0062d1690633af32abf90602401602060405180830381865afa15801561102b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061104f9190611e5f565b806110db5750604051635397401b60e01b81523360048201527f0000000000000000000000009f59398d0a397b2eeb8a6123a6c7295cb0b0062d6001600160a01b031690635397401b90602401602060405180830381865afa1580156110b7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110db9190611e5f565b829061110657604051630b7b234960e01b81526001600160a01b03909116600482015260240161062b565b505f61111061045d565b61111b906001611e21565b9050611128600784611445565b506040516370a0823160e01b81523060048201525f906001600160a01b038516906370a0823190602401602060405180830381865afa15801561116d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111919190611ea2565b905061119f84333086611567565b6040516370a0823160e01b81523060048201525f906001600160a01b038616906370a0823190602401602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112079190611ea2565b90506112138282611e34565b5f8481526004602090815260408083206001600160a01b038a168452909152812080549296508692909190611249908490611e21565b909155505060408051858152602081018590526001600160a01b0387169133917f4a1b99824c404164ed567bfb779dbdcd0367cf61723d7f537e4d1c28e63cb8829101610d68565b5f8282188284110282185b90505b92915050565b60025f54036112c757604051633ee5aeb560e01b815260040160405180910390fd5b60025f55565b5f6112d661045d565b90505f805b84518110156114085761136b60065f8784815181106112fc576112fc611ed4565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f886001600160a01b03166001600160a01b031681526020019081526020015f20547f0000000000000000000000000000000000000000000000000000000000000b40611291565b9150815b8381116113ab5761139b818888858151811061138d5761138d611ed4565b6020026020010151886116af565b6113a481611e47565b905061136f565b506113b7600184611e34565b60065f8784815181106113cc576113cc611ed4565b6020908102919091018101516001600160a01b0390811683528282019390935260409182015f908120938b1681529290529020556001016112db565b505050505050565b6001600160a01b0381165f908152600183016020526040812054151561129c565b5f61129c836001600160a01b038416611992565b5f61129c836001600160a01b038416611a75565b604051631e8d2e4d60e01b81523060048201525f907f00000000000000000000000002d833751d5bc54675bd5686cfcfc982a8113c536001600160a01b031690638668a494908290631e8d2e4d90602401602060405180830381865afa1580156114c5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114e99190611eb9565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611543573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061046b9190611e5f565b836001600160a01b0381163b61159c5760405163634e5fc360e11b81526001600160a01b03909116600482015260240161062b565b50604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17905291515f928392908816916116009190611ee8565b5f604051808303815f865af19150503d805f8114611639576040519150601f19603f3d011682016040523d82523d5f602084013e61163e565b606091505b50915091508180156116685750805115806116685750808060200190518101906116689190611e5f565b86906116935760405163634e5fc360e11b81526001600160a01b03909116600482015260240161062b565b50505050505050565b60605f6116a883611ac1565b9392505050565b6116b761045d565b84111584906116dc5760405163788e66a760e01b815260040161062b91815260200190565b505f8481526002602052604090205415610f8e575f84815260026020908152604080832054600383528184206001600160a01b038816855290925282205461172c90670de0b6b3a7640000611e0a565b6117369190611deb565b5f8681526004602090815260408083206001600160a01b038816845290915281205491925090670de0b6b3a764000090611771908490611e0a565b61177b9190611deb565b5f8781526005602090815260408083206001600160a01b03808b16855290835281842090891684529091529020549091506117b69082611e34565b5f8781526005602090815260408083206001600160a01b03808b16855290835281842090891684529091528120805492935083929091906117f8908490611e21565b909155505080156114085761180e84848361186e565b604080518781526001600160a01b03878116602083015285811682840152861660608201526080810183905290517f1713744d279f608411b42a7c80f3233d1621c0a40b393bf320e1dc85db3eb2c69181900360a00190a1505050505050565b826001600160a01b0381163b6118a35760405163634e5fc360e11b81526001600160a01b03909116600482015260240161062b565b50604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291515f928392908716916118ff9190611ee8565b5f604051808303815f865af19150503d805f8114611938576040519150601f19603f3d011682016040523d82523d5f602084013e61193d565b606091505b50915091508180156119675750805115806119675750808060200190518101906119679190611e5f565b85906114085760405163634e5fc360e11b81526001600160a01b03909116600482015260240161062b565b5f8181526001830160205260408120548015611a6c575f6119b4600183611e34565b85549091505f906119c790600190611e34565b9050808214611a26575f865f0182815481106119e5576119e5611ed4565b905f5260205f200154905080875f018481548110611a0557611a05611ed4565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080611a3757611a37611efe565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f90556001935050505061129f565b5f91505061129f565b5f818152600183016020526040812054611aba57508154600181810184555f84815260208082209093018490558454848252828601909352604090209190915561129f565b505f61129f565b6060815f01805480602002602001604051908101604052809291908181526020018280548015611b0e57602002820191905f5260205f20905b815481526020019060010190808311611afa575b50505050509050919050565b6001600160a01b0381168114610a77575f5ffd5b8035611b3981611b1a565b919050565b5f5f60408385031215611b4f575f5ffd5b8235611b5a81611b1a565b91506020830135611b6a81611b1a565b809150509250929050565b5f5f60408385031215611b86575f5ffd5b823591506020830135611b6a81611b1a565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112611bbb575f5ffd5b813567ffffffffffffffff811115611bd557611bd5611b98565b8060051b604051601f19603f830116810181811067ffffffffffffffff82111715611c0257611c02611b98565b604052918252602081850181019290810186841115611c1f575f5ffd5b6020860192505b83831015611c4557611c3783611b2e565b815260209283019201611c26565b5095945050505050565b5f5f60408385031215611c60575f5ffd5b8235611c6b81611b1a565b9150602083013567ffffffffffffffff811115611c86575f5ffd5b611c9285828601611bac565b9150509250929050565b5f60208284031215611cac575f5ffd5b5035919050565b5f60208284031215611cc3575f5ffd5b81356116a881611b1a565b5f5f5f60608486031215611ce0575f5ffd5b8335611ceb81611b1a565b9250602084013567ffffffffffffffff811115611d06575f5ffd5b611d1286828701611bac565b9250506040840135611d2381611b1a565b809150509250925092565b5f5f5f60608486031215611d40575f5ffd5b833592506020840135611d5281611b1a565b91506040840135611d2381611b1a565b5f5f60408385031215611d73575f5ffd5b8235611d7e81611b1a565b946020939093013593505050565b602080825282518282018190525f918401906040840190835b81811015611dcc5783516001600160a01b0316835260209384019390920191600101611da5565b509095945050505050565b634e487b7160e01b5f52601160045260245ffd5b5f82611e0557634e487b7160e01b5f52601260045260245ffd5b500490565b808202811582820484141761129f5761129f611dd7565b8082018082111561129f5761129f611dd7565b8181038181111561129f5761129f611dd7565b5f60018201611e5857611e58611dd7565b5060010190565b5f60208284031215611e6f575f5ffd5b815180151581146116a8575f5ffd5b5f5f60408385031215611e8f575f5ffd5b82516020840151909250611b6a81611b1a565b5f60208284031215611eb2575f5ffd5b5051919050565b5f60208284031215611ec9575f5ffd5b81516116a881611b1a565b634e487b7160e01b5f52603260045260245ffd5b5f82518060208501845e5f920191825250919050565b634e487b7160e01b5f52603160045260245ffdfea26469706673582212200d517dee1df47188acd6e52321b3e37ac591c276239d083d1b73bb3a6e03192664736f6c634300081c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
SONIC | 100.00% | $0.396375 | 156.8496 | $62.17 |
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.