Source Code
Overview
S Balance
More Info
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | Age | From | To | Amount | |
---|---|---|---|---|---|---|
28618322 | 25 hrs ago | 0 S | ||||
28618285 | 25 hrs ago | 0 S | ||||
28618120 | 25 hrs ago | 0 S | ||||
28618109 | 25 hrs ago | 0 S | ||||
28618091 | 26 hrs ago | 0 S | ||||
28618072 | 26 hrs ago | 0 S | ||||
28618054 | 26 hrs ago | 0 S | ||||
28433894 | 2 days ago | 0 S | ||||
28433617 | 2 days ago | 0 S | ||||
28433542 | 2 days ago | 0 S | ||||
28433475 | 2 days ago | 0 S | ||||
28433427 | 2 days ago | 0 S | ||||
28433262 | 2 days ago | 0 S | ||||
28430770 | 2 days ago | 0 S | ||||
28426841 | 2 days ago | 0 S | ||||
28426841 | 2 days ago | 0 S | ||||
28426841 | 2 days ago | 0 S | ||||
28426758 | 2 days ago | 0 S | ||||
28426758 | 2 days ago | 0 S | ||||
28426758 | 2 days ago | 0 S | ||||
28426196 | 2 days ago | 0 S | ||||
28426196 | 2 days ago | 0 S | ||||
28426196 | 2 days ago | 0 S | ||||
28045945 | 4 days ago | 0 S | ||||
28045945 | 4 days ago | 0 S |
Loading...
Loading
Contract Name:
MasterChef
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 800 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.20;import {SafeERC20, IERC20} from "openzeppelin/token/ERC20/utils/SafeERC20.sol";import {Ownable2StepUpgradeable} from "openzeppelin-contracts-upgradeable/access/Ownable2StepUpgradeable.sol";import {Math} from "./libraries/Math.sol";import {Rewarder} from "./libraries/Rewarder.sol";import {Constants} from "./libraries/Constants.sol";import {Amounts} from "./libraries/Amounts.sol";import {IMetro} from "./interfaces/IMetro.sol";import {IVoter} from "./interfaces/IVoter.sol";import {IMasterChef} from "./interfaces/IMasterChef.sol";import {IMasterChefRewarder} from "./interfaces/IMasterChefRewarder.sol";import {IRewarderFactory, IBaseRewarder} from "./interfaces/IRewarderFactory.sol";/*** @title Master Chef Contract* @author BlueLabs* @dev The MasterChef allows users to deposit tokens to earn METRO tokens distributed as liquidity mining rewards.* The METRO token is minted by the MasterChef contract and distributed to the users.* A share of the rewards is sent to the treasury.* The weight of each pool is determined by the amount of votes in the Voter contract and by the top pool ids.* On top of the Voter rewards, the MasterChef can also distribute extra rewards in other tokens using extra rewarders.**/
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)pragma solidity ^0.8.20;import {IERC20} from "../IERC20.sol";import {IERC20Permit} from "../extensions/IERC20Permit.sol";import {Address} from "../../../utils/Address.sol";/*** @title SafeERC20* @dev Wrappers around ERC20 operations that throw on failure (when the token* contract returns false). Tokens that return no value (and instead revert or* throw on failure) are also supported, non-reverting calls are assumed to be* successful.* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.*/library SafeERC20 {using Address for address;/*** @dev An operation with an ERC20 token failed.*/error SafeERC20FailedOperation(address token);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)pragma solidity ^0.8.20;import {OwnableUpgradeable} from "./OwnableUpgradeable.sol";import {Initializable} from "../proxy/utils/Initializable.sol";/*** @dev Contract module which provides access control mechanism, where* there is an account (an owner) that can be granted exclusive access to* specific functions.** The initial owner is specified at deployment time in the constructor for `Ownable`. This* can later be changed with {transferOwnership} and {acceptOwnership}.** This module is used through inheritance. It will make available all functions* from parent (Ownable).*/abstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {/// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Stepstruct Ownable2StepStorage {address _pendingOwner;}// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Ownable2Step")) - 1)) & ~bytes32(uint256(0xff))
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.20;/*** @title Math* @dev Library for mathematical operations with overflow and underflow checks.*/library Math {error Math__UnderOverflow();uint256 internal constant MAX_INT256 = 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;/*** @dev Adds a signed integer to an unsigned integer with overflow check.* The result must be greater than or equal to 0 and less than or equal to MAX_INT256.* @param x Unsigned integer to add to.* @param delta Signed integer to add.* @return y The result of the addition.*/function addDelta(uint256 x, int256 delta) internal pure returns (uint256 y) {uint256 success;assembly {y := add(x, delta)success := iszero(or(gt(x, MAX_INT256), gt(y, MAX_INT256)))
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.20;import {Amounts} from "./Amounts.sol";import {Constants} from "./Constants.sol";/*** @title Rewarder Library* @dev A library that defines various functions for calculating rewards.* It takes care about the reward debt and the accumulated debt per share.*/library Rewarder {using Amounts for Amounts.Parameter;struct Parameter {uint256 lastUpdateTimestamp;uint256 accDebtPerShare;mapping(address => uint256) debt;}/*** @dev Returns the debt associated with an amount.* @param accDebtPerShare The accumulated debt per share.* @param deposit The amount.* @return The debt associated with the amount.*/
123456789101112131415161718// SPDX-License-Identifier: MITpragma solidity ^0.8.20;/*** @title Constants Library* @dev A library that defines various constants used throughout the codebase.*/library Constants {uint256 internal constant ACC_PRECISION_BITS = 64;uint256 internal constant PRECISION = 1e18;uint256 internal constant MAX_NUMBER_OF_FARMS = 32;uint256 internal constant MAX_NUMBER_OF_REWARDS = 32;uint256 internal constant MAX_METRO_PER_SECOND = 10e18;uint256 internal constant MAX_BRIBES_PER_POOL = 5;}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.20;import {Math} from "./Math.sol";/*** @title Amounts Library* @dev A library that defines various functions for manipulating amounts of a key and a total.* The key can be bytes32, address, or uint256.*/library Amounts {using Math for uint256;struct Parameter {uint256 totalAmount;mapping(bytes32 => uint256) amounts;}/*** @dev Returns the amount of a key.* @param amounts The storage pointer to the amounts.* @param key The key of the amount.* @return The amount of the key.*/function getAmountOf(Parameter storage amounts, bytes32 key) internal view returns (uint256) {return amounts.amounts[key];
12345678// SPDX-License-Identifier: MITpragma solidity ^0.8.20;import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol";interface IMetro is IERC20 {function mint(address account, uint256 amount) external returns (uint256);}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.20;import {IBribeRewarder} from "./IBribeRewarder.sol";import {IMasterChef} from "./IMasterChef.sol";interface IVoter {error IVoter__InvalidLength();error IVoter_VotingPeriodNotStarted();error IVoter_VotingPeriodEnded();error IVoter__AlreadyVoted();error IVoter__NotOwner();error IVoter__InsufficientVotingPower();error IVoter__TooManyPoolIds();error IVoter__DuplicatePoolId(uint256 pid);error IVoter__InsufficientLockTime();error Voter__InvalidRegisterCaller();error Voter__PoolNotVotable();error IVoter__NoFinishedPeriod();error IVoter_ZeroValue();error IVoter__EmergencyUnlock();event VotingPeriodStarted();event Voted(uint256 indexed tokenId, uint256 votingPeriod, address[] votedPools, uint256[] votesDeltaAmounts);event TopPoolIdsWithWeightsSet(uint256[] poolIds, uint256[] pidWeights);event VoterPoolValidatorUpdated(address indexed validator);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol";import {IMasterChefRewarder} from "./IMasterChefRewarder.sol";import {IMetro} from "./IMetro.sol";import {IVoter} from "./IVoter.sol";import {Rewarder} from "../libraries/Rewarder.sol";import {Amounts} from "../libraries/Amounts.sol";import {IRewarderFactory} from "./IRewarderFactory.sol";interface IMasterChef {error MasterChef__InvalidShares();error MasterChef__InvalidMetroPerSecond();error MasterChef__ZeroAddress();error MasterChef__NotMasterchefRewarder();error MasterChef__CannotRenounceOwnership();error MasterChef__MintFailed();error MasterChef__TrusteeNotSet();error MasterChef__NotTrustedCaller();struct Farm {Amounts.Parameter amounts;Rewarder.Parameter rewarder;IERC20 token;
12345678910111213141516171819202122// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import {IBaseRewarder} from "./IBaseRewarder.sol";interface IMasterChefRewarder is IBaseRewarder {error MasterChefRewarder__AlreadyLinked();error MasterChefRewarder__NotLinked();error MasterChefRewarder__UseUnlink();enum Status {Unlinked,Linked,Stopped}function link(uint256 pid) external;function unlink(uint256 pid) external;function onEmergency(address account, uint256 pid, uint256 oldBalance, uint256 newBalance, uint256 oldTotalSupply) external;}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol";import {IRewarder} from "../interfaces/IRewarder.sol";import {IBribeRewarder} from "../interfaces/IBribeRewarder.sol";import {IBaseRewarder} from "../interfaces/IBaseRewarder.sol";interface IRewarderFactory {error RewarderFactory__ZeroAddress();error RewarderFactory__InvalidRewarderType();error RewarderFactory__InvalidPid();error RewarderFactory__TokenNotWhitelisted();error RewarderFactory__InvalidLength();enum RewarderType {InvalidRewarder,MasterChefRewarder,BribeRewarder}event RewarderCreated(RewarderType indexed rewarderType, IERC20 indexed token, uint256 indexed pid, IBaseRewarder rewarder);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)pragma solidity ^0.8.20;/*** @dev Interface of the ERC20 standard as defined in the EIP.*/interface IERC20 {/*** @dev Emitted when `value` tokens are moved from one account (`from`) to* another (`to`).** Note that `value` may be zero.*/event Transfer(address indexed from, address indexed to, uint256 value);/*** @dev Emitted when the allowance of a `spender` for an `owner` is set by* a call to {approve}. `value` is the new allowance.*/event Approval(address indexed owner, address indexed spender, uint256 value);/*** @dev Returns the value of tokens in existence.*/
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)pragma solidity ^0.8.20;/*** @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].** Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't* need to send a transaction, and thus is not required to hold Ether at all.** ==== Security Considerations** There are two important considerations concerning the use of `permit`. The first is that a valid permit signature* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be* considered as an intention to spend the allowance in any specific way. The second is that because permits have* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be* generally recommended is:** ```solidity* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}* doThing(..., value);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)pragma solidity ^0.8.20;/*** @dev Collection of functions related to the address type*/library Address {/*** @dev The ETH balance of the account is not enough to perform the operation.*/error AddressInsufficientBalance(address account);/*** @dev There's no code at `target` (it is not a contract).*/error AddressEmptyCode(address target);/*** @dev A call to an address target failed. The target may have reverted.*/error FailedInnerCall();/*** @dev Replacement for Solidity's `transfer`: sends `amount` wei to
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)pragma solidity ^0.8.20;import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol";import {Initializable} from "../proxy/utils/Initializable.sol";/*** @dev Contract module which provides a basic access control mechanism, where* there is an account (an owner) that can be granted exclusive access to* specific functions.** The initial owner is set to the address provided by the deployer. This can* later be changed with {transferOwnership}.** This module is used through inheritance. It will make available the modifier* `onlyOwner`, which can be applied to your functions to restrict their use to* the owner.*/abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {/// @custom:storage-location erc7201:openzeppelin.storage.Ownablestruct OwnableStorage {address _owner;}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)pragma solidity ^0.8.20;/*** @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.** The initialization functions use a version number. Once a version number is used, it is consumed and cannot be* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in* case an upgrade adds a module that needs to be initialized.** For example:** [.hljs-theme-light.nopadding]* ```solidity* contract MyToken is ERC20Upgradeable {* function initialize() initializer public {* __ERC20_init("MyToken", "MTK");* }* }** contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol";import {IRewarder} from "./IRewarder.sol";interface IBribeRewarder is IRewarder {error BribeRewarder__OnlyVoter();error BribeRewarder__InsufficientFunds();error BribeRewarder__WrongStartId();error BribeRewarder__WrongEndId();error BribeRewarder__ZeroReward();error BribeRewarder__NativeTransferFailed();error BribeRewarder__NotOwner();error BribeRewarder__CannotRenounceOwnership();error BribeRewarder__NotNativeRewarder();error BribeRewarder__AlreadyInitialized();error BribeRewarder__PeriodNotFound();error BribeRewarder__AmountTooLow();error BribeRewarder__OnlyVoterAdmin();event Claimed(address indexed account, address indexed pool, uint256 amount);event Deposited(uint256 indexed periodId, address indexed account, address indexed pool, uint256 amount);event BribeInit(uint256 indexed startId, uint256 indexed lastId, uint256 amountPerPeriod);event Swept(IERC20 indexed token, address indexed account, uint256 amount);
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol";import {IRewarder} from "./IRewarder.sol";interface IBaseRewarder is IRewarder {error BaseRewarder__NativeTransferFailed();error BaseRewarder__InvalidCaller();error BaseRewarder__Stopped();error BaseRewarder__AlreadyStopped();error BaseRewarder__NotNativeRewarder();error BaseRewarder__ZeroAmount();error BaseRewarder__ZeroReward();error BaseRewarder__InvalidDuration();error BaseRewarder__InvalidPid(uint256 pid);error BaseRewarder__InvalidStartTimestamp(uint256 startTimestamp);error BaseRewarder__CannotRenounceOwnership();event Claim(address indexed account, IERC20 indexed token, uint256 reward);event RewardParameterUpdated(uint256 rewardPerSecond, uint256 startTimestamp, uint256 endTimestamp);event Stopped();
123456789101112// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import {IERC20} from "openzeppelin/token/ERC20/IERC20.sol";interface IRewarder {function getToken() external view returns (IERC20);function getCaller() external view returns (address);function initialize(address initialOwner) external;}
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)pragma solidity ^0.8.20;import {Initializable} from "../proxy/utils/Initializable.sol";/*** @dev Provides information about the current execution context, including the* sender of the transaction and its data. While these are generally available* via msg.sender and msg.data, they should not be accessed in such a direct* manner, since when dealing with meta-transactions the account sending and* paying for execution may not be the actual sender (as far as an application* is concerned).** This contract is only required for intermediate, library-like contracts.*/abstract contract ContextUpgradeable is Initializable {function __Context_init() internal onlyInitializing {}function __Context_init_unchained() internal onlyInitializing {}function _msgSender() internal view virtual returns (address) {return msg.sender;}
1234567891011121314151617181920212223242526{"remappings": ["ds-test/=lib/forge-std/lib/ds-test/src/","forge-std/=lib/forge-std/src/","openzeppelin/=lib/openzeppelin-contracts/contracts/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","solmate/=lib/solmate/","joe-v2/=lib/joe-v2/","@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer": {"enabled": true,"runs": 800},"metadata": {"useLiteralContent": false,"bytecodeHash": "ipfs","appendCBOR": true},"outputSelection": {"*": {"*": ["evm.bytecode",
Contract ABI
API[{"inputs":[{"internalType":"contract IMetro","name":"metro","type":"address"},{"internalType":"contract IRewarderFactory","name":"rewarderFactory","type":"address"},{"internalType":"address","name":"lbHooksManager","type":"address"},{"internalType":"uint256","name":"treasuryShare","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"MasterChef__CannotRenounceOwnership","type":"error"},{"inputs":[],"name":"MasterChef__InvalidMetroPerSecond","type":"error"},{"inputs":[],"name":"MasterChef__InvalidShares","type":"error"},{"inputs":[],"name":"MasterChef__MintFailed","type":"error"},{"inputs":[],"name":"MasterChef__NotMasterchefRewarder","type":"error"},{"inputs":[],"name":"MasterChef__NotTrustedCaller","type":"error"},{"inputs":[],"name":"MasterChef__TrusteeNotSet","type":"error"},{"inputs":[],"name":"MasterChef__ZeroAddress","type":"error"},{"inputs":[],"name":"Math__UnderOverflow","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"contract IMasterChefRewarder","name":"extraRewarder","type":"address"}],"name":"ExtraRewarderSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"}],"name":"FarmAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"metroPerSecond","type":"uint256"}],"name":"MetroPerSecondSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"mintMetro","type":"bool"}],"name":"MintMetroSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"}],"name":"OperatorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"int256","name":"deltaAmount","type":"int256"},{"indexed":false,"internalType":"uint256","name":"metroReward","type":"uint256"}],"name":"PositionModified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"treasury","type":"address"}],"name":"TreasurySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"trustee","type":"address"}],"name":"TrusteeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IVoter","name":"newVoter","type":"address"}],"name":"VoterSet","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"contract IMasterChefRewarder","name":"extraRewarder","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"depositOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"account","type":"address"}],"name":"getDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"getExtraRewarder","outputs":[{"internalType":"contract IMasterChefRewarder","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLBHooksManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"getLastUpdateTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMetro","outputs":[{"internalType":"contract IMetro","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMetroPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"getMetroPerSecondForPid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintMetroFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfFarms","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"name":"getPendingRewards","outputs":[{"internalType":"uint256[]","name":"metroRewards","type":"uint256[]"},{"internalType":"contract IERC20[]","name":"extraTokens","type":"address[]"},{"internalType":"uint256[]","name":"extraRewards","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewarderFactory","outputs":[{"internalType":"contract IRewarderFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"getToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"getTotalDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTreasuryShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVoter","outputs":[{"internalType":"contract IVoter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"address","name":"treasury","type":"address"},{"internalType":"contract IVoter","name":"voter","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"contract IMasterChefRewarder","name":"extraRewarder","type":"address"}],"name":"setExtraRewarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"lumPerSecond","type":"uint96"}],"name":"setMetroPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"mintMetro","type":"bool"}],"name":"setMintMetro","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"trustee","type":"address"}],"name":"setTrustee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IVoter","name":"voter","type":"address"}],"name":"setVoter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"name":"updateAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"updateOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101006040523480156200001257600080fd5b5060405162002af938038062002af9833981016040819052620000359162000156565b6200003f6200008c565b670de0b6b3a7640000811115620000695760405163169cfea160e11b815260040160405180910390fd5b6001600160a01b0393841660805291831660a05290911660c05260e052620001b0565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000dd5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146200013d5780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6001600160a01b03811681146200013d57600080fd5b600080600080608085870312156200016d57600080fd5b84516200017a8162000140565b60208601519094506200018d8162000140565b6040860151909350620001a08162000140565b6060959095015193969295505050565b60805160a05160c05160e0516128de6200021b6000396000818161040e0152611e8c01526000818161044401526107a90152600081816103a701526115ee0152600081816103130152818161195101528181611c5301528181611ca50152611d3101526128de6000f3fe608060405234801561001057600080fd5b506004361061025c5760003560e01c8063796441bb11610145578063c7a61783116100bd578063e30c39781161008c578063e665b41411610071578063e665b4141461052d578063f0f4426014610540578063f2fde38b1461055357600080fd5b8063e30c397814610512578063e4b50cb81461051a57600080fd5b8063c7a61783146104d1578063d0d1ea70146104d9578063d23ab97a146104ec578063e2bbb158146104ff57600080fd5b80639f489e4e11610114578063ac788bc1116100f9578063ac788bc11461048e578063b507a700146104ab578063c0c53b8b146104be57600080fd5b80639f489e4e14610468578063ac7475ed1461047b57600080fd5b8063796441bb1461040c57806379ba5097146104325780638da5cb5b1461043a5780639b4c8ea51461044257600080fd5b80634bc2a657116101d85780635c4323ab116101a757806363bee3691161018c57806363bee369146103de5780636ba4c138146103f1578063715018a61461040457600080fd5b80635c4323ab146103a55780635ffb915f146103cb57600080fd5b80634bc2a6571461034a57806352c28fab1461035d5780635312ea8e14610370578063566aff6a1461038357600080fd5b80632b37f53c1161022f5780633b19e84a116102145780633b19e84a146103005780633d42a0a714610311578063441a3e701461033757600080fd5b80632b37f53c146102c85780633404b811146102ed57600080fd5b806304093c5b146102615780630b909d691461027657806314307355146102a257806321bd31de146102b5575b600080fd5b61027461026f366004612426565b610566565b005b600154600160a01b90046bffffffffffffffffffffffff165b6040519081526020015b60405180910390f35b61028f6102b0366004612468565b6105a6565b6102746102c3366004612496565b610655565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610299565b6102746102fb3660046124d4565b610667565b6001546001600160a01b03166102d5565b7f00000000000000000000000000000000000000000000000000000000000000006102d5565b6102746103453660046124f1565b6106c7565b610274610358366004612513565b610727565b61027461036b366004612530565b61079e565b61027461037e366004612468565b61092b565b61039661039136600461255e565b610b03565b604051610299939291906125ee565b7f00000000000000000000000000000000000000000000000000000000000000006102d5565b6102746103d9366004612661565b610dcf565b6102746103ec36600461268f565b610e69565b6102746103ff366004612426565b610f1b565b610274610f5c565b7f000000000000000000000000000000000000000000000000000000000000000061028f565b610274610f75565b6102d5610fc2565b7f00000000000000000000000000000000000000000000000000000000000000006102d5565b61028f610476366004612496565b610ff7565b610274610489366004612513565b61102d565b600354600160a01b900460ff166040519015158152602001610299565b61028f6104b9366004612468565b61107f565b6102746104cc3660046126c8565b6110b0565b60025461028f565b6102746104e7366004612513565b6111d2565b61028f6104fa366004612468565b611224565b61027461050d3660046124f1565b611251565b6102d561127e565b6102d5610528366004612468565b6112a7565b6102d561053b366004612468565b6112df565b61027461054e366004612513565b611317565b610274610561366004612513565b611328565b6105a28282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506113ad92505050565b5050565b600061064f82600160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1660008054906101000a90046001600160a01b03166001600160a01b03166306aba0e16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610626573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064a9190612708565b6114ed565b92915050565b61065d611586565b6105a282826115ba565b61066f611586565b60038054821515600160a01b0260ff60a01b199091161790556040517f8d0c12e457acc102367c41c574b896726159f39951f3a79ebfeb210973755de0906106bc90831515815260200190565b60405180910390a150565b6106e582336106d584611807565b6106de90612737565b6001611835565b80156105a2576105a233826002858154811061070357610703612753565b60009182526020909120600560079092020101546001600160a01b03169190611ab7565b61072f611586565b6001600160a01b038116610756576040516398e7ce9b60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b038316908117825560405190917f5bb4a0f5a67f7c49cfc7820adfab4690a3752cf969544ddd8445b970d3643e8991a250565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107d6576107d6611b2b565b60028054600181018255600091909152600781027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad3810180546001600160a01b0319166001600160a01b0386811691909117909155427f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad08301557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace909101908316156108865761088682846115ba565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa1580156108ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ee9190612708565b506040516001600160a01b0385169083907f9d7bf7d496ad44415bf088986e68bcfc590380ab2bf411124744b485329f2fc690600090a350505050565b60006002828154811061094057610940612753565b600091825260208220600790910201915061095b8233611b45565b9050600061096882611807565b61097190612737565b90506000808080610983873387611b65565b9350935093509350600061099b886002018a85611b90565b905060006109a882611c0e565b905060006109bd60028b013389898987611da6565b60008c81526005602090815260408083203384529091529020549091506109e49082612769565b60008c81526005602090815260408083203384529091528120559050610a0e60028b018583611e2a565b5060058a0154610a28906001600160a01b0316338b611ab7565b60068a01546001600160a01b03168015610ab85760068b0154604051636e36211360e11b8152336004820152602481018e9052604481018a905260648101899052608481018890526001600160a01b039091169063dc6c42269060a401600060405180830381600087803b158015610a9f57600080fd5b505af1158015610ab3573d6000803e3d6000fd5b505050505b604080518a81526000602082015233918e917f0e006e790dc8db480892a6d5c0bf539c411db278e5185b07d46bdcc110ba6af5910160405180910390a3505050505050505050505050565b606080808367ffffffffffffffff811115610b2057610b2061277c565b604051908082528060200260200182016040528015610b49578160200160208202803683370190505b5092508367ffffffffffffffff811115610b6557610b6561277c565b604051908082528060200260200182016040528015610b8e578160200160208202803683370190505b5091508367ffffffffffffffff811115610baa57610baa61277c565b604051908082528060200260200182016040528015610bd3578160200160208202803683370190505b50905060005b84811015610dc5576000868683818110610bf557610bf5612753565b905060200201359050600060028281548110610c1357610c13612753565b600091825260208220600790910201915060028201908290610c35828d611b45565b90506000610c41835490565b90506000610c58610c53868985611b90565b611e7b565b9150506005600088815260200190815260200160002060008f6001600160a01b03166001600160a01b0316815260200190815260200160002054610cab8f8585858a611ece90949392919063ffffffff16565b610cb59190612769565b8b8981518110610cc757610cc7612753565b60209081029190910101525060068501546001600160a01b03168015610dad5760405163c718325160e01b81526001600160a01b038f81166004830152602482018590526044820184905282169063c7183251906064016040805180830381865afa158015610d3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5e9190612792565b8b8a81518110610d7057610d70612753565b602002602001018b8b81518110610d8957610d89612753565b6020026020010182815250826001600160a01b03166001600160a01b031681525050505b5050505050505080610dbe906127c0565b9050610bd9565b5093509350939050565b610dd7611586565b678ac7230489e80000816bffffffffffffffffffffffff161115610e0e57604051635aef384360e11b815260040160405180910390fd5b600180546001600160a01b0316600160a01b6bffffffffffffffffffffffff8416908102919091179091556040519081527ff174eb93c65a88199f7e24a73be8f5b23f34aa8dd31576f583869e4b325ef2e5906020016106bc565b6003546001600160a01b0316610e9257604051632b95b73560e21b815260040160405180910390fd5b6003546001600160a01b03163314610ebd5760405163b185012560e01b815260040160405180910390fd5b610ed28382610ecb85611807565b6000611835565b8115610f1657610f1633308460028781548110610ef157610ef1612753565b60009182526020909120600560079092020101546001600160a01b0316929190611f34565b505050565b60005b81811015610f1657610f4c838383818110610f3b57610f3b612753565b905060200201353360006001611835565b610f55816127c0565b9050610f1e565b60405163a3dd49c760e01b815260040160405180910390fd5b3380610f7f61127e565b6001600160a01b031614610fb65760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b610fbf81611f73565b50565b6000807f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005b546001600160a01b031692915050565b6000611026826002858154811061101057611010612753565b6000918252602090912060079091020190611b45565b9392505050565b611035611586565b600480546001600160a01b0319166001600160a01b0383169081179091556040517fb3b3f5f64ab192e4b5fefde1f51ce9733bbdcf831951543b325aebd49cc27ec490600090a250565b60006002828154811061109457611094612753565b9060005260206000209060070201600201600001549050919050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0080546004919068010000000000000000900460ff16806110ff5750805467ffffffffffffffff808416911610155b1561111d5760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff191667ffffffffffffffff8316176801000000000000000017815561114d85611fab565b61115684611fbc565b600080546001600160a01b0319166001600160a01b0385161790556003805460ff60a01b19169055805468ff00000000000000001916815560405167ffffffffffffffff831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050565b6111da611586565b600380546001600160a01b0319166001600160a01b0383169081179091556040517fc93afddbe60c8bb62dd8f92851afc10e08cef038fc5c261dda1d8ae8b890e0c490600090a250565b600061064f6002838154811061123c5761123c612753565b90600052602060002090600702016000015490565b61125f8233610ecb84611807565b80156105a2576105a233308360028681548110610ef157610ef1612753565b6000807f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00610fe7565b6000600282815481106112bc576112bc612753565b60009182526020909120600560079092020101546001600160a01b031692915050565b6000600282815481106112f4576112f4612753565b60009182526020909120600660079092020101546001600160a01b031692915050565b61131f611586565b610fbf81611fbc565b611330611586565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b0319166001600160a01b0383169081178255611374610fc2565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b805160008054604080516306aba0e160e01b815290516001600160a01b03909216916306aba0e1916004808201926020929091908290030181865afa1580156113fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141e9190612708565b600154909150600160a01b90046bffffffffffffffffffffffff1660005b838110156114e657600085828151811061145857611458612753565b6020026020010151905060006002828154811061147757611477612753565b60009182526020822060079091020191506002820190611495835490565b905060006114a483888461202d565b905060006114b386838b6114ed565b905060006114c082611c0e565b90506114cd858583611e2a565b5050505050505050806114df906127c0565b905061143c565b5050505050565b6000811561157b5760005460405163d851fdfd60e01b81526004810186905283916001600160a01b03169063d851fdfd90602401602060405180830381865afa15801561153e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115629190612708565b61156c90856127d9565b61157691906127f0565b61157e565b60005b949350505050565b3361158f610fc2565b6001600160a01b0316146115b85760405163118cdaa760e01b8152336004820152602401610fad565b565b6001600160a01b0381161580159061166d57506001604051634f4ee65b60e11b81526001600160a01b0383811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639e9dccb690602401602060405180830381865afa158015611635573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116599190612828565b600281111561166a5761166a612812565b14155b1561168b576040516376644cf960e11b815260040160405180910390fd5b6000600283815481106116a0576116a0612753565b60009182526020909120600660079092020101546001600160a01b0316905080156117205760405163f1e023fd60e01b8152600481018490526001600160a01b0382169063f1e023fd90602401600060405180830381600087803b15801561170757600080fd5b505af115801561171b573d6000803e3d6000fd5b505050505b6001600160a01b0382161561178a5760405163b1a867d560e01b8152600481018490526001600160a01b0383169063b1a867d590602401600060405180830381600087803b15801561177157600080fd5b505af1158015611785573d6000803e3d6000fd5b505050505b816002848154811061179e5761179e612753565b60009182526020918290206007919091020160060180546001600160a01b0319166001600160a01b03938416179055604051918416825284917fa0671cc6d1b10c28ed0b4e4a9eaa3a903f4fa57c3a02426bbcc453004fed8745910160405180910390a2505050565b60006001600160ff1b03821115611831576040516308a942bb60e11b815260040160405180910390fd5b5090565b60006002858154811061184a5761184a612753565b60009182526020822060066007909202019081015490925060028301916001600160a01b03909116908080611880868a8a611b65565b509250925092506000611894868c84611b90565b905060006118a182611c0e565b905060006118b3888d88888887611da6565b9050891561197d57600560008e815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054816118fd9190612769565b90506000600560008f815260200190815260200160002060008e6001600160a01b03166001600160a01b03168152602001908152602001600020819055506000811115611978576119786001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168d83611ab7565b6119c9565b80600560008f815260200190815260200160002060008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546119c39190612769565b90915550505b6001600160a01b03871615611a625760405163870b50fd60e01b81526001600160a01b038d81166004830152602482018f905260448201889052606482018790526084820186905288169063870b50fd9060a4016020604051808303816000875af1158015611a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a609190612708565b505b604080518c8152602081018390526001600160a01b038e16918f917f0e006e790dc8db480892a6d5c0bf539c411db278e5185b07d46bdcc110ba6af5910160405180910390a350505050505050505050505050565b6040516001600160a01b03838116602483015260448201839052610f1691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061203b565b6004546001600160a01b031633146115b8576115b8611586565b6001600160a01b0381166000908152600183016020526040812054611026565b6000808080611b7e876001600160a01b0388168761209e565b93509350935093505b93509350935093565b60015460009061157e908490611bbd908790600160a01b90046bffffffffffffffffffffffff168661202d565b60008054906101000a90046001600160a01b03166001600160a01b03166306aba0e16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610626573d6000803e3d6000fd5b600081600003611c2057506000919050565b600080611c2c84611e7b565b6003549193509150600160a01b900460ff16611c7c57600154611026906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911684611ab7565b6001546040516340c10f1960e01b81526001600160a01b039182166004820152602481018490527f0000000000000000000000000000000000000000000000000000000000000000909116906340c10f19906044016020604051808303816000875af1158015611cf0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d149190612708565b506040516340c10f1960e01b8152306004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906340c10f19906044016020604051808303816000875af1158015611d82573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157e9190612708565b600080611db4888585611e2a565b90508515611df0576001600160a01b0387166000908152600289016020526040902054611de182886120fd565b611deb9190612849565b611df3565b60005b9150611dff81866120fd565b6001600160a01b03909716600090815260029098016020525060409096209490945550929392505050565b600080611e378484612114565b8554909150421115611e47574285555b8015611e6c5780856001016000828254611e619190612769565b925050819055611e72565b84600101545b95945050505050565b600080670de0b6b3a7640000611eb17f0000000000000000000000000000000000000000000000000000000000000000856127d9565b611ebb91906127f0565b9150611ec78284612849565b9050915091565b600080611edb8484612114565b8760010154611eea9190612769565b90508415611f26576001600160a01b0386166000908152600288016020526040902054611f1782876120fd565b611f219190612849565b611f29565b60005b979650505050505050565b6040516001600160a01b038481166024830152838116604483015260648201839052611f6d9186918216906323b872dd90608401611ae4565b50505050565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b03191681556105a282612138565b611fb36121a9565b610fbf816121f7565b6001600160a01b038116611fe3576040516398e7ce9b60e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040517f3c864541ef71378c6229510ed90f376565ee42d9c5e0904a984a9e863e6db44f90600090a250565b600061157e84844285612229565b60006120506001600160a01b03841683612273565b90508051600014158015612075575080806020019051810190612073919061285c565b155b15610f1657604051635274afe760e01b81526001600160a01b0384166004820152602401610fad565b60008281526001840160205260408120548454909190818481036120c6575082915080611b87565b6120d08486612281565b92506120dc8286612281565b60008781526001890160205260409020849055808855905093509350935093565b6000604061210b84846127d9565b901c9392505050565b6000821561212f5761212a83604084901b6127f0565b611026565b50600092915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff166115b857604051631afcd79f60e31b815260040160405180910390fd5b6121ff6121a9565b6001600160a01b038116610fb657604051631e4fbdf760e01b815260006004820152602401610fad565b60008160000361223b5750600061157e565b8454600042851061224c574261224e565b845b905081811161225e576000611f29565b856122698383612849565b611f2991906127d9565b6060611026838360006122bd565b8181016001600160ff1b03808411908211171560008190036122b6576040516308a942bb60e11b815260040160405180910390fd5b5092915050565b6060814710156122e25760405163cd78605960e01b8152306004820152602401610fad565b600080856001600160a01b031684866040516122fe9190612879565b60006040518083038185875af1925050503d806000811461233b576040519150601f19603f3d011682016040523d82523d6000602084013e612340565b606091505b509150915061235086838361235a565b9695505050505050565b60608261236a5761212a826123b1565b815115801561238157506001600160a01b0384163b155b156123aa57604051639996b31560e01b81526001600160a01b0385166004820152602401610fad565b5080611026565b8051156123c15780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60008083601f8401126123ec57600080fd5b50813567ffffffffffffffff81111561240457600080fd5b6020830191508360208260051b850101111561241f57600080fd5b9250929050565b6000806020838503121561243957600080fd5b823567ffffffffffffffff81111561245057600080fd5b61245c858286016123da565b90969095509350505050565b60006020828403121561247a57600080fd5b5035919050565b6001600160a01b0381168114610fbf57600080fd5b600080604083850312156124a957600080fd5b8235915060208301356124bb81612481565b809150509250929050565b8015158114610fbf57600080fd5b6000602082840312156124e657600080fd5b8135611026816124c6565b6000806040838503121561250457600080fd5b50508035926020909101359150565b60006020828403121561252557600080fd5b813561102681612481565b6000806040838503121561254357600080fd5b823561254e81612481565b915060208301356124bb81612481565b60008060006040848603121561257357600080fd5b833561257e81612481565b9250602084013567ffffffffffffffff81111561259a57600080fd5b6125a6868287016123da565b9497909650939450505050565b600081518084526020808501945080840160005b838110156125e3578151875295820195908201906001016125c7565b509495945050505050565b60608152600061260160608301866125b3565b82810360208481019190915285518083528682019282019060005b818110156126415784516001600160a01b03168352938301939183019160010161261c565b5050848103604086015261265581876125b3565b98975050505050505050565b60006020828403121561267357600080fd5b81356bffffffffffffffffffffffff8116811461102657600080fd5b6000806000606084860312156126a457600080fd5b833592506020840135915060408401356126bd81612481565b809150509250925092565b6000806000606084860312156126dd57600080fd5b83356126e881612481565b925060208401356126f881612481565b915060408401356126bd81612481565b60006020828403121561271a57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b820161274c5761274c612721565b5060000390565b634e487b7160e01b600052603260045260246000fd5b8082018082111561064f5761064f612721565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156127a557600080fd5b82516127b081612481565b6020939093015192949293505050565b6000600182016127d2576127d2612721565b5060010190565b808202811582820484141761064f5761064f612721565b60008261280d57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fd5b60006020828403121561283a57600080fd5b81516003811061102657600080fd5b8181038181111561064f5761064f612721565b60006020828403121561286e57600080fd5b8151611026816124c6565b6000825160005b8181101561289a5760208186018101518583015201612880565b50600092019182525091905056fea264697066735822122029e16403aeeba28dc08ec2d5b6421d0382931bbca84f3fe8c446030dbdba7a1764736f6c63430008140033000000000000000000000000f9c49d96dca71eeb655e89cf4d19351aad6cdace0000000000000000000000008a3b1cd8d0decf649262e56ece6b339e59f350db00000000000000000000000021428f5e261543bdd441db00fe266b60b3c7cf660000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025c5760003560e01c8063796441bb11610145578063c7a61783116100bd578063e30c39781161008c578063e665b41411610071578063e665b4141461052d578063f0f4426014610540578063f2fde38b1461055357600080fd5b8063e30c397814610512578063e4b50cb81461051a57600080fd5b8063c7a61783146104d1578063d0d1ea70146104d9578063d23ab97a146104ec578063e2bbb158146104ff57600080fd5b80639f489e4e11610114578063ac788bc1116100f9578063ac788bc11461048e578063b507a700146104ab578063c0c53b8b146104be57600080fd5b80639f489e4e14610468578063ac7475ed1461047b57600080fd5b8063796441bb1461040c57806379ba5097146104325780638da5cb5b1461043a5780639b4c8ea51461044257600080fd5b80634bc2a657116101d85780635c4323ab116101a757806363bee3691161018c57806363bee369146103de5780636ba4c138146103f1578063715018a61461040457600080fd5b80635c4323ab146103a55780635ffb915f146103cb57600080fd5b80634bc2a6571461034a57806352c28fab1461035d5780635312ea8e14610370578063566aff6a1461038357600080fd5b80632b37f53c1161022f5780633b19e84a116102145780633b19e84a146103005780633d42a0a714610311578063441a3e701461033757600080fd5b80632b37f53c146102c85780633404b811146102ed57600080fd5b806304093c5b146102615780630b909d691461027657806314307355146102a257806321bd31de146102b5575b600080fd5b61027461026f366004612426565b610566565b005b600154600160a01b90046bffffffffffffffffffffffff165b6040519081526020015b60405180910390f35b61028f6102b0366004612468565b6105a6565b6102746102c3366004612496565b610655565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610299565b6102746102fb3660046124d4565b610667565b6001546001600160a01b03166102d5565b7f000000000000000000000000f9c49d96dca71eeb655e89cf4d19351aad6cdace6102d5565b6102746103453660046124f1565b6106c7565b610274610358366004612513565b610727565b61027461036b366004612530565b61079e565b61027461037e366004612468565b61092b565b61039661039136600461255e565b610b03565b604051610299939291906125ee565b7f0000000000000000000000008a3b1cd8d0decf649262e56ece6b339e59f350db6102d5565b6102746103d9366004612661565b610dcf565b6102746103ec36600461268f565b610e69565b6102746103ff366004612426565b610f1b565b610274610f5c565b7f000000000000000000000000000000000000000000000000000000000000000061028f565b610274610f75565b6102d5610fc2565b7f00000000000000000000000021428f5e261543bdd441db00fe266b60b3c7cf666102d5565b61028f610476366004612496565b610ff7565b610274610489366004612513565b61102d565b600354600160a01b900460ff166040519015158152602001610299565b61028f6104b9366004612468565b61107f565b6102746104cc3660046126c8565b6110b0565b60025461028f565b6102746104e7366004612513565b6111d2565b61028f6104fa366004612468565b611224565b61027461050d3660046124f1565b611251565b6102d561127e565b6102d5610528366004612468565b6112a7565b6102d561053b366004612468565b6112df565b61027461054e366004612513565b611317565b610274610561366004612513565b611328565b6105a28282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506113ad92505050565b5050565b600061064f82600160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1660008054906101000a90046001600160a01b03166001600160a01b03166306aba0e16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610626573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064a9190612708565b6114ed565b92915050565b61065d611586565b6105a282826115ba565b61066f611586565b60038054821515600160a01b0260ff60a01b199091161790556040517f8d0c12e457acc102367c41c574b896726159f39951f3a79ebfeb210973755de0906106bc90831515815260200190565b60405180910390a150565b6106e582336106d584611807565b6106de90612737565b6001611835565b80156105a2576105a233826002858154811061070357610703612753565b60009182526020909120600560079092020101546001600160a01b03169190611ab7565b61072f611586565b6001600160a01b038116610756576040516398e7ce9b60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b038316908117825560405190917f5bb4a0f5a67f7c49cfc7820adfab4690a3752cf969544ddd8445b970d3643e8991a250565b336001600160a01b037f00000000000000000000000021428f5e261543bdd441db00fe266b60b3c7cf6616146107d6576107d6611b2b565b60028054600181018255600091909152600781027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad3810180546001600160a01b0319166001600160a01b0386811691909117909155427f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad08301557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace909101908316156108865761088682846115ba565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa1580156108ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ee9190612708565b506040516001600160a01b0385169083907f9d7bf7d496ad44415bf088986e68bcfc590380ab2bf411124744b485329f2fc690600090a350505050565b60006002828154811061094057610940612753565b600091825260208220600790910201915061095b8233611b45565b9050600061096882611807565b61097190612737565b90506000808080610983873387611b65565b9350935093509350600061099b886002018a85611b90565b905060006109a882611c0e565b905060006109bd60028b013389898987611da6565b60008c81526005602090815260408083203384529091529020549091506109e49082612769565b60008c81526005602090815260408083203384529091528120559050610a0e60028b018583611e2a565b5060058a0154610a28906001600160a01b0316338b611ab7565b60068a01546001600160a01b03168015610ab85760068b0154604051636e36211360e11b8152336004820152602481018e9052604481018a905260648101899052608481018890526001600160a01b039091169063dc6c42269060a401600060405180830381600087803b158015610a9f57600080fd5b505af1158015610ab3573d6000803e3d6000fd5b505050505b604080518a81526000602082015233918e917f0e006e790dc8db480892a6d5c0bf539c411db278e5185b07d46bdcc110ba6af5910160405180910390a3505050505050505050505050565b606080808367ffffffffffffffff811115610b2057610b2061277c565b604051908082528060200260200182016040528015610b49578160200160208202803683370190505b5092508367ffffffffffffffff811115610b6557610b6561277c565b604051908082528060200260200182016040528015610b8e578160200160208202803683370190505b5091508367ffffffffffffffff811115610baa57610baa61277c565b604051908082528060200260200182016040528015610bd3578160200160208202803683370190505b50905060005b84811015610dc5576000868683818110610bf557610bf5612753565b905060200201359050600060028281548110610c1357610c13612753565b600091825260208220600790910201915060028201908290610c35828d611b45565b90506000610c41835490565b90506000610c58610c53868985611b90565b611e7b565b9150506005600088815260200190815260200160002060008f6001600160a01b03166001600160a01b0316815260200190815260200160002054610cab8f8585858a611ece90949392919063ffffffff16565b610cb59190612769565b8b8981518110610cc757610cc7612753565b60209081029190910101525060068501546001600160a01b03168015610dad5760405163c718325160e01b81526001600160a01b038f81166004830152602482018590526044820184905282169063c7183251906064016040805180830381865afa158015610d3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5e9190612792565b8b8a81518110610d7057610d70612753565b602002602001018b8b81518110610d8957610d89612753565b6020026020010182815250826001600160a01b03166001600160a01b031681525050505b5050505050505080610dbe906127c0565b9050610bd9565b5093509350939050565b610dd7611586565b678ac7230489e80000816bffffffffffffffffffffffff161115610e0e57604051635aef384360e11b815260040160405180910390fd5b600180546001600160a01b0316600160a01b6bffffffffffffffffffffffff8416908102919091179091556040519081527ff174eb93c65a88199f7e24a73be8f5b23f34aa8dd31576f583869e4b325ef2e5906020016106bc565b6003546001600160a01b0316610e9257604051632b95b73560e21b815260040160405180910390fd5b6003546001600160a01b03163314610ebd5760405163b185012560e01b815260040160405180910390fd5b610ed28382610ecb85611807565b6000611835565b8115610f1657610f1633308460028781548110610ef157610ef1612753565b60009182526020909120600560079092020101546001600160a01b0316929190611f34565b505050565b60005b81811015610f1657610f4c838383818110610f3b57610f3b612753565b905060200201353360006001611835565b610f55816127c0565b9050610f1e565b60405163a3dd49c760e01b815260040160405180910390fd5b3380610f7f61127e565b6001600160a01b031614610fb65760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b610fbf81611f73565b50565b6000807f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005b546001600160a01b031692915050565b6000611026826002858154811061101057611010612753565b6000918252602090912060079091020190611b45565b9392505050565b611035611586565b600480546001600160a01b0319166001600160a01b0383169081179091556040517fb3b3f5f64ab192e4b5fefde1f51ce9733bbdcf831951543b325aebd49cc27ec490600090a250565b60006002828154811061109457611094612753565b9060005260206000209060070201600201600001549050919050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0080546004919068010000000000000000900460ff16806110ff5750805467ffffffffffffffff808416911610155b1561111d5760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff191667ffffffffffffffff8316176801000000000000000017815561114d85611fab565b61115684611fbc565b600080546001600160a01b0319166001600160a01b0385161790556003805460ff60a01b19169055805468ff00000000000000001916815560405167ffffffffffffffff831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050565b6111da611586565b600380546001600160a01b0319166001600160a01b0383169081179091556040517fc93afddbe60c8bb62dd8f92851afc10e08cef038fc5c261dda1d8ae8b890e0c490600090a250565b600061064f6002838154811061123c5761123c612753565b90600052602060002090600702016000015490565b61125f8233610ecb84611807565b80156105a2576105a233308360028681548110610ef157610ef1612753565b6000807f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00610fe7565b6000600282815481106112bc576112bc612753565b60009182526020909120600560079092020101546001600160a01b031692915050565b6000600282815481106112f4576112f4612753565b60009182526020909120600660079092020101546001600160a01b031692915050565b61131f611586565b610fbf81611fbc565b611330611586565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b0319166001600160a01b0383169081178255611374610fc2565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b805160008054604080516306aba0e160e01b815290516001600160a01b03909216916306aba0e1916004808201926020929091908290030181865afa1580156113fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141e9190612708565b600154909150600160a01b90046bffffffffffffffffffffffff1660005b838110156114e657600085828151811061145857611458612753565b6020026020010151905060006002828154811061147757611477612753565b60009182526020822060079091020191506002820190611495835490565b905060006114a483888461202d565b905060006114b386838b6114ed565b905060006114c082611c0e565b90506114cd858583611e2a565b5050505050505050806114df906127c0565b905061143c565b5050505050565b6000811561157b5760005460405163d851fdfd60e01b81526004810186905283916001600160a01b03169063d851fdfd90602401602060405180830381865afa15801561153e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115629190612708565b61156c90856127d9565b61157691906127f0565b61157e565b60005b949350505050565b3361158f610fc2565b6001600160a01b0316146115b85760405163118cdaa760e01b8152336004820152602401610fad565b565b6001600160a01b0381161580159061166d57506001604051634f4ee65b60e11b81526001600160a01b0383811660048301527f0000000000000000000000008a3b1cd8d0decf649262e56ece6b339e59f350db1690639e9dccb690602401602060405180830381865afa158015611635573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116599190612828565b600281111561166a5761166a612812565b14155b1561168b576040516376644cf960e11b815260040160405180910390fd5b6000600283815481106116a0576116a0612753565b60009182526020909120600660079092020101546001600160a01b0316905080156117205760405163f1e023fd60e01b8152600481018490526001600160a01b0382169063f1e023fd90602401600060405180830381600087803b15801561170757600080fd5b505af115801561171b573d6000803e3d6000fd5b505050505b6001600160a01b0382161561178a5760405163b1a867d560e01b8152600481018490526001600160a01b0383169063b1a867d590602401600060405180830381600087803b15801561177157600080fd5b505af1158015611785573d6000803e3d6000fd5b505050505b816002848154811061179e5761179e612753565b60009182526020918290206007919091020160060180546001600160a01b0319166001600160a01b03938416179055604051918416825284917fa0671cc6d1b10c28ed0b4e4a9eaa3a903f4fa57c3a02426bbcc453004fed8745910160405180910390a2505050565b60006001600160ff1b03821115611831576040516308a942bb60e11b815260040160405180910390fd5b5090565b60006002858154811061184a5761184a612753565b60009182526020822060066007909202019081015490925060028301916001600160a01b03909116908080611880868a8a611b65565b509250925092506000611894868c84611b90565b905060006118a182611c0e565b905060006118b3888d88888887611da6565b9050891561197d57600560008e815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054816118fd9190612769565b90506000600560008f815260200190815260200160002060008e6001600160a01b03166001600160a01b03168152602001908152602001600020819055506000811115611978576119786001600160a01b037f000000000000000000000000f9c49d96dca71eeb655e89cf4d19351aad6cdace168d83611ab7565b6119c9565b80600560008f815260200190815260200160002060008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546119c39190612769565b90915550505b6001600160a01b03871615611a625760405163870b50fd60e01b81526001600160a01b038d81166004830152602482018f905260448201889052606482018790526084820186905288169063870b50fd9060a4016020604051808303816000875af1158015611a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a609190612708565b505b604080518c8152602081018390526001600160a01b038e16918f917f0e006e790dc8db480892a6d5c0bf539c411db278e5185b07d46bdcc110ba6af5910160405180910390a350505050505050505050505050565b6040516001600160a01b03838116602483015260448201839052610f1691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061203b565b6004546001600160a01b031633146115b8576115b8611586565b6001600160a01b0381166000908152600183016020526040812054611026565b6000808080611b7e876001600160a01b0388168761209e565b93509350935093505b93509350935093565b60015460009061157e908490611bbd908790600160a01b90046bffffffffffffffffffffffff168661202d565b60008054906101000a90046001600160a01b03166001600160a01b03166306aba0e16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610626573d6000803e3d6000fd5b600081600003611c2057506000919050565b600080611c2c84611e7b565b6003549193509150600160a01b900460ff16611c7c57600154611026906001600160a01b037f000000000000000000000000f9c49d96dca71eeb655e89cf4d19351aad6cdace8116911684611ab7565b6001546040516340c10f1960e01b81526001600160a01b039182166004820152602481018490527f000000000000000000000000f9c49d96dca71eeb655e89cf4d19351aad6cdace909116906340c10f19906044016020604051808303816000875af1158015611cf0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d149190612708565b506040516340c10f1960e01b8152306004820152602481018290527f000000000000000000000000f9c49d96dca71eeb655e89cf4d19351aad6cdace6001600160a01b0316906340c10f19906044016020604051808303816000875af1158015611d82573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157e9190612708565b600080611db4888585611e2a565b90508515611df0576001600160a01b0387166000908152600289016020526040902054611de182886120fd565b611deb9190612849565b611df3565b60005b9150611dff81866120fd565b6001600160a01b03909716600090815260029098016020525060409096209490945550929392505050565b600080611e378484612114565b8554909150421115611e47574285555b8015611e6c5780856001016000828254611e619190612769565b925050819055611e72565b84600101545b95945050505050565b600080670de0b6b3a7640000611eb17f0000000000000000000000000000000000000000000000000000000000000000856127d9565b611ebb91906127f0565b9150611ec78284612849565b9050915091565b600080611edb8484612114565b8760010154611eea9190612769565b90508415611f26576001600160a01b0386166000908152600288016020526040902054611f1782876120fd565b611f219190612849565b611f29565b60005b979650505050505050565b6040516001600160a01b038481166024830152838116604483015260648201839052611f6d9186918216906323b872dd90608401611ae4565b50505050565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b03191681556105a282612138565b611fb36121a9565b610fbf816121f7565b6001600160a01b038116611fe3576040516398e7ce9b60e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040517f3c864541ef71378c6229510ed90f376565ee42d9c5e0904a984a9e863e6db44f90600090a250565b600061157e84844285612229565b60006120506001600160a01b03841683612273565b90508051600014158015612075575080806020019051810190612073919061285c565b155b15610f1657604051635274afe760e01b81526001600160a01b0384166004820152602401610fad565b60008281526001840160205260408120548454909190818481036120c6575082915080611b87565b6120d08486612281565b92506120dc8286612281565b60008781526001890160205260409020849055808855905093509350935093565b6000604061210b84846127d9565b901c9392505050565b6000821561212f5761212a83604084901b6127f0565b611026565b50600092915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff166115b857604051631afcd79f60e31b815260040160405180910390fd5b6121ff6121a9565b6001600160a01b038116610fb657604051631e4fbdf760e01b815260006004820152602401610fad565b60008160000361223b5750600061157e565b8454600042851061224c574261224e565b845b905081811161225e576000611f29565b856122698383612849565b611f2991906127d9565b6060611026838360006122bd565b8181016001600160ff1b03808411908211171560008190036122b6576040516308a942bb60e11b815260040160405180910390fd5b5092915050565b6060814710156122e25760405163cd78605960e01b8152306004820152602401610fad565b600080856001600160a01b031684866040516122fe9190612879565b60006040518083038185875af1925050503d806000811461233b576040519150601f19603f3d011682016040523d82523d6000602084013e612340565b606091505b509150915061235086838361235a565b9695505050505050565b60608261236a5761212a826123b1565b815115801561238157506001600160a01b0384163b155b156123aa57604051639996b31560e01b81526001600160a01b0385166004820152602401610fad565b5080611026565b8051156123c15780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60008083601f8401126123ec57600080fd5b50813567ffffffffffffffff81111561240457600080fd5b6020830191508360208260051b850101111561241f57600080fd5b9250929050565b6000806020838503121561243957600080fd5b823567ffffffffffffffff81111561245057600080fd5b61245c858286016123da565b90969095509350505050565b60006020828403121561247a57600080fd5b5035919050565b6001600160a01b0381168114610fbf57600080fd5b600080604083850312156124a957600080fd5b8235915060208301356124bb81612481565b809150509250929050565b8015158114610fbf57600080fd5b6000602082840312156124e657600080fd5b8135611026816124c6565b6000806040838503121561250457600080fd5b50508035926020909101359150565b60006020828403121561252557600080fd5b813561102681612481565b6000806040838503121561254357600080fd5b823561254e81612481565b915060208301356124bb81612481565b60008060006040848603121561257357600080fd5b833561257e81612481565b9250602084013567ffffffffffffffff81111561259a57600080fd5b6125a6868287016123da565b9497909650939450505050565b600081518084526020808501945080840160005b838110156125e3578151875295820195908201906001016125c7565b509495945050505050565b60608152600061260160608301866125b3565b82810360208481019190915285518083528682019282019060005b818110156126415784516001600160a01b03168352938301939183019160010161261c565b5050848103604086015261265581876125b3565b98975050505050505050565b60006020828403121561267357600080fd5b81356bffffffffffffffffffffffff8116811461102657600080fd5b6000806000606084860312156126a457600080fd5b833592506020840135915060408401356126bd81612481565b809150509250925092565b6000806000606084860312156126dd57600080fd5b83356126e881612481565b925060208401356126f881612481565b915060408401356126bd81612481565b60006020828403121561271a57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b820161274c5761274c612721565b5060000390565b634e487b7160e01b600052603260045260246000fd5b8082018082111561064f5761064f612721565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156127a557600080fd5b82516127b081612481565b6020939093015192949293505050565b6000600182016127d2576127d2612721565b5060010190565b808202811582820484141761064f5761064f612721565b60008261280d57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fd5b60006020828403121561283a57600080fd5b81516003811061102657600080fd5b8181038181111561064f5761064f612721565b60006020828403121561286e57600080fd5b8151611026816124c6565b6000825160005b8181101561289a5760208186018101518583015201612880565b50600092019182525091905056fea264697066735822122029e16403aeeba28dc08ec2d5b6421d0382931bbca84f3fe8c446030dbdba7a1764736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f9c49d96dca71eeb655e89cf4d19351aad6cdace0000000000000000000000008a3b1cd8d0decf649262e56ece6b339e59f350db00000000000000000000000021428f5e261543bdd441db00fe266b60b3c7cf660000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : metro (address): 0xF9c49d96DCA71eeB655e89cF4d19351aAD6CDaCe
Arg [1] : rewarderFactory (address): 0x8A3b1cd8d0DEcF649262e56EcE6B339E59f350db
Arg [2] : lbHooksManager (address): 0x21428f5e261543BDd441Db00fE266b60b3C7Cf66
Arg [3] : treasuryShare (uint256): 0
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000f9c49d96dca71eeb655e89cf4d19351aad6cdace
Arg [1] : 0000000000000000000000008a3b1cd8d0decf649262e56ece6b339e59f350db
Arg [2] : 00000000000000000000000021428f5e261543bdd441db00fe266b60b3c7cf66
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.