Overview
S Balance
0 S
S Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 193 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Notify | 4945650 | 12 mins ago | IN | 0 S | 0.05826458 | ||||
Notify | 4944012 | 27 mins ago | IN | 0 S | 0.04433456 | ||||
Notify | 4942303 | 42 mins ago | IN | 0 S | 0.05407424 | ||||
Notify | 4940686 | 57 mins ago | IN | 0 S | 0.06032202 | ||||
Notify | 4939178 | 1 hr ago | IN | 0 S | 0.0705958 | ||||
Notify | 4937492 | 1 hr ago | IN | 0 S | 0.05892755 | ||||
Notify | 4935895 | 1 hr ago | IN | 0 S | 0.0502112 | ||||
Notify | 4934235 | 1 hr ago | IN | 0 S | 0.06107475 | ||||
Notify | 4932627 | 2 hrs ago | IN | 0 S | 0.05726231 | ||||
Notify | 4930994 | 2 hrs ago | IN | 0 S | 0.06123903 | ||||
Notify | 4929235 | 2 hrs ago | IN | 0 S | 0.05447491 | ||||
Notify | 4927683 | 2 hrs ago | IN | 0 S | 0.05083639 | ||||
Notify | 4926163 | 3 hrs ago | IN | 0 S | 0.06045204 | ||||
Notify | 4924593 | 3 hrs ago | IN | 0 S | 0.0507375 | ||||
Notify | 4923191 | 3 hrs ago | IN | 0 S | 0.0510037 | ||||
Notify | 4921560 | 3 hrs ago | IN | 0 S | 0.05166942 | ||||
Notify | 4920227 | 4 hrs ago | IN | 0 S | 0.04811356 | ||||
Notify | 4918886 | 4 hrs ago | IN | 0 S | 0.04153853 | ||||
Notify | 4917366 | 4 hrs ago | IN | 0 S | 0.04130307 | ||||
Notify | 4916021 | 4 hrs ago | IN | 0 S | 0.04769864 | ||||
Notify | 4914503 | 5 hrs ago | IN | 0 S | 0.07953242 | ||||
Notify | 4912881 | 5 hrs ago | IN | 0 S | 0.04761729 | ||||
Notify | 4911342 | 5 hrs ago | IN | 0 S | 0.05655177 | ||||
Notify | 4910019 | 5 hrs ago | IN | 0 S | 0.06011885 | ||||
Notify | 4908535 | 6 hrs ago | IN | 0 S | 0.05084904 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
AutomatedFeeNotifier
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 1633 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.x; import {IVoter} from "../interfaces/IVoter.sol"; import {IFeeCollector} from "../CL/gauge/interfaces/IFeeCollector.sol"; import {IRamsesV3Pool} from "../CL/core/interfaces/IRamsesV3Pool.sol"; interface IModifiedVoter is IVoter { function isClGauge(address) external view returns (bool); } interface IMockGauge { function pool() external view returns (address); } /// @title Automated Fee Notifier /// @notice Automates protocol fee collection for Ramses CL pools /// @dev Works in conjunction with FeeCollector contract to batch process fees contract AutomatedFeeNotifier { IModifiedVoter private immutable VOTER; IFeeCollector private immutable COLLECTOR; /// @notice Initializes the contract with Voter and FeeCollector addresses /// @param _voter Address of the Voter contract /// @param _collector Address of the FeeCollector contract constructor(address _voter, address _collector) { VOTER = IModifiedVoter(_voter); COLLECTOR = IFeeCollector(_collector); } /// @notice Processes protocol fees for specified pools /// @param _pools Array of pool addresses to collect fees from function notify(IRamsesV3Pool[] calldata _pools) external { for (uint256 i; i < _pools.length; ++i) { COLLECTOR.collectProtocolFees(_pools[i]); } } /// @notice Processes fees for a range of eligible pools /// @param _index Starting index in the eligible pairs array /// @param _end Ending index (exclusive) in the eligible pairs array /// @dev Will adjust _end if it exceeds array bounds function blindPush(uint256 _index, uint256 _end) external { address[] memory targets = eligiblePairs(); _end = _end > targets.length ? targets.length : _end; require(_index <= targets.length, "Index out of bounds"); for (; _index < _end; ++_index) { COLLECTOR.collectProtocolFees(IRamsesV3Pool(targets[_index])); } } /// @notice Returns pending protocol fees for a specific pool /// @param _pool Address of the pool to check /// @return _poolID Address of the pool checked /// @return _tokens Array of token addresses [token0, token1] /// @return _amounts Array of pending fee amounts [amount0, amount1] function pendingFees(address _pool) external view returns (address _poolID, address[] memory _tokens, uint128[] memory _amounts) { _tokens = new address[](2); _amounts = new uint128[](2); _tokens[0] = IRamsesV3Pool(_pool).token0(); _tokens[1] = IRamsesV3Pool(_pool).token1(); (_amounts[0], _amounts[1]) = IRamsesV3Pool(_pool).protocolFees(); return (_pool, _tokens, _amounts); } /// @notice Returns array of all eligible CL pool addresses /// @dev Filters all gauges to return only CL pool addresses /// @return _pairs Array of eligible pool addresses function eligiblePairs() public view returns (address[] memory _pairs) { address[] memory allGauges = VOTER.getAllGauges(); address[] memory tempPairs = new address[](allGauges.length); uint256 count; for (uint256 i; i < allGauges.length; ++i) { if (VOTER.isClGauge(allGauges[i])) { tempPairs[count++] = IMockGauge(allGauges[i]).pool(); } } _pairs = new address[](count); for (uint256 i; i < count; ++i) { _pairs[i] = tempPairs[i]; } } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.26; pragma abicoder v2; interface IVoter { error ACTIVE_GAUGE(address gauge); error GAUGE_INACTIVE(address gauge); error ALREADY_WHITELISTED(address token); error NOT_AUTHORIZED(address caller); error NOT_WHITELISTED(); error NOT_POOL(); error NOT_INIT(); error LENGTH_MISMATCH(); error NO_GAUGE(); error ALREADY_DISTRIBUTED(address gauge, uint256 period); error ZERO_VOTE(address pool); error RATIO_TOO_HIGH(uint256 _xRatio); error VOTE_UNSUCCESSFUL(); 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); event Whitelisted(address indexed whitelister, address indexed token); event WhitelistRevoked( address indexed forbidder, address indexed token, bool status ); event MainTickSpacingChanged( address indexed token0, address indexed token1, int24 indexed newMainTickSpacing ); event Poke(address indexed user); function initialize( address _shadow, address _legacyFactory, address _gauges, address _feeDistributorFactory, address _minter, address _msig, address _xShadow, address _clFactory, address _clGaugeFactory, address _nfpManager, address _feeRecipientFactory, address _voteModule, address _launcherPlugin ) external; /// @notice denominator basis function BASIS() external view returns (uint256); /// @notice ratio of xShadow emissions globally function xRatio() external view returns (uint256); /// @notice xShadow contract address function xShadow() external view returns (address); /// @notice legacy factory address (uni-v2/stableswap) function legacyFactory() external view returns (address); /// @notice concentrated liquidity factory function clFactory() external view returns (address); /// @notice gauge factory for CL function clGaugeFactory() external view returns (address); /// @notice legacy fee recipient factory function feeRecipientFactory() external view returns (address); /// @notice peripheral NFPManager contract function nfpManager() external view returns (address); /// @notice returns the address of the current governor /// @return _governor address of the governor function governor() external view returns (address _governor); /// @notice the address of the vote module /// @return _voteModule the vote module contract address function voteModule() external view returns (address _voteModule); /// @notice address of the central access Hub function accessHub() external view returns (address); /// @notice the address of the shadow launcher plugin to enable third party launchers /// @return _launcherPlugin the address of the plugin function launcherPlugin() external view returns (address _launcherPlugin); /// @notice distributes emissions from the minter to the voter /// @param amount the amount of tokens to notify function notifyRewardAmount(uint256 amount) external; /// @notice distributes the emissions for a specific gauge /// @param _gauge the gauge address function distribute(address _gauge) external; /// @notice returns the address of the gauge factory /// @param _gaugeFactory gauge factory address function gaugeFactory() external view returns (address _gaugeFactory); /// @notice returns the address of the feeDistributor factory /// @return _feeDistributorFactory feeDist factory address function feeDistributorFactory() external view returns (address _feeDistributorFactory); /// @notice returns the address of the minter contract /// @return _minter address of the minter function minter() external view returns (address _minter); /// @notice check if the gauge is active for governance use /// @param _gauge address of the gauge /// @return _trueOrFalse if the gauge is alive function isAlive(address _gauge) external view returns (bool _trueOrFalse); /// @notice allows the token to be paired with other whitelisted assets to participate in governance /// @param _token the address of the token function whitelist(address _token) external; /// @notice effectively disqualifies a token from governance /// @param _token the address of the token function revokeWhitelist(address _token) external; /// @notice returns if the address is a gauge /// @param gauge address of the gauge /// @return _trueOrFalse boolean if the address is a gauge function isGauge(address gauge) external view returns (bool _trueOrFalse); /// @notice disable a gauge from governance /// @param _gauge address of the gauge function killGauge(address _gauge) external; /// @notice re-activate a dead gauge /// @param _gauge address of the gauge function reviveGauge(address _gauge) external; /// @notice re-cast a tokenID's votes /// @param owner address of the owner function poke(address owner) external; /// @notice sets the main tickspacing of a token pairing /// @param tokenA address of tokenA /// @param tokenB address of tokenB /// @param tickSpacing the main tickspacing to set to function setMainTickSpacing( address tokenA, address tokenB, int24 tickSpacing ) external; /// @notice returns if the address is a fee distributor /// @param _feeDistributor address of the feeDist /// @return _trueOrFalse if the address is a fee distributor function isFeeDistributor( address _feeDistributor ) external view returns (bool _trueOrFalse); /// @notice returns the address of the emission's token /// @return _shadow emissions token contract address function shadow() external view returns (address _shadow); /// @notice returns the address of the pool's gauge, if any /// @param _pool pool address /// @return _gauge gauge address function gaugeForPool(address _pool) external view returns (address _gauge); /// @notice returns the address of the pool's feeDistributor, if any /// @param _gauge address of the gauge /// @return _feeDistributor address of the pool's feedist function feeDistributorForGauge( address _gauge ) external view returns (address _feeDistributor); /// @notice returns the new toPool that was redirected fromPool /// @param fromPool address of the original pool /// @return toPool the address of the redirected pool function poolRedirect( address fromPool ) external view returns (address toPool); /// @notice returns the gauge address of a CL pool /// @param tokenA address of token A in the pair /// @param tokenB address of token B in the pair /// @param tickSpacing tickspacing of the pool /// @return gauge address of the gauge function gaugeForClPool( address tokenA, address tokenB, int24 tickSpacing ) external view returns (address gauge); /// @notice returns the array of all tickspacings for the tokenA/tokenB combination /// @param tokenA address of token A in the pair /// @param tokenB address of token B in the pair /// @return _ts array of all the tickspacings function tickSpacingsForPair( address tokenA, address tokenB ) external view returns (int24[] memory _ts); /// @notice returns the main tickspacing used in the gauge/governance process /// @param tokenA address of token A in the pair /// @param tokenB address of token B in the pair /// @return _ts the main tickspacing function mainTickSpacingForPair( address tokenA, address tokenB ) external view returns (int24 _ts); /// @notice returns the block.timestamp divided by 1 week in seconds /// @return period the period used for gauges function getPeriod() external view returns (uint256 period); /// @notice cast a vote to direct emissions to gauges and earn incentives /// @param owner address of the owner /// @param _pools the list of pools to vote on /// @param _weights an arbitrary weight per pool which will be normalized to 100% regardless of numerical inputs function vote( address owner, address[] calldata _pools, uint256[] calldata _weights ) external; /// @notice reset the vote of an address /// @param owner address of the owner function reset(address owner) external; /// @notice set the governor address /// @param _governor the new governor address function setGovernor(address _governor) external; /// @notice recover stuck emissions /// @param _gauge the gauge address /// @param _period the period function stuckEmissionsRecovery(address _gauge, uint256 _period) external; /// @notice whitelists extra rewards for a gauge /// @param _gauge the gauge to whitelist rewards to /// @param _reward the reward to whitelist function whitelistGaugeRewards(address _gauge, address _reward) external; /// @notice removes a reward from the gauge whitelist /// @param _gauge the gauge to remove the whitelist from /// @param _reward the reward to remove from the whitelist function removeGaugeRewardWhitelist( address _gauge, address _reward ) external; /// @notice creates a legacy gauge for the pool /// @param _pool pool's address /// @return _gauge address of the new gauge function createGauge(address _pool) external returns (address _gauge); /// @notice create a concentrated liquidity gauge /// @param tokenA the address of tokenA /// @param tokenB the address of tokenB /// @param tickSpacing the tickspacing of the pool /// @return _clGauge address of the new gauge function createCLGauge( address tokenA, address tokenB, int24 tickSpacing ) external returns (address _clGauge); /// @notice claim concentrated liquidity gauge rewards for specific NFP token ids /// @param _gauges array of gauges /// @param _tokens two dimensional array for the tokens to claim /// @param _nfpTokenIds two dimensional array for the NFPs function claimClGaugeRewards( address[] calldata _gauges, address[][] calldata _tokens, uint256[][] calldata _nfpTokenIds ) external; /// @notice claim arbitrary rewards from specific feeDists /// @param owner address of the owner /// @param _feeDistributors address of the feeDists /// @param _tokens two dimensional array for the tokens to claim function claimIncentives( address owner, address[] calldata _feeDistributors, address[][] calldata _tokens ) external; /// @notice claim arbitrary rewards from specific gauges /// @param _gauges address of the gauges /// @param _tokens two dimensional array for the tokens to claim function claimRewards( address[] calldata _gauges, address[][] calldata _tokens ) external; /// @notice claim arbitrary rewards from specific legacy gauges, and exit to shadow /// @param _gauges address of the gauges /// @param _tokens two dimensional array for the tokens to claim function claimLegacyRewardsAndExit( address[] calldata _gauges, address[][] calldata _tokens ) external; /// @notice distribute emissions to a gauge for a specific period /// @param _gauge address of the gauge /// @param _period value of the period function distributeForPeriod(address _gauge, uint256 _period) external; /// @notice attempt distribution of emissions to all gauges function distributeAll() external; /// @notice distribute emissions to gauges by index /// @param startIndex start of the loop /// @param endIndex end of the loop function batchDistributeByIndex( uint256 startIndex, uint256 endIndex ) external; /// @notice returns the votes cast for a tokenID /// @param owner address of the owner /// @return votes an array of votes casted /// @return weights an array of the weights casted per pool function getVotes( address owner, uint256 period ) external view returns (address[] memory votes, uint256[] memory weights); /// @notice returns an array of all the gauges /// @return _gauges the array of gauges function getAllGauges() external view returns (address[] memory _gauges); /// @notice returns an array of all the feeDists /// @return _feeDistributors the array of feeDists function getAllFeeDistributors() external view returns (address[] memory _feeDistributors); /// @notice sets the xShadowRatio default function setGlobalRatio(uint256 _xRatio) external; /// @notice whether the token is whitelisted in governance function isWhitelisted(address _token) external view returns (bool _tf); /// @notice function for removing malicious or stuffed tokens function removeFeeDistributorReward( address _feeDist, address _token ) external; }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity ^0.8.26; import {IRamsesV3Pool} from "../../core/interfaces/IRamsesV3Pool.sol"; interface IFeeCollector { error NOT_AUTHORIZED(); error FTL(); /// @notice Emitted when the treasury address is changed. /// @param oldTreasury The previous treasury address. /// @param newTreasury The new treasury address. event TreasuryChanged(address oldTreasury, address newTreasury); /// @notice Emitted when the treasury fees value is changed. /// @param oldTreasuryFees The previous value of the treasury fees. /// @param newTreasuryFees The new value of the treasury fees. event TreasuryFeesChanged(uint256 oldTreasuryFees, uint256 newTreasuryFees); /// @notice Emitted when protocol fees are collected from a pool and distributed to the fee distributor and treasury. /// @param pool The address of the pool from which the fees were collected. /// @param feeDistAmount0 The amount of fee tokens (token 0) distributed to the fee distributor. /// @param feeDistAmount1 The amount of fee tokens (token 1) distributed to the fee distributor. /// @param treasuryAmount0 The amount of fee tokens (token 0) allocated to the treasury. /// @param treasuryAmount1 The amount of fee tokens (token 1) allocated to the treasury. event FeesCollected( address pool, uint256 feeDistAmount0, uint256 feeDistAmount1, uint256 treasuryAmount0, uint256 treasuryAmount1 ); /// @notice Returns the treasury address. function treasury() external returns (address); /// @notice Sets the treasury address to a new value. /// @param newTreasury The new address to set as the treasury. function setTreasury(address newTreasury) external; /// @notice Sets the value of treasury fees to a new amount. /// @param _treasuryFees The new amount of treasury fees to be set. function setTreasuryFees(uint256 _treasuryFees) external; /// @notice Collects protocol fees from a specified pool and distributes them to the fee distributor and treasury. /// @param pool The pool from which to collect the protocol fees. function collectProtocolFees(IRamsesV3Pool pool) external; }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; import {IRamsesV3PoolImmutables} from './pool/IRamsesV3PoolImmutables.sol'; import {IRamsesV3PoolState} from './pool/IRamsesV3PoolState.sol'; import {IRamsesV3PoolDerivedState} from './pool/IRamsesV3PoolDerivedState.sol'; import {IRamsesV3PoolActions} from './pool/IRamsesV3PoolActions.sol'; import {IRamsesV3PoolOwnerActions} from './pool/IRamsesV3PoolOwnerActions.sol'; import {IRamsesV3PoolErrors} from './pool/IRamsesV3PoolErrors.sol'; import {IRamsesV3PoolEvents} from './pool/IRamsesV3PoolEvents.sol'; /// @title The interface for a Ramses V3 Pool /// @notice A Ramses 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 pieces interface IRamsesV3Pool is IRamsesV3PoolImmutables, IRamsesV3PoolState, IRamsesV3PoolDerivedState, IRamsesV3PoolActions, IRamsesV3PoolOwnerActions, IRamsesV3PoolErrors, IRamsesV3PoolEvents { /// @notice if a new period, advance on interaction function _advancePeriod() external; }
// SPDX-License-Identifier: GPL-2.0-or-later pragma 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 values interface IRamsesV3PoolImmutables { /// @notice The contract that deployed the pool, which must adhere to the IRamsesV3Factory interface /// @return The contract address function factory() external view returns (address); /// @notice The first of the two tokens of the pool, sorted by address /// @return The token contract address function token0() external view returns (address); /// @notice The second of the two tokens of the pool, sorted by address /// @return The token contract address function token1() external view returns (address); /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6 /// @return The fee function 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. /// @return The tick spacing function tickSpacing() external view returns (int24); /// @notice The maximum amount of position liquidity that can use any tick in the range /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool /// @return The max amount of liquidity per tick function maxLiquidityPerTick() external view returns (uint128); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma 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 transaction interface IRamsesV3PoolState { /// @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 reentrancy function slot0() external view returns ( uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked ); /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal0X128() external view returns (uint256); /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal1X128() external view returns (uint256); /// @notice The amounts of token0 and token1 that are owed to the protocol /// @dev Protocol fees will never exceed uint128 max in either token function protocolFees() external view returns (uint128 token0, uint128 token1); /// @notice The currently in range liquidity available to the pool /// @dev This value has no relationship to the total liquidity across all ticks /// @return The liquidity at the current price of the pool function liquidity() external view returns (uint128); /// @notice Look up information about a specific tick in the pool /// @param tick The tick to look up /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or /// tick upper /// @return liquidityNet how much liquidity changes when the pool price crosses the tick, /// @return feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0, /// @return feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1, /// @return tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick /// @return secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick, /// @return secondsOutside the seconds spent on the other side of the tick from the current tick, /// @return initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false. /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0. /// In addition, these values are only relative and must be used only in comparison to previous snapshots for /// a specific position. function ticks( int24 tick ) external view returns ( uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized ); /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information function tickBitmap(int16 wordPosition) external view returns (uint256); /// @notice Returns the information about a position by the position's key /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper /// @return liquidity The amount of liquidity in the position, /// @return feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke, /// @return feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke, /// @return tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke, /// @return tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke function positions( bytes32 key ) external view returns ( uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1 ); /// @notice Returns data about a specific observation index /// @param index The element of the observations array to fetch /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time /// ago, rather than at a specific index in the array. /// @return blockTimestamp The timestamp of the observation, /// @return tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp, /// @return secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp, /// @return initialized whether the observation has been initialized and the values are safe to use function observations( uint256 index ) external view returns ( uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized ); /// @notice get the period seconds in range of a specific position /// @param period the period number /// @param owner owner address /// @param index position index /// @param tickLower lower bound of range /// @param tickUpper upper bound of range /// @return periodSecondsInsideX96 seconds the position was not in range for the period function positionPeriodSecondsInRange( uint256 period, address owner, uint256 index, int24 tickLower, int24 tickUpper ) external view returns (uint256 periodSecondsInsideX96); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma 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 IRamsesV3PoolDerivedState { /// @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 /// timestamp function 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 /// @param tickUpper The upper tick of the range /// @return tickCumulativeInside The snapshot of the tick accumulator for the range /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range /// @return secondsInside The snapshot of seconds per liquidity for the range function snapshotCumulativesInside( int24 tickLower, int24 tickUpper ) external view returns (int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Permissionless pool actions /// @notice Contains pool methods that can be called by anyone interface IRamsesV3PoolActions { /// @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.96 function 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 callback function mint( address recipient, uint256 index, int24 tickLower, int24 tickUpper, uint128 amount, bytes calldata data ) external returns (uint256 amount0, uint256 amount1); /// @notice Collects tokens owed to a position /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity. /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity. /// @param recipient The address which should receive the fees collected /// @param index The index of the position to be collected /// @param tickLower The lower tick of the position for which to collect fees /// @param tickUpper The upper tick of the position for which to collect fees /// @param amount0Requested How much token0 should be withdrawn from the fees owed /// @param amount1Requested How much token1 should be withdrawn from the fees owed /// @return amount0 The amount of fees collected in token0 /// @return amount1 The amount of fees collected in token1 function collect( address recipient, uint256 index, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0 /// @dev Fees must be collected separately via a call to #collect /// @param index The index for which the liquidity will be burned /// @param tickLower The lower tick of the position for which to burn liquidity /// @param tickUpper The upper tick of the position for which to burn liquidity /// @param amount How much liquidity to burn /// @return amount0 The amount of token0 sent to the recipient /// @return amount1 The amount of token1 sent to the recipient function burn( uint256 index, int24 tickLower, int24 tickUpper, uint128 amount ) external returns (uint256 amount0, uint256 amount1); /// @notice Swap token0 for token1, or token1 for token0 /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback /// @param recipient The address to receive the output of the swap /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0 /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative) /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this /// value after the swap. If one for zero, the price cannot be greater than this value after the swap /// @param data Any data to be passed through to the callback /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive function swap( address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes calldata data ) external returns (int256 amount0, int256 amount1); /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling /// with 0 amount{0,1} and sending the donation amount(s) from the callback /// @param recipient The address which will receive the token0 and token1 amounts /// @param amount0 The amount of token0 to send /// @param amount1 The amount of token1 to send /// @param data Any data to be passed through to the callback function flash( address recipient, uint256 amount0, uint256 amount1, bytes calldata data ) external; /// @notice Increase the maximum number of price and liquidity observations that this pool will store /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to /// the input observationCardinalityNext. /// @param observationCardinalityNext The desired minimum number of observations for the pool to store function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external; }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Permissioned pool actions /// @notice Contains pool methods that may only be called by the factory owner interface IRamsesV3PoolOwnerActions { /// @notice Set the denominator of the protocol's % share of the fees function 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 token1 function collectProtocol( address recipient, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); function setFee(uint24 _fee) external; }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Errors emitted by a pool /// @notice Contains all events emitted by the pool interface IRamsesV3PoolErrors { error LOK(); error TLU(); error TLM(); error TUM(); error AI(); error M0(); error M1(); error AS(); error IIA(); error L(); error F0(); error F1(); error SPL(); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Events emitted by a pool /// @notice Contains all events emitted by the pool interface IRamsesV3PoolEvents { /// @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 pool event 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 liquidity event Mint( address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted when fees are collected by the owner of a position /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees /// @param owner The owner of the position for which fees are collected /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount0 The amount of token0 fees collected /// @param amount1 The amount of token1 fees collected event Collect( address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1 ); /// @notice Emitted when a position's liquidity is removed /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect /// @param owner The owner of the position for which liquidity is removed /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount The amount of liquidity to remove /// @param amount0 The amount of token0 withdrawn /// @param amount1 The amount of token1 withdrawn event Burn( address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted by the pool for any swaps between token0 and token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the output of the swap /// @param amount0 The delta of the token0 balance of the pool /// @param amount1 The delta of the token1 balance of the pool /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96 /// @param liquidity The liquidity of the pool after the swap /// @param tick The log base 1.0001 of price of the pool after the swap event Swap( address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick ); /// @notice Emitted by the pool for any flashes of token0/token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the tokens from flash /// @param amount0 The amount of token0 that was flashed /// @param amount1 The amount of token1 that was flashed /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee event Flash( address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1 ); /// @notice Emitted by the pool for increases to the number of observations that can be stored /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index /// just before a mint/swap/burn. /// @param observationCardinalityNextOld The previous value of the next observation cardinality /// @param observationCardinalityNextNew The updated value of the next observation cardinality event IncreaseObservationCardinalityNext( uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew ); /// @notice Emitted when the protocol fee is changed by the pool /// @param feeProtocol0Old The previous value of the token0 protocol fee /// @param feeProtocol1Old The previous value of the token1 protocol fee /// @param feeProtocol0New The updated value of the token0 protocol fee /// @param feeProtocol1New The updated value of the token1 protocol fee event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New); /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner /// @param sender The address that collects the protocol fees /// @param recipient The address that receives the collected protocol fees /// @param amount0 The amount of token0 protocol fees that is withdrawn /// @param amount0 The amount of token1 protocol fees that is withdrawn event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1); }
{ "remappings": [ "@openzeppelin-contracts-5.1.0/=dependencies/@openzeppelin-contracts-5.1.0/", "@openzeppelin-contracts-upgradeable-5.1.0/=dependencies/@openzeppelin-contracts-upgradeable-5.1.0/", "@forge-std-1.9.4/=dependencies/forge-std-1.9.4/", "@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/", "@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/", "ds-test/=node_modules/ds-test/", "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/=node_modules/hardhat/", "solidity-bytes-utils/=node_modules/solidity-bytes-utils/", "solmate/=node_modules/solmate/" ], "optimizer": { "enabled": true, "runs": 1633 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "cancun", "viaIR": true, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_voter","type":"address"},{"internalType":"address","name":"_collector","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"blindPush","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eligiblePairs","outputs":[{"internalType":"address[]","name":"_pairs","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IRamsesV3Pool[]","name":"_pools","type":"address[]"}],"name":"notify","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"}],"name":"pendingFees","outputs":[{"internalType":"address","name":"_poolID","type":"address"},{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint128[]","name":"_amounts","type":"uint128[]"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c03461008b57601f610a4338819003918201601f19168301916001600160401b0383118484101761008f57808492604094855283398101031261008b57610052602061004b836100a3565b92016100a3565b6001600160a01b039182166080521660a05260405161098b90816100b8823960805181610693015260a051818181609901526101840152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b51906001600160a01b038216820361008b5756fe60806040526004361015610011575f80fd5b5f3560e01c806325d2a3f3146102a45780635abbd66714610271578063b14a55b4146101435763ff89d06314610045575f80fd5b3461013d57602036600319011261013d5760043567ffffffffffffffff811161013d573660238201121561013d5780600401359067ffffffffffffffff821161013d573660248360051b8301011161013d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691905f5b828110156101415760248160051b83010135906001600160a01b03821680920361013d57843b1561013d5760405191632a54db0160e01b835260048301525f8260248183895af191821561013257600192610122575b50016100c5565b5f61012c91610593565b5f61011b565b6040513d5f823e3d90fd5b5f80fd5b005b3461013d57604036600319011261013d5760043580602435610163610689565b805190918181111561026b575080935b1161020d5782906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016925b8281106101af57005b6001600160a01b036101c18284610658565b511690843b1561013d5760405191632a54db0160e01b835260048301525f8260248183895af1918215610132576001926101fd575b50016101a6565b5f61020791610593565b856101f6565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496e646578206f7574206f6620626f756e6473000000000000000000000000006044820152fd5b93610173565b3461013d575f36600319011261013d576102a061028c610689565b604051918291602083526020830190610557565b0390f35b3461013d57602036600319011261013d576004356001600160a01b03811680910361013d5760606040516102d88282610593565b60028152601f1982019182366020840137604051916102f78284610593565b6002835260208301933685376040517f0dfe1681000000000000000000000000000000000000000000000000000000008152602081600481895afa908115610132575f9161051d575b506001600160a01b0361035283610627565b911690526040517fd21220a7000000000000000000000000000000000000000000000000000000008152602081600481895afa908115610132575f916104e3575b506001600160a01b036103a583610648565b911690526040517f1ad8b03b000000000000000000000000000000000000000000000000000000008152604081600481895afa8015610132575f915f91610491575b5091610445916020936fffffffffffffffffffffffffffffffff61040e88979a9998610648565b911690526fffffffffffffffffffffffffffffffff61042c86610627565b9116905260405196879687528084880152860190610557565b91848303604086015251918281520191905f5b818110610466575050500390f35b82516fffffffffffffffffffffffffffffffff16845285945060209384019390920191600101610458565b929150506040823d6040116104db575b816104ae60409383610593565b8101031261013d57602092826104d1856104ca6104459661066c565b920161066c565b91945091926103e7565b3d91506104a1565b90506020813d602011610515575b816104fe60209383610593565b8101031261013d5761050f90610613565b86610393565b3d91506104f1565b90506020813d60201161054f575b8161053860209383610593565b8101031261013d5761054990610613565b86610340565b3d915061052b565b90602080835192838152019201905f5b8181106105745750505090565b82516001600160a01b0316845260209384019390920191600101610567565b90601f8019910116810190811067ffffffffffffffff8211176105b557604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff81116105b55760051b60200190565b906105eb826105c9565b6105f86040519182610593565b8281528092610609601f19916105c9565b0190602036910137565b51906001600160a01b038216820361013d57565b8051156106345760200190565b634e487b7160e01b5f52603260045260245ffd5b8051600110156106345760400190565b80518210156106345760209160051b010190565b51906fffffffffffffffffffffffffffffffff8216820361013d57565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906040517fc946c5cc0000000000000000000000000000000000000000000000000000000081525f81600481865afa908115610132575f916108bc575b506106fb81516105e1565b905f935f5b8251811015610878576001600160a01b0361071b8285610658565b5116604051907f060ce5a50000000000000000000000000000000000000000000000000000000082526004820152602081602481865afa908115610132575f9161083e575b5061076e575b600101610700565b948560206001600160a01b0361078660049987610658565b5116604051988980927f16f0115b0000000000000000000000000000000000000000000000000000000082525afa968715610132575f97610803575b5081965f1983146107ef576001600160a01b036107e460018095019988610658565b911690529050610766565b634e487b7160e01b5f52601160045260245ffd5b9096506020813d8211610836575b8161081e60209383610593565b8101031261013d5761082f90610613565b955f6107c2565b3d9150610811565b90506020813d8211610870575b8161085860209383610593565b8101031261013d5751801515810361013d575f610760565b3d915061084b565b50505091610885816105e1565b925f5b82811061089457505050565b806001600160a01b036108a960019385610658565b51166108b58288610658565b5201610888565b90503d805f833e6108cd8183610593565b81019060208183031261013d5780519067ffffffffffffffff821161013d57019080601f8301121561013d578151610904816105c9565b926109126040519485610593565b81845260208085019260051b82010192831161013d57602001905b82821061093d575050505f6106f0565b6020809161094a84610613565b81520191019061092d56fea2646970667358221220388fd6c0d5e6bef10cc06601a976e70e48742c501b106af1f2858047c5a5d11a64736f6c634300081c00330000000000000000000000003af1dd7a2755201f8e2d6dcda1a61d9f54838f4f000000000000000000000000cc0365f8f453c55ea7471c9f89767928c8f8d27f
Deployed Bytecode
0x60806040526004361015610011575f80fd5b5f3560e01c806325d2a3f3146102a45780635abbd66714610271578063b14a55b4146101435763ff89d06314610045575f80fd5b3461013d57602036600319011261013d5760043567ffffffffffffffff811161013d573660238201121561013d5780600401359067ffffffffffffffff821161013d573660248360051b8301011161013d577f000000000000000000000000cc0365f8f453c55ea7471c9f89767928c8f8d27f6001600160a01b031691905f5b828110156101415760248160051b83010135906001600160a01b03821680920361013d57843b1561013d5760405191632a54db0160e01b835260048301525f8260248183895af191821561013257600192610122575b50016100c5565b5f61012c91610593565b5f61011b565b6040513d5f823e3d90fd5b5f80fd5b005b3461013d57604036600319011261013d5760043580602435610163610689565b805190918181111561026b575080935b1161020d5782906001600160a01b037f000000000000000000000000cc0365f8f453c55ea7471c9f89767928c8f8d27f16925b8281106101af57005b6001600160a01b036101c18284610658565b511690843b1561013d5760405191632a54db0160e01b835260048301525f8260248183895af1918215610132576001926101fd575b50016101a6565b5f61020791610593565b856101f6565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496e646578206f7574206f6620626f756e6473000000000000000000000000006044820152fd5b93610173565b3461013d575f36600319011261013d576102a061028c610689565b604051918291602083526020830190610557565b0390f35b3461013d57602036600319011261013d576004356001600160a01b03811680910361013d5760606040516102d88282610593565b60028152601f1982019182366020840137604051916102f78284610593565b6002835260208301933685376040517f0dfe1681000000000000000000000000000000000000000000000000000000008152602081600481895afa908115610132575f9161051d575b506001600160a01b0361035283610627565b911690526040517fd21220a7000000000000000000000000000000000000000000000000000000008152602081600481895afa908115610132575f916104e3575b506001600160a01b036103a583610648565b911690526040517f1ad8b03b000000000000000000000000000000000000000000000000000000008152604081600481895afa8015610132575f915f91610491575b5091610445916020936fffffffffffffffffffffffffffffffff61040e88979a9998610648565b911690526fffffffffffffffffffffffffffffffff61042c86610627565b9116905260405196879687528084880152860190610557565b91848303604086015251918281520191905f5b818110610466575050500390f35b82516fffffffffffffffffffffffffffffffff16845285945060209384019390920191600101610458565b929150506040823d6040116104db575b816104ae60409383610593565b8101031261013d57602092826104d1856104ca6104459661066c565b920161066c565b91945091926103e7565b3d91506104a1565b90506020813d602011610515575b816104fe60209383610593565b8101031261013d5761050f90610613565b86610393565b3d91506104f1565b90506020813d60201161054f575b8161053860209383610593565b8101031261013d5761054990610613565b86610340565b3d915061052b565b90602080835192838152019201905f5b8181106105745750505090565b82516001600160a01b0316845260209384019390920191600101610567565b90601f8019910116810190811067ffffffffffffffff8211176105b557604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff81116105b55760051b60200190565b906105eb826105c9565b6105f86040519182610593565b8281528092610609601f19916105c9565b0190602036910137565b51906001600160a01b038216820361013d57565b8051156106345760200190565b634e487b7160e01b5f52603260045260245ffd5b8051600110156106345760400190565b80518210156106345760209160051b010190565b51906fffffffffffffffffffffffffffffffff8216820361013d57565b6001600160a01b037f0000000000000000000000003af1dd7a2755201f8e2d6dcda1a61d9f54838f4f16906040517fc946c5cc0000000000000000000000000000000000000000000000000000000081525f81600481865afa908115610132575f916108bc575b506106fb81516105e1565b905f935f5b8251811015610878576001600160a01b0361071b8285610658565b5116604051907f060ce5a50000000000000000000000000000000000000000000000000000000082526004820152602081602481865afa908115610132575f9161083e575b5061076e575b600101610700565b948560206001600160a01b0361078660049987610658565b5116604051988980927f16f0115b0000000000000000000000000000000000000000000000000000000082525afa968715610132575f97610803575b5081965f1983146107ef576001600160a01b036107e460018095019988610658565b911690529050610766565b634e487b7160e01b5f52601160045260245ffd5b9096506020813d8211610836575b8161081e60209383610593565b8101031261013d5761082f90610613565b955f6107c2565b3d9150610811565b90506020813d8211610870575b8161085860209383610593565b8101031261013d5751801515810361013d575f610760565b3d915061084b565b50505091610885816105e1565b925f5b82811061089457505050565b806001600160a01b036108a960019385610658565b51166108b58288610658565b5201610888565b90503d805f833e6108cd8183610593565b81019060208183031261013d5780519067ffffffffffffffff821161013d57019080601f8301121561013d578151610904816105c9565b926109126040519485610593565b81845260208085019260051b82010192831161013d57602001905b82821061093d575050505f6106f0565b6020809161094a84610613565b81520191019061092d56fea2646970667358221220388fd6c0d5e6bef10cc06601a976e70e48742c501b106af1f2858047c5a5d11a64736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003af1dd7a2755201f8e2d6dcda1a61d9f54838f4f000000000000000000000000cc0365f8f453c55ea7471c9f89767928c8f8d27f
-----Decoded View---------------
Arg [0] : _voter (address): 0x3aF1dD7A2755201F8e2D6dCDA1a61d9f54838f4f
Arg [1] : _collector (address): 0xcc0365F8f453C55EA7471C9F89767928c8f8d27F
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003af1dd7a2755201f8e2d6dcda1a61d9f54838f4f
Arg [1] : 000000000000000000000000cc0365f8f453c55ea7471c9f89767928c8f8d27f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.