Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
11667865 | 1451 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x4CC896c0...D3eaFb100 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
StakingRewardsFactory
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-01-18 */ // SPDX-License-Identifier: MIT pragma solidity 0.5.17; /* * Copied from: https://github.com/iamdefinitelyahuman/unipool-fork/blob/262a574/contracts/StakingRewards.sol * // _________ _______ ________ __ __ _________ __ // / _____/ \ \ \_____ \/ \ / \/ _____// |_ ___________ _____ // \_____ \ / | \ / | \ \/\/ /\_____ \\ __\/ _ \_ __ \/ \ // / \/ | \/ | \ / / \| | ( <_> ) | \/ Y Y \ // /_______ /\____|__ /\_______ /\__/\ / /_______ /|__| \____/|__| |__|_| / // \/ \/ \/ \/ \/ \/ // Snowstorm token geyser factory // Based off SNX and UNI staking contracts * Synthetix: StakingRewards.sol * * Docs: https://docs.synthetix.io/ * * * MIT License * =========== * * Copyright (c) 2020 Synthetix * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing a contract. * * > It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } } interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a `Transfer` event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through `transferFrom`. This is * zero by default. * * This value changes when `approve` or `transferFrom` are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * > Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an `Approval` event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a `Transfer` event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @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); } interface IStakingRewards { // Views function lastTimeRewardApplicable() external view returns (uint256); function rewardPerToken() external view returns (uint256); function earned(address account) external view returns (uint256); function getRewardForDuration() external view returns (uint256); function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); // Mutative function stake(uint256 amount) external; function withdraw(uint256 amount) external; function getReward() external; function exit() external; } library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } contract Owned { address public owner; address public nominatedOwner; constructor(address _owner) public { require(_owner != address(0), "Owner address cannot be 0"); owner = _owner; emit OwnerChanged(address(0), _owner); } function nominateNewOwner(address _owner) external onlyOwner { nominatedOwner = _owner; emit OwnerNominated(_owner); } function acceptOwnership() external { require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership"); emit OwnerChanged(owner, nominatedOwner); owner = nominatedOwner; nominatedOwner = address(0); } modifier onlyOwner { _onlyOwner(); _; } function _onlyOwner() private view { require(msg.sender == owner, "Only the contract owner may perform this action"); } event OwnerNominated(address newOwner); event OwnerChanged(address oldOwner, address newOwner); } contract Pausable is Owned { uint public lastPauseTime; bool public paused; constructor() internal { // This contract is abstract, and thus cannot be instantiated directly require(owner != address(0), "Owner must be set"); // Paused will be false, and lastPauseTime will be 0 upon initialisation } /** * @notice Change the paused state of the contract * @dev Only the contract owner may call this. */ function setPaused(bool _paused) external onlyOwner { // Ensure we're actually changing the state before we do anything if (_paused == paused) { return; } // Set our paused state. paused = _paused; // If applicable, set the last pause time. if (paused) { lastPauseTime = now; } // Let everyone know that our pause state has changed. emit PauseChanged(paused); } event PauseChanged(bool isPaused); modifier notPaused { require(!paused, "This action cannot be performed while the contract is paused"); _; } } contract ReentrancyGuard { /// @dev counter to allow mutex lock with only one SSTORE operation uint256 private _guardCounter; constructor () internal { // The counter starts at one to prevent changing it from zero to a non-zero // value, which is a more expensive operation. _guardCounter = 1; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call"); } } contract RewardsDistributionRecipient is Owned { address public rewardsDistribution; function notifyRewardAmount(uint256 reward, address rewardHolder) external; modifier onlyRewardsDistribution() { require(msg.sender == rewardsDistribution, "Caller is not RewardsDistribution contract"); _; } function setRewardsDistribution(address _rewardsDistribution) external onlyOwner { rewardsDistribution = _rewardsDistribution; } } library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, "SafeMath: division by zero"); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "SafeMath: modulo by zero"); return a % b; } } interface IChainLinkFeed { function latestAnswer() external view returns (int256); } contract StakingRewards is IStakingRewards, RewardsDistributionRecipient, ReentrancyGuard, Pausable { using SafeMath for uint256; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ IChainLinkFeed public constant FASTGAS = IChainLinkFeed(0x169E633A2D1E6c10dD91238Ba11c4A708dfEF37C); IERC20 public rewardsToken; IERC20 public stakingToken; uint256 public periodFinish = 0; uint256 public rewardRate = 0; uint256 public rewardsDuration; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; uint256 public boostPrct; mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; uint256 private _totalSupply; mapping(address => uint256) private _balances; /* ========== CONSTRUCTOR ========== */ constructor( address _owner, address _rewardsDistribution, address _rewardsToken, address _stakingToken, uint256 _rewardsDuration, uint _boostPrct ) public Owned(_owner) { rewardsToken = IERC20(_rewardsToken); stakingToken = IERC20(_stakingToken); rewardsDistribution = _rewardsDistribution; rewardsDuration = _rewardsDuration; boostPrct = _boostPrct; } /* ========== VIEWS ========== */ function totalSupply() external view returns (uint256) { return _totalSupply; } function getFastGas() external view returns (uint) { return uint(FASTGAS.latestAnswer()); } function balanceOf(address account) external view returns (uint256) { return _balances[account]; } function lastTimeRewardApplicable() public view returns (uint256) { return Math.min(block.timestamp, periodFinish); } function rewardPerToken() public view returns (uint256) { if (_totalSupply == 0) { return rewardPerTokenStored; } return rewardPerTokenStored.add( lastTimeRewardApplicable().sub(lastUpdateTime).mul(rewardRate).mul(1e18).div(_totalSupply) ); } function earned(address account) public view returns (uint256) { return _balances[account].mul(rewardPerToken().sub(userRewardPerTokenPaid[account])).div(1e18).add(rewards[account]); } function getRewardForDuration() external view returns (uint256) { return rewardRate.mul(rewardsDuration); } /* ========== MUTATIVE FUNCTIONS ========== */ function stake(uint256 amount) external nonReentrant notPaused updateReward(msg.sender) { require(amount > 0, "Cannot stake 0"); _totalSupply = _totalSupply.add(amount); _balances[msg.sender] = _balances[msg.sender].add(amount); stakingToken.safeTransferFrom(msg.sender, address(this), amount); emit Staked(msg.sender, amount); } function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) { require(amount > 0, "Cannot withdraw 0"); _totalSupply = _totalSupply.sub(amount); _balances[msg.sender] = _balances[msg.sender].sub(amount); stakingToken.safeTransfer(msg.sender, amount); emit Withdrawn(msg.sender, amount); } function getReward() public nonReentrant updateReward(msg.sender) { uint256 reward = rewards[msg.sender]; if (reward > 0) { // Safe gaurd against error if reward is greater than balance in contract uint balance = rewardsToken.balanceOf(address(this)); if (rewards[msg.sender] > balance) { reward = balance; } rewards[msg.sender] = 0; rewardsToken.safeTransfer(msg.sender, reward); emit RewardPaid(msg.sender, reward); } } function exit() external { withdraw(_balances[msg.sender]); getReward(); } /* ========== RESTRICTED FUNCTIONS ========== */ function notifyRewardAmount(uint256 reward, address rewardHolder) external onlyRewardsDistribution updateReward(address(0)) { // handle the transfer of reward tokens via `transferFrom` to reduce the number // of transactions required and ensure correctness of the reward amount rewardsToken.safeTransferFrom(rewardHolder, address(this), reward); if (block.timestamp >= periodFinish) { rewardRate = reward.div(rewardsDuration); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardRate); rewardRate = reward.add(leftover).div(rewardsDuration); } lastUpdateTime = block.timestamp; periodFinish = block.timestamp.add(rewardsDuration); emit RewardAdded(reward); } // Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner { require(tokenAddress != address(stakingToken), "Cannot withdraw the staking token"); IERC20(tokenAddress).safeTransfer(owner, tokenAmount); emit Recovered(tokenAddress, tokenAmount); } function setRewardsDuration(uint256 _rewardsDuration) external onlyOwner { require( block.timestamp > periodFinish, "Previous rewards period must be complete before changing the duration for the new period" ); rewardsDuration = _rewardsDuration; emit RewardsDurationUpdated(rewardsDuration); } /* ========== MODIFIERS ========== */ modifier updateReward(address account) { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { // bonus intial liquidity to bootstrap curve and create more realistic APYs if (_totalSupply == 0) { rewards[account] = rewardRate .mul(rewardsDuration) .mul(boostPrct) .div(100) .add(earned(account)); // Based on notifyRewardAmount. Internally adjust reward rate to account for boost uint256 rewardsLeft = rewardRate.mul(rewardsDuration) - rewards[account]; uint256 remaining = periodFinish.sub(block.timestamp); rewardRate = rewardsLeft.div(remaining); // Ensure the provided reward amount is not more than the balance in the contract. // This keeps the reward rate in the right range, preventing overflows due to // very high values of rewardRate in the earned and rewardsPerToken functions; // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow. uint balance = rewardsToken.balanceOf(address(this)); require(rewards[account] <= balance, "Provided reward too high"); require(rewardRate <= balance.div(rewardsDuration), "Provided reward too high"); } rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; } _; } /* ========== EVENTS ========== */ event RewardAdded(uint256 reward); event Staked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); event RewardPaid(address indexed user, uint256 reward); event RewardsDurationUpdated(uint256 newDuration); event Recovered(address token, uint256 amount); } /** * @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. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be aplied to your functions to restrict their use to * the owner. */ contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return msg.sender == _owner; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * > Note: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } contract StakingRewardsFactory is Ownable { // immutables address public rewardsToken; uint public stakingRewardsGenesis; // the staking tokens for which the rewards contract has been deployed address[] public stakingTokens; // info about rewards for a particular staking token struct StakingRewardsInfo { address stakingRewards; uint rewardAmount; } // rewards info by staking token mapping(address => StakingRewardsInfo) public stakingRewardsInfoByStakingToken; constructor( address _rewardsToken, uint _stakingRewardsGenesis ) Ownable() public { require(_stakingRewardsGenesis >= block.timestamp, 'StakingRewardsFactory::constructor: genesis too soon'); rewardsToken = _rewardsToken; stakingRewardsGenesis = _stakingRewardsGenesis; } ///// permissioned functions // deploy a staking reward contract for the staking token, and store the reward amount // the reward will be distributed to the staking reward contract no sooner than the genesis function deploy(address stakingToken, uint rewardAmount, uint rewardsDuration, uint boostPrct) public onlyOwner { StakingRewardsInfo storage info = stakingRewardsInfoByStakingToken[stakingToken]; require(info.stakingRewards == address(0), 'StakingRewardsFactory::deploy: already deployed'); // Args on the StakingRewards // address _owner, // address _rewardsDistribution, // address _rewardsToken, // address _stakingToken, // uint256 _rewardsDuration info.stakingRewards = address(new StakingRewards(/*_rewardsDistribution=*/ owner(), address(this), rewardsToken, stakingToken, rewardsDuration, boostPrct)); info.rewardAmount = rewardAmount; stakingTokens.push(stakingToken); } // Fallback function to return money to reward distributer via pool deployer // In case of issues or incorrect calls or errors function refund(uint256 amount, address refundAddress) public onlyOwner { require( IERC20(rewardsToken).transfer( refundAddress, amount ), "StakingRewardsFactory::notifyRewardAmount: transfer failed" ); } ///// permissionless functions // call notifyRewardAmount for all staking tokens. function notifyRewardAmounts() public { require(stakingTokens.length > 0, 'StakingRewardsFactory::notifyRewardAmounts: called before any deploys'); for (uint i = 0; i < stakingTokens.length; i++) { notifyRewardAmount(stakingTokens[i]); } } // notify reward amount for an individual staking token. // this is a fallback in case the notifyRewardAmounts costs too much gas to call for all contracts function notifyRewardAmount(address stakingToken) public { require(block.timestamp >= stakingRewardsGenesis, 'StakingRewardsFactory::notifyRewardAmount: not ready'); StakingRewardsInfo storage info = stakingRewardsInfoByStakingToken[stakingToken]; require(info.stakingRewards != address(0), 'StakingRewardsFactory::notifyRewardAmount: not deployed'); if (info.rewardAmount > 0) { uint rewardAmount = info.rewardAmount; info.rewardAmount = 0; IERC20(rewardsToken).approve(info.stakingRewards, rewardAmount); StakingRewards(info.stakingRewards).notifyRewardAmount(rewardAmount, address(this)); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"uint256","name":"_stakingRewardsGenesis","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"stakingToken","type":"address"},{"internalType":"uint256","name":"rewardAmount","type":"uint256"},{"internalType":"uint256","name":"rewardsDuration","type":"uint256"},{"internalType":"uint256","name":"boostPrct","type":"uint256"}],"name":"deploy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"stakingToken","type":"address"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"notifyRewardAmounts","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"refundAddress","type":"address"}],"name":"refund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakingRewardsGenesis","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakingRewardsInfoByStakingToken","outputs":[{"internalType":"address","name":"stakingRewards","type":"address"},{"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80638f32d59b116100715780638f32d59b1461019f578063a0928c11146101bb578063ae741d8d146101d5578063cee3ff10146101dd578063d1af0c7d14610215578063f2fde38b1461021d576100b4565b8063344e5e34146100b95780636cf8caf8146100f2578063715018a61461013b5780637ad226dc1461014557806381e16298146101715780638da5cb5b14610197575b600080fd5b6100d6600480360360208110156100cf57600080fd5b5035610243565b604080516001600160a01b039092168252519081900360200190f35b6101186004803603602081101561010857600080fd5b50356001600160a01b031661026a565b604080516001600160a01b03909316835260208301919091528051918290030190f35b61014361028f565b005b6101436004803603604081101561015b57600080fd5b50803590602001356001600160a01b0316610320565b6101436004803603602081101561018757600080fd5b50356001600160a01b0316610428565b6100d66105cd565b6101a76105dc565b604080519115158252519081900360200190f35b6101c36105ed565b60408051918252519081900360200190f35b6101436105f3565b610143600480360360808110156101f357600080fd5b506001600160a01b038135169060208101359060408101359060600135610673565b6100d66107fb565b6101436004803603602081101561023357600080fd5b50356001600160a01b031661080a565b6003818154811061025057fe5b6000918252602090912001546001600160a01b0316905081565b600460205260009081526040902080546001909101546001600160a01b039091169082565b6102976105dc565b6102d6576040805162461bcd60e51b8152602060048201819052602482015260008051602061295e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6103286105dc565b610367576040805162461bcd60e51b8152602060048201819052602482015260008051602061295e833981519152604482015290519081900360640190fd5b6001546040805163a9059cbb60e01b81526001600160a01b038481166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156103bd57600080fd5b505af11580156103d1573d6000803e3d6000fd5b505050506040513d60208110156103e757600080fd5b50516104245760405162461bcd60e51b815260040180806020018281038252603a8152602001806129c3603a913960400191505060405180910390fd5b5050565b6002544210156104695760405162461bcd60e51b81526004018080602001828103825260348152602001806129fd6034913960400191505060405180910390fd5b6001600160a01b03808216600090815260046020526040902080549091166104c25760405162461bcd60e51b8152600401808060200182810382526037815260200180612a316037913960400191505060405180910390fd5b6001810154156104245760018082018054600091829055915483546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018690529051919092169263095ea7b392604480820193602093909283900390910190829087803b15801561053257600080fd5b505af1158015610546573d6000803e3d6000fd5b505050506040513d602081101561055c57600080fd5b50508154604080516368d53c4360e01b81526004810184905230602482015290516001600160a01b03909216916368d53c439160448082019260009290919082900301818387803b1580156105b057600080fd5b505af11580156105c4573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b60025481565b6003546106315760405162461bcd60e51b815260040180806020018281038252604581526020018061297e6045913960600191505060405180910390fd5b60005b600354811015610670576106686003828154811061064e57fe5b6000918252602090912001546001600160a01b0316610428565b600101610634565b50565b61067b6105dc565b6106ba576040805162461bcd60e51b8152602060048201819052602482015260008051602061295e833981519152604482015290519081900360640190fd5b6001600160a01b0380851660009081526004602052604090208054909116156107145760405162461bcd60e51b815260040180806020018281038252602f81526020018061292f602f913960400191505060405180910390fd5b61071c6105cd565b60015460405130916001600160a01b03169088908790879061073d906108f5565b6001600160a01b0396871681529486166020860152928516604080860191909152919094166060840152608083019390935260a082015290519081900360c001906000f080158015610793573d6000803e3d6000fd5b5081546001600160a01b03199081166001600160a01b039283161783556001928301959095556003805492830181556000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90910180549094169416939093179091555050565b6001546001600160a01b031681565b6108126105dc565b610851576040805162461bcd60e51b8152602060048201819052602482015260008051602061295e833981519152604482015290519081900360640190fd5b610670816001600160a01b03811661089a5760405162461bcd60e51b81526004018080602001828103825260268152602001806129096026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b612006806109038339019056fe60806040526000600755600060085534801561001a57600080fd5b50604051612006380380612006833981810160405260c081101561003d57600080fd5b508051602082015160408301516060840151608085015160a0909501519394929391929091856001600160a01b0381166100be576040805162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a15060016003556000546001600160a01b031661016d576040805162461bcd60e51b815260206004820152601160248201527013dddb995c881b5d5cdd081899481cd95d607a1b604482015290519081900360640190fd5b60058054610100600160a81b0319166101006001600160a01b0396871602179055600680546001600160a01b03199081169486169490941790556002805490931694909316939093179055600991909155600c5550611e35806101d16000396000f3fe608060405234801561001057600080fd5b50600436106102055760003560e01c80637b0a47ee1161011a578063b6081647116100ad578063d1af0c7d1161007c578063d1af0c7d14610488578063dbbc4a5714610490578063df136d6514610498578063e9fad8ee146104a0578063ebe2b12b146104a857610205565b8063b608164714610453578063c8f33c911461045b578063cc1a378f14610463578063cd3daf9d1461048057610205565b80638da5cb5b116100e95780638da5cb5b1461041e578063904440bd1461042657806391b4ded91461042e578063a694fc3a1461043657610205565b80637b0a47ee146103bc57806380faa57d146103c45780638980f11f146103cc5780638b876347146103f857610205565b8063386a95251161019d5780635c975abb1161016c5780635c975abb1461033e57806368d53c431461035a57806370a082311461038657806372f702f3146103ac57806379ba5097146103b457610205565b8063386a9525146103025780633d18b9121461030a5780633fc6df6e1461031257806353a47bb71461033657610205565b806318160ddd116101d957806318160ddd146102af57806319762143146102b75780631c1f78eb146102dd5780632e1a7d4d146102e557610205565b80628cc2621461020a5780630700037d146102425780631627540c1461026857806316c38b3c14610290575b600080fd5b6102306004803603602081101561022057600080fd5b50356001600160a01b03166104b0565b60408051918252519081900360200190f35b6102306004803603602081101561025857600080fd5b50356001600160a01b0316610546565b61028e6004803603602081101561027e57600080fd5b50356001600160a01b0316610558565b005b61028e600480360360208110156102a657600080fd5b503515156105b4565b61023061062e565b61028e600480360360208110156102cd57600080fd5b50356001600160a01b0316610635565b61023061065f565b61028e600480360360208110156102fb57600080fd5b503561067d565b6102306109f8565b61028e6109fe565b61031a610d82565b604080516001600160a01b039092168252519081900360200190f35b61031a610d91565b610346610da0565b604080519115158252519081900360200190f35b61028e6004803603604081101561037057600080fd5b50803590602001356001600160a01b0316610da9565b6102306004803603602081101561039c57600080fd5b50356001600160a01b03166110de565b61031a6110f9565b61028e611108565b6102306111c4565b6102306111ca565b61028e600480360360408110156103e257600080fd5b506001600160a01b0381351690602001356111d8565b6102306004803603602081101561040e57600080fd5b50356001600160a01b0316611295565b61031a6112a7565b6102306112b6565b610230611336565b61028e6004803603602081101561044c57600080fd5b503561133c565b6102306116c5565b6102306116cb565b61028e6004803603602081101561047957600080fd5b50356116d1565b610230611754565b61031a6117a2565b61031a6117b6565b6102306117ce565b61028e6117d4565b6102306117f7565b6001600160a01b0381166000908152600e6020908152604080832054600d909252822054610540919061053490670de0b6b3a76400009061052890610503906104f7611754565b9063ffffffff6117fd16565b6001600160a01b0388166000908152601060205260409020549063ffffffff61185a16565b9063ffffffff6118ba16565b9063ffffffff61192416565b92915050565b600e6020526000908152604090205481565b61056061197e565b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b6105bc61197e565b60055460ff16151581151514156105d25761062b565b6005805460ff1916821515179081905560ff16156105ef57426004555b6005546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a15b50565b600f545b90565b61063d61197e565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600061067860095460085461185a90919063ffffffff16565b905090565b600380546001019081905533610691611754565b600b5561069c6111ca565b600a556001600160a01b038116156108bc57600f54610887576106ef6106c1826104b0565b6105346064610528600c546106e360095460085461185a90919063ffffffff16565b9063ffffffff61185a16565b6001600160a01b0382166000908152600e602052604081208290556009546008549192916107229163ffffffff61185a16565b039050600061073c426007546117fd90919063ffffffff16565b905061074e828263ffffffff6118ba16565b600855600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107a157600080fd5b505afa1580156107b5573d6000803e3d6000fd5b505050506040513d60208110156107cb57600080fd5b50516001600160a01b0385166000908152600e602052604090205490915081101561082b576040805162461bcd60e51b81526020600482015260186024820152600080516020611ce0833981519152604482015290519081900360640190fd5b60095461083f90829063ffffffff6118ba16565b6008541115610883576040805162461bcd60e51b81526020600482015260186024820152600080516020611ce0833981519152604482015290519081900360640190fd5b5050505b610890816104b0565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600d909152919020555b60008311610905576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600f54610918908463ffffffff6117fd16565b600f553360009081526010602052604090205461093b908463ffffffff6117fd16565b33600081815260106020526040902091909155600654610967916001600160a01b0390911690856119c7565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25060035481146109f4576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b60095481565b600380546001019081905533610a12611754565b600b55610a1d6111ca565b600a556001600160a01b03811615610c0f57600f54610bda57610a426106c1826104b0565b6001600160a01b0382166000908152600e60205260408120829055600954600854919291610a759163ffffffff61185a16565b0390506000610a8f426007546117fd90919063ffffffff16565b9050610aa1828263ffffffff6118ba16565b600855600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610af457600080fd5b505afa158015610b08573d6000803e3d6000fd5b505050506040513d6020811015610b1e57600080fd5b50516001600160a01b0385166000908152600e6020526040902054909150811015610b7e576040805162461bcd60e51b81526020600482015260186024820152600080516020611ce0833981519152604482015290519081900360640190fd5b600954610b9290829063ffffffff6118ba16565b6008541115610bd6576040805162461bcd60e51b81526020600482015260186024820152600080516020611ce0833981519152604482015290519081900360640190fd5b5050505b610be3816104b0565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600d909152919020555b336000908152600e60205260409020548015610d2a57600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610c7557600080fd5b505afa158015610c89573d6000803e3d6000fd5b505050506040513d6020811015610c9f57600080fd5b5051336000908152600e6020526040902054909150811015610cbf578091505b336000818152600e6020526040812055600554610cf2916101009091046001600160a01b0316908463ffffffff6119c716565b60408051838152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a2505b5050600354811461062b576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002546001600160a01b031681565b6001546001600160a01b031681565b60055460ff1681565b6002546001600160a01b03163314610df25760405162461bcd60e51b815260040180806020018281038252602a815260200180611d8c602a913960400191505060405180910390fd5b6000610dfc611754565b600b55610e076111ca565b600a556001600160a01b03811615610ff957600f54610fc457610e2c6106c1826104b0565b6001600160a01b0382166000908152600e60205260408120829055600954600854919291610e5f9163ffffffff61185a16565b0390506000610e79426007546117fd90919063ffffffff16565b9050610e8b828263ffffffff6118ba16565b600855600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ede57600080fd5b505afa158015610ef2573d6000803e3d6000fd5b505050506040513d6020811015610f0857600080fd5b50516001600160a01b0385166000908152600e6020526040902054909150811015610f68576040805162461bcd60e51b81526020600482015260186024820152600080516020611ce0833981519152604482015290519081900360640190fd5b600954610f7c90829063ffffffff6118ba16565b6008541115610fc0576040805162461bcd60e51b81526020600482015260186024820152600080516020611ce0833981519152604482015290519081900360640190fd5b5050505b610fcd816104b0565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600d909152919020555b6005546110169061010090046001600160a01b0316833086611a1e565b600754421061103b5760095461103390849063ffffffff6118ba16565b60085561108a565b600754600090611051904263ffffffff6117fd16565b9050600061106a6008548361185a90919063ffffffff16565b60095490915061108490610528878463ffffffff61192416565b60085550505b42600a8190556009546110a3919063ffffffff61192416565b6007556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b6001600160a01b031660009081526010602052604090205490565b6006546001600160a01b031681565b6001546001600160a01b031633146111515760405162461bcd60e51b8152600401808060200182810382526035815260200180611cab6035913960400191505060405180910390fd5b600054600154604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b60085481565b600061067842600754611a7e565b6111e061197e565b6006546001600160a01b038381169116141561122d5760405162461bcd60e51b8152600401808060200182810382526021815260200180611de06021913960400191505060405180910390fd5b60005461124d906001600160a01b0384811691168363ffffffff6119c716565b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b600d6020526000908152604090205481565b6000546001600160a01b031681565b600073169e633a2d1e6c10dd91238ba11c4a708dfef37c6001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561130557600080fd5b505afa158015611319573d6000803e3d6000fd5b505050506040513d602081101561132f57600080fd5b5051905090565b60045481565b600380546001019081905560055460ff16156113895760405162461bcd60e51b815260040180806020018281038252603c815260200180611d50603c913960400191505060405180910390fd5b33611392611754565b600b5561139d6111ca565b600a556001600160a01b0381161561158f57600f5461155a576113c26106c1826104b0565b6001600160a01b0382166000908152600e602052604081208290556009546008549192916113f59163ffffffff61185a16565b039050600061140f426007546117fd90919063ffffffff16565b9050611421828263ffffffff6118ba16565b600855600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561147457600080fd5b505afa158015611488573d6000803e3d6000fd5b505050506040513d602081101561149e57600080fd5b50516001600160a01b0385166000908152600e60205260409020549091508110156114fe576040805162461bcd60e51b81526020600482015260186024820152600080516020611ce0833981519152604482015290519081900360640190fd5b60095461151290829063ffffffff6118ba16565b6008541115611556576040805162461bcd60e51b81526020600482015260186024820152600080516020611ce0833981519152604482015290519081900360640190fd5b5050505b611563816104b0565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600d909152919020555b600083116115d5576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600f546115e8908463ffffffff61192416565b600f553360009081526010602052604090205461160b908463ffffffff61192416565b33600081815260106020526040902091909155600654611638916001600160a01b03909116903086611a1e565b60408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25060035481146109f4576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600c5481565b600a5481565b6116d961197e565b60075442116117195760405162461bcd60e51b8152600401808060200182810382526058815260200180611c536058913960600191505060405180910390fd5b60098190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b6000600f546000141561176a5750600b54610632565b610678611793600f54610528670de0b6b3a76400006106e36008546106e3600a546104f76111ca565b600b549063ffffffff61192416565b60055461010090046001600160a01b031681565b73169e633a2d1e6c10dd91238ba11c4a708dfef37c81565b600b5481565b336000908152601060205260409020546117ed9061067d565b6117f56109fe565b565b60075481565b600082821115611854576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261186957506000610540565b8282028284828161187657fe5b04146118b35760405162461bcd60e51b8152600401808060200182810382526021815260200180611d2f6021913960400191505060405180910390fd5b9392505050565b6000808211611910576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b600082848161191b57fe5b04949350505050565b6000828201838110156118b3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000546001600160a01b031633146117f55760405162461bcd60e51b815260040180806020018281038252602f815260200180611d00602f913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a19908490611a94565b505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611a78908590611a94565b50505050565b6000818310611a8d57816118b3565b5090919050565b611aa6826001600160a01b0316611c4c565b611af7576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611b355780518252601f199092019160209182019101611b16565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611b97576040519150601f19603f3d011682016040523d82523d6000602084013e611b9c565b606091505b509150915081611bf3576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611a7857808060200190516020811015611c0f57600080fd5b5051611a785760405162461bcd60e51b815260040180806020018281038252602a815260200180611db6602a913960400191505060405180910390fd5b3b15159056fe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f64596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e65727368697050726f76696465642072657761726420746f6f206869676800000000000000004f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e74726163742069732070617573656443616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420776974686472617720746865207374616b696e6720746f6b656ea265627a7a723158204924311e4bb7f10400659b58d3fa27cb94aec94fa713641545d40fc2f9c8be6664736f6c634300051100324f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735374616b696e6752657761726473466163746f72793a3a6465706c6f793a20616c7265616479206465706c6f7965644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725374616b696e6752657761726473466163746f72793a3a6e6f74696679526577617264416d6f756e74733a2063616c6c6564206265666f726520616e79206465706c6f79735374616b696e6752657761726473466163746f72793a3a6e6f74696679526577617264416d6f756e743a207472616e73666572206661696c65645374616b696e6752657761726473466163746f72793a3a6e6f74696679526577617264416d6f756e743a206e6f742072656164795374616b696e6752657761726473466163746f72793a3a6e6f74696679526577617264416d6f756e743a206e6f74206465706c6f796564a265627a7a72315820be180294562b9eae140140d09205279351bd13f42fd9de152cab2dfc18a7662864736f6c63430005110032
Deployed Bytecode Sourcemap
26962:3603:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26962:3603:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27182:30;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27182:30:0;;:::i;:::-;;;;-1:-1:-1;;;;;27182:30:0;;;;;;;;;;;;;;27420:78;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27420:78:0;-1:-1:-1;;;;;27420:78:0;;:::i;:::-;;;;-1:-1:-1;;;;;27420:78:0;;;;;;;;;;;;;;;;;;;;;26214:140;;;:::i;:::-;;28999:300;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28999:300:0;;;;;;-1:-1:-1;;;;;28999:300:0;;:::i;29859:703::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29859:703:0;-1:-1:-1;;;;;29859:703:0;;:::i;25403:79::-;;;:::i;25769:92::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;27064:33;;;:::i;:::-;;;;;;;;;;;;;;;;29401:284;;;:::i;28069:785::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;28069:785:0;;;;;;;;;;;;;;;;;;:::i;27030:27::-;;;:::i;26509:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26509:109:0;-1:-1:-1;;;;;26509:109:0;;:::i;27182:30::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27182:30:0;;-1:-1:-1;27182:30:0;:::o;27420:78::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27420:78:0;;;;;:::o;26214:140::-;25615:9;:7;:9::i;:::-;25607:54;;;;;-1:-1:-1;;;25607:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25607:54:0;;;;;;;;;;;;;;;26313:1;26297:6;;26276:40;;-1:-1:-1;;;;;26297:6:0;;;;26276:40;;26313:1;;26276:40;26344:1;26327:19;;-1:-1:-1;;;;;;26327:19:0;;;26214:140::o;28999:300::-;25615:9;:7;:9::i;:::-;25607:54;;;;;-1:-1:-1;;;25607:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25607:54:0;;;;;;;;;;;;;;;29111:12;;29104:101;;;-1:-1:-1;;;29104:101:0;;-1:-1:-1;;;;;29104:101:0;;;;;;;;;;;;;;;29111:12;;;;;29104:29;;:101;;;;;;;;;;;;;;29111:12;;29104:101;;;5:2:-1;;;;30:1;27;20:12;5:2;29104:101:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29104:101:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29104:101:0;29082:209;;;;-1:-1:-1;;;29082:209:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28999:300;;:::o;29859:703::-;29954:21;;29935:15;:40;;29927:105;;;;-1:-1:-1;;;29927:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30079:46:0;;;30045:31;30079:46;;;:32;:46;;;;;30144:19;;30079:46;;30144:19;30136:101;;;;-1:-1:-1;;;30136:101:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30254:17;;;;:21;30250:305;;30312:17;;;;;;30292;30344:21;;;;30389:12;;30411:19;;30382:63;;;-1:-1:-1;;;30382:63:0;;-1:-1:-1;;;;;30411:19:0;;;30382:63;;;;;;;;;;;;30389:12;;;;;30382:28;;:63;;;;;;;;;;;;;;;;;;30389:12;30382:63;;;5:2:-1;;;;30:1;27;20:12;5:2;30382:63:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30382:63:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;30475:19:0;;30460:83;;;-1:-1:-1;;;30460:83:0;;;;;;;;30537:4;30460:83;;;;;;-1:-1:-1;;;;;30475:19:0;;;;30460:54;;:83;;;;;30475:19;;30460:83;;;;;;;;30475:19;;30460:83;;;5:2:-1;;;;30:1;27;20:12;5:2;30460:83:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30460:83:0;;;;30250:305;29859:703;;:::o;25403:79::-;25441:7;25468:6;-1:-1:-1;;;;;25468:6:0;25403:79;:::o;25769:92::-;25809:4;25847:6;-1:-1:-1;;;;;25847:6:0;25833:10;:20;;25769:92::o;27064:33::-;;;;:::o;29401:284::-;29458:13;:20;29450:106;;;;-1:-1:-1;;;29450:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29572:6;29567:111;29588:13;:20;29584:24;;29567:111;;;29630:36;29649:13;29663:1;29649:16;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29649:16:0;29630:18;:36::i;:::-;29610:3;;29567:111;;;;29401:284::o;28069:785::-;25615:9;:7;:9::i;:::-;25607:54;;;;;-1:-1:-1;;;25607:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25607:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;28226:46:0;;;28192:31;28226:46;;;:32;:46;;;;;28291:19;;28226:46;;28291:19;:33;28283:93;;;;-1:-1:-1;;;28283:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28680:7;:5;:7::i;:::-;28704:12;;28635:124;;28697:4;;-1:-1:-1;;;;;28704:12:0;;28718;;28732:15;;28749:9;;28635:124;;;:::i;:::-;-1:-1:-1;;;;;28635:124:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28635:124:0;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;28605:155:0;;-1:-1:-1;;;;;;28605:155:0;;;-1:-1:-1;;;;;28605:155:0;;;;;;-1:-1:-1;28771:17:0;;;:32;;;;28814:13;27:10:-1;;23:18;;;45:23;;-1:-1;28814:32:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;28069:785:0:o;27030:27::-;;;-1:-1:-1;;;;;27030:27:0;;:::o;26509:109::-;25615:9;:7;:9::i;:::-;25607:54;;;;;-1:-1:-1;;;25607:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25607:54:0;;;;;;;;;;;;;;;26582:28;26601:8;-1:-1:-1;;;;;26798:22:0;;26790:73;;;;-1:-1:-1;;;26790:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26900:6;;;26879:38;;-1:-1:-1;;;;;26879:38:0;;;;26900:6;;;26879:38;;;26928:6;:17;;-1:-1:-1;;;;;;26928:17:0;-1:-1:-1;;;;;26928:17:0;;;;;;;;;;26724:229::o;26962:3603::-;;;;;;;;:::o
Swarm Source
bzzr://be180294562b9eae140140d09205279351bd13f42fd9de152cab2dfc18a76628
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.