Source Code
Latest 25 from a total of 32 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit | 19215965 | 733 days ago | IN | 0 ETH | 0.00502603 | ||||
| Withdraw | 18930021 | 773 days ago | IN | 0 ETH | 0.00409319 | ||||
| Withdraw | 18426008 | 843 days ago | IN | 0 ETH | 0.00241356 | ||||
| Deposit | 18425998 | 843 days ago | IN | 0 ETH | 0.00209095 | ||||
| Deposit | 18291590 | 862 days ago | IN | 0 ETH | 0.00089644 | ||||
| Deposit | 18215218 | 873 days ago | IN | 0 ETH | 0.00364119 | ||||
| Withdraw | 18215103 | 873 days ago | IN | 0 ETH | 0.00174843 | ||||
| Deposit | 18105312 | 888 days ago | IN | 0 ETH | 0.00126845 | ||||
| Deposit | 18105296 | 888 days ago | IN | 0 ETH | 0.00127969 | ||||
| Deposit | 18071368 | 893 days ago | IN | 0 ETH | 0.00196066 | ||||
| Deposit | 17888773 | 919 days ago | IN | 0 ETH | 0.0023427 | ||||
| Deposit | 17882946 | 919 days ago | IN | 0 ETH | 0.00259823 | ||||
| Deposit | 17882935 | 919 days ago | IN | 0 ETH | 0.00208374 | ||||
| Deposit | 17811510 | 929 days ago | IN | 0 ETH | 0.00227279 | ||||
| Deposit | 17811498 | 929 days ago | IN | 0 ETH | 0.00172541 | ||||
| Deposit | 17771011 | 935 days ago | IN | 0 ETH | 0.00568067 | ||||
| Deposit | 17771003 | 935 days ago | IN | 0 ETH | 0.00536603 | ||||
| Deposit | 17768618 | 935 days ago | IN | 0 ETH | 0.00320813 | ||||
| Deposit | 17768605 | 935 days ago | IN | 0 ETH | 0.0028173 | ||||
| Deposit | 17732646 | 940 days ago | IN | 0 ETH | 0.00214053 | ||||
| Withdraw | 17732630 | 940 days ago | IN | 0 ETH | 0.00221959 | ||||
| Deposit | 17732628 | 940 days ago | IN | 0 ETH | 0.00215809 | ||||
| Deposit | 17711714 | 943 days ago | IN | 0 ETH | 0.0029909 | ||||
| Withdraw | 17711693 | 943 days ago | IN | 0 ETH | 0.00191152 | ||||
| Deposit | 17711691 | 943 days ago | IN | 0 ETH | 0.00225377 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MasterChef
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IFIEF.sol";
import "./IMigratorChef.sol";
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once SUSHI is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract MasterChef is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// Info of each user.
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
//
// We do some fancy math here. Basically, any point in time, the amount of SUSHIs
// entitled to a user but is pending to be distributed is:
//
// pending reward = (user.amount * pool.accSushiPerShare) - user.rewardDebt
//
// Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
// 1. The pool's `accSushiPerShare` (and `lastRewardBlock`) gets updated.
// 2. User receives the pending reward sent to his/her address.
// 3. User's `amount` gets updated.
// 4. User's `rewardDebt` gets updated.
}
// Info of each pool.
struct PoolInfo {
IERC20 lpToken; // Address of LP token contract.
uint256 allocPoint; // How many allocation points assigned to this pool. SUSHIs to distribute per block.
uint256 lastRewardBlock; // Last block number that SUSHIs distribution occurs.
uint256 accSushiPerShare; // Accumulated SUSHIs per share, times 1e12. See below.
}
// The SUSHI TOKEN!
IFIEF public fief;
// Dev address.
address public devaddr;
// Block number when bonus SUSHI period ends.
uint256 public bonusEndBlock;
// SUSHI tokens created per block.
uint256 public fiefPerBlock;
// Bonus muliplier for early sushi makers.
uint256 public constant BONUS_MULTIPLIER = 10;
// The migrator contract. It has a lot of power. Can only be set through governance (owner).
IMigratorChef public migrator;
// Info of each pool.
PoolInfo[] public poolInfo;
// Info of each user that stakes LP tokens.
mapping (uint256 => mapping (address => UserInfo)) public userInfo;
// Total allocation poitns. Must be the sum of all allocation points in all pools.
uint256 public totalAllocPoint = 0;
// The block number when SUSHI mining starts.
uint256 public startBlock;
address public fundsHolder;
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
constructor(
IFIEF _fief,
address _fundsHolder,
address _feeRecipient,
uint256 _fiefPerBlock,
uint256 _startBlock,
uint256 _bonusEndBlock
) {
require(address(_fief) != address(0), "!fief");
require(_fundsHolder != address(0), "!funds_holder");
require(_feeRecipient != address(0), "!fee_recipient");
require(_fiefPerBlock > 0, "!fief_per_block");
require(_startBlock > block.number, "!start_block");
require(_bonusEndBlock > _startBlock, "!bonus_end_block");
fief = _fief;
fundsHolder = _fundsHolder;
devaddr = _feeRecipient;
fiefPerBlock = _fiefPerBlock;
bonusEndBlock = _bonusEndBlock;
startBlock = _startBlock;
}
function poolLength() external view returns (uint256) {
return poolInfo.length;
}
// Add a new lp to the pool. Can only be called by the owner.
// XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner {
if (_withUpdate) {
massUpdatePools();
}
uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
totalAllocPoint = totalAllocPoint.add(_allocPoint);
poolInfo.push(PoolInfo({
lpToken: _lpToken,
allocPoint: _allocPoint,
lastRewardBlock: lastRewardBlock,
accSushiPerShare: 0
}));
}
// Update the given pool's SUSHI allocation point. Can only be called by the owner.
function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner {
if (_withUpdate) {
massUpdatePools();
}
totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
poolInfo[_pid].allocPoint = _allocPoint;
}
// Set the migrator contract. Can only be called by the owner.
function setMigrator(IMigratorChef _migrator) public onlyOwner {
migrator = _migrator;
}
// Migrate lp token to another lp contract. Can be called by anyone. We trust that migrator contract is good.
function migrate(uint256 _pid) public onlyOwner {
require(address(migrator) != address(0), "migrate: no migrator");
PoolInfo storage pool = poolInfo[_pid];
IERC20 lpToken = pool.lpToken;
uint256 bal = lpToken.balanceOf(address(this));
lpToken.safeApprove(address(migrator), bal);
IERC20 newLpToken = migrator.migrate(lpToken);
require(bal == newLpToken.balanceOf(address(this)), "migrate: bad");
pool.lpToken = newLpToken;
}
function setFundsHolder(address _fundsHolder) external onlyOwner {
require(_fundsHolder != address(0x0), "!funds_holder");
fundsHolder = _fundsHolder;
}
// Return reward multiplier over the given _from to _to block.
function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
if (_to <= bonusEndBlock) {
return _to.sub(_from).mul(BONUS_MULTIPLIER);
} else if (_from >= bonusEndBlock) {
return _to.sub(_from);
} else {
return bonusEndBlock.sub(_from).mul(BONUS_MULTIPLIER).add(
_to.sub(bonusEndBlock)
);
}
}
// View function to see pending SUSHIs on frontend.
function pendingSushi(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accSushiPerShare = pool.accSushiPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (block.number > pool.lastRewardBlock && lpSupply != 0) {
uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
uint256 sushiReward = multiplier.mul(fiefPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
accSushiPerShare = accSushiPerShare.add(sushiReward.mul(1e12).div(lpSupply));
}
return user.amount.mul(accSushiPerShare).div(1e12).sub(user.rewardDebt);
}
// Update reward vairables for all pools. Be careful of gas spending!
function massUpdatePools() public {
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
updatePool(pid);
}
}
// Update reward variables of the given pool to be up-to-date.
function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.number <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (lpSupply == 0) {
pool.lastRewardBlock = block.number;
return;
}
uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
uint256 sushiReward = multiplier.mul(fiefPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
fief.transferFrom(fundsHolder, devaddr, sushiReward.div(10));
fief.transferFrom(fundsHolder, address(this), sushiReward);
pool.accSushiPerShare = pool.accSushiPerShare.add(sushiReward.mul(1e12).div(lpSupply));
pool.lastRewardBlock = block.number;
}
// Deposit LP tokens to MasterChef for SUSHI allocation.
function deposit(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
if (user.amount > 0) {
uint256 pending = user.amount.mul(pool.accSushiPerShare).div(1e12).sub(user.rewardDebt);
safeSushiTransfer(msg.sender, pending);
}
pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
user.amount = user.amount.add(_amount);
user.rewardDebt = user.amount.mul(pool.accSushiPerShare).div(1e12);
emit Deposit(msg.sender, _pid, _amount);
}
// Withdraw LP tokens from MasterChef.
function withdraw(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "withdraw: not good");
updatePool(_pid);
uint256 pending = user.amount.mul(pool.accSushiPerShare).div(1e12).sub(user.rewardDebt);
safeSushiTransfer(msg.sender, pending);
user.amount = user.amount.sub(_amount);
user.rewardDebt = user.amount.mul(pool.accSushiPerShare).div(1e12);
pool.lpToken.safeTransfer(address(msg.sender), _amount);
emit Withdraw(msg.sender, _pid, _amount);
}
// Withdraw without caring about rewards. EMERGENCY ONLY.
function emergencyWithdraw(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
pool.lpToken.safeTransfer(address(msg.sender), user.amount);
emit EmergencyWithdraw(msg.sender, _pid, user.amount);
user.amount = 0;
user.rewardDebt = 0;
}
// Safe sushi transfer function, just in case if rounding error causes pool to not have enough SUSHIs.
function safeSushiTransfer(address _to, uint256 _amount) internal {
uint256 sushiBal = fief.balanceOf(address(this));
if (_amount > sushiBal) {
fief.transfer(_to, sushiBal);
} else {
fief.transfer(_to, _amount);
}
}
// Update dev address by the previous dev.
function dev(address _devaddr) public {
require(msg.sender == devaddr, "dev: wut?");
devaddr = _devaddr;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// 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-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @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) {
return a + b;
}
/**
* @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) {
return a - b;
}
/**
* @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) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting 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) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message 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,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* 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,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../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;
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));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
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'
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) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.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.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the 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 virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IFIEF is IERC20 {
/**
* @dev Creates `amount` new tokens for `to`.
*
* See {ERC20-_mint}.
*
* Requirements:
*
* - the caller must have the `MINTER_ROLE`.
*/
function mint(address to, uint256 amount) external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IMigratorChef {
// Perform LP token migration from legacy UniswapV2 to SushiSwap.
// Take the current LP token address and return the new LP token address.
// Migrator should have full access to the caller's LP token.
// Return the new LP token address.
//
// XXX Migrator must have allowance access to UniswapV2 LP tokens.
// SushiSwap must mint EXACTLY the same amount of SushiSwap LP tokens or
// else something bad will happen. Traditional UniswapV2 does not
// do that so be careful!
function migrate(IERC20 token) external returns (IERC20);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @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 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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` 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 from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @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.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}{
"optimizer": {
"enabled": true,
"runs": 1000,
"details": {
"yul": true,
"yulDetails": {
"stackAllocation": true,
"optimizerSteps": "dhfoDgvulfnTUtnIf"
}
}
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IFIEF","name":"_fief","type":"address"},{"internalType":"address","name":"_fundsHolder","type":"address"},{"internalType":"address","name":"_feeRecipient","type":"address"},{"internalType":"uint256","name":"_fiefPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","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":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fief","outputs":[{"internalType":"contract IFIEF","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fiefPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundsHolder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"contract IMigratorChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingSushi","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accSushiPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fundsHolder","type":"address"}],"name":"setFundsHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMigratorChef","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","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
608060405260006008553480156200001657600080fd5b506040516200227f3803806200227f833981016040819052620000399162000201565b620000443362000184565b6001600160a01b038616620000765760405162461bcd60e51b81526004016200006d9062000399565b60405180910390fd5b6001600160a01b0385166200009f5760405162461bcd60e51b81526004016200006d9062000363565b6001600160a01b038416620000c85760405162461bcd60e51b81526004016200006d9062000375565b60008311620000eb5760405162461bcd60e51b81526004016200006d90620003ab565b4382116200010d5760405162461bcd60e51b81526004016200006d9062000387565b8181116200012f5760405162461bcd60e51b81526004016200006d90620003bd565b600180546001600160a01b039788166001600160a01b031991821617909155600a805496881696821696909617909555600280549490961693909416929092179093556004929092556003556009556200041a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051620001e181620003ee565b92915050565b8051620001e18162000408565b8051620001e18162000413565b60008060008060008060c087890312156200021a578182fd5b6200022888838901620001e7565b955060206200023a89828a01620001d4565b95505060406200024d89828a01620001d4565b94505060606200026089828a01620001f4565b93505060806200027389828a01620001f4565b92505060a06200028689828a01620001f4565b9150509295509295509295565b600d8152602081016c10b33ab73239afb437b63232b960991b815290505b60200190565b600e8152602081016d0859995957dc9958da5c1a595b9d60921b81529050620002b1565b600c8152602081016b2173746172745f626c6f636b60a01b81529050620002b1565b60058152602081016410b334b2b360d91b81529050620002b1565b600f8152602081016e21666965665f7065725f626c6f636b60881b81529050620002b1565b60108152602081016f21626f6e75735f656e645f626c6f636b60801b81529050620002b1565b60208082528101620001e18162000293565b60208082528101620001e181620002b7565b60208082528101620001e181620002db565b60208082528101620001e181620002fd565b60208082528101620001e18162000318565b60208082528101620001e1816200033d565b60006001600160a01b038216620001e1565b6000620001e182620003cf565b620003f981620003cf565b81146200040557600080fd5b50565b620003f981620003e1565b80620003f9565b611e55806200042a6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80635312ea8e116100f95780638da5cb5b11610097578063d49e77cd11610071578063d49e77cd146103a6578063dc1cc7b6146103b9578063e2bbb158146103cc578063f2fde38b146103df57600080fd5b80638da5cb5b146103425780638dbb1e3a1461035357806393f1a40b1461036657600080fd5b8063715018a6116100d3578063715018a6146102ff5780637cd07e47146103075780638aa28550146103275780638d88a90e1461032f57600080fd5b80635312ea8e146102d1578063630b5ba1146102e457806364482f79146102ec57600080fd5b80631eaaa04511610166578063441a3e7011610140578063441a3e701461028f578063454b0608146102a257806348cd4cb1146102b557806351eb05a6146102be57600080fd5b80631eaaa0451461024957806323cf31181461025c5780633bd573851461026f57600080fd5b806317caf6f1116101a257806317caf6f11461021b57806318a763b014610224578063195426ec1461022d5780631aed65531461024057600080fd5b806306124a1d146101c9578063081e3eda146101de5780631526fe27146101f8575b600080fd5b6101dc6101d73660046116a3565b6103f2565b005b6006545b6040516101ef9190611ce7565b60405180910390f35b61020b610206366004611717565b61044b565b6040516101ef9493929190611be8565b6101e260085481565b6101e260045481565b6101e261023b366004611751565b61048f565b6101e260035481565b6101dc610257366004611789565b610621565b6101dc61026a3660046116fa565b61074c565b600a54610282906001600160a01b031681565b6040516101ef9190611b6e565b6101dc61029d3660046117d4565b610776565b6101dc6102b0366004611717565b6108b2565b6101e260095481565b6101dc6102cc366004611717565b610b0c565b6101dc6102df366004611717565b610d93565b6101dc610e46565b6101dc6102fa366004611802565b610e71565b6101dc610f1a565b60055461031a906001600160a01b031681565b6040516101ef9190611bda565b6101e2600a81565b6101dc61033d3660046116a3565b610f2e565b6000546001600160a01b0316610282565b6101e26103613660046117d4565b610f7a565b610398610374366004611751565b60076020908152600092835260408084209091529082529020805460019091015482565b6040516101ef929190611cf5565b600254610282906001600160a01b031681565b60015461031a906001600160a01b031681565b6101dc6103da3660046117d4565b610fe0565b6101dc6103ed3660046116a3565b6110fe565b6103fa611138565b6001600160a01b0381166104295760405162461bcd60e51b815260040161042090611c37565b60405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6006818154811061045b57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b600080600684815481106104b357634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526007825260408085206001600160a01b038981168752935280852060049485029092016003810154815492516370a0823160e01b815291975092959294929391909116916370a082319161051691309101611b6e565b60206040518083038186803b15801561052e57600080fd5b505afa158015610542573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105669190611734565b905083600201544311801561057a57508015155b156105e657600061058f856002015443610f7a565b905060006105c26008546105bc88600101546105b66004548761116290919063ffffffff16565b90611162565b90611175565b90506105e16105da846105bc8464e8d4a51000611162565b8590611181565b935050505b610614836001015461060e64e8d4a510006105bc86886000015461116290919063ffffffff16565b9061118d565b9450505050505b92915050565b610629611138565b801561063757610637610e46565b6000600954431161064a5760095461064c565b435b60085490915061065c9085611181565b600855604080516080810182526001600160a01b0394851681526020810195865290810191825260006060820181815260068054600181018255925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919096161790945593517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40840155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d418301555090517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290910155565b610754611138565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b60006006838154811061079957634e487b7160e01b600052603260045260246000fd5b6000918252602080832086845260078252604080852033865290925292208054600490920290920192508311156107e25760405162461bcd60e51b815260040161042090611c97565b6107eb84610b0c565b6000610819826001015461060e64e8d4a510006105bc8760030154876000015461116290919063ffffffff16565b90506108253382611199565b8154610831908561118d565b808355600384015461084e9164e8d4a51000916105bc9190611162565b60018301558254610869906001600160a01b031633866112e5565b84336001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568866040516108a39190611ce7565b60405180910390a35050505050565b6108ba611138565b6005546001600160a01b03166108e25760405162461bcd60e51b815260040161042090611cd7565b60006006828154811061090557634e487b7160e01b600052603260045260246000fd5b60009182526020822060049182020180546040516370a0823160e01b81529194506001600160a01b0316929183916370a082319161094591309101611b6e565b60206040518083038186803b15801561095d57600080fd5b505afa158015610971573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109959190611734565b6005549091506109b2906001600160a01b03848116911683611368565b6005546040517fce5494bb0000000000000000000000000000000000000000000000000000000081526000916001600160a01b03169063ce5494bb906109fc908690600401611bda565b602060405180830381600087803b158015610a1657600080fd5b505af1158015610a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4e91906116dd565b6040516370a0823160e01b81529091506001600160a01b038216906370a0823190610a7d903090600401611b6e565b60206040518083038186803b158015610a9557600080fd5b505afa158015610aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acd9190611734565b8214610aeb5760405162461bcd60e51b815260040161042090611cb7565b83546001600160a01b0319166001600160a01b039190911617909255505050565b600060068281548110610b2f57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201905080600201544311610b4e575050565b80546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610b7e903090600401611b6e565b60206040518083038186803b158015610b9657600080fd5b505afa158015610baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bce9190611734565b905080610be057504360029091015550565b6000610bf0836002015443610f7a565b90506000610c176008546105bc86600101546105b66004548761116290919063ffffffff16565b600154600a80546002549394506001600160a01b03928316936323b872dd9391821692911690610c48908690611175565b6040518463ffffffff1660e01b8152600401610c6693929190611b97565b602060405180830381600087803b158015610c8057600080fd5b505af1158015610c94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb891906116c0565b50600154600a546040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b03928316926323b872dd92610d0a9291169030908690600401611b97565b602060405180830381600087803b158015610d2457600080fd5b505af1158015610d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5c91906116c0565b50610d7e610d73846105bc8464e8d4a51000611162565b600386015490611181565b60038501555050436002909201919091555050565b600060068281548110610db657634e487b7160e01b600052603260045260246000fd5b60009182526020808320858452600782526040808520338087529352909320805460049093029093018054909450610dfb926001600160a01b039190911691906112e5565b8054604051849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059591610e2f91611ce7565b60405180910390a360008082556001909101555050565b60065460005b81811015610e6d57610e5d81610b0c565b610e6681611dad565b9050610e4c565b5050565b610e79611138565b8015610e8757610e87610e46565b610ed882610ed260068681548110610eaf57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016001015460085461118d90919063ffffffff16565b90611181565b6008819055508160068481548110610f0057634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160010181905550505050565b610f22611138565b610f2c6000611444565b565b6002546001600160a01b03163314610f585760405162461bcd60e51b815260040161042090611c67565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60006003548211610f9b57610f94600a6105b6848661118d565b905061061b565b6003548310610fae57610f94828461118d565b610f94610fc66003548461118d90919063ffffffff16565b610ed2600a6105b68760035461118d90919063ffffffff16565b60006006838154811061100357634e487b7160e01b600052603260045260246000fd5b6000918252602080832086845260078252604080852033865290925292206004909102909101915061103484610b0c565b805415611077576000611069826001015461060e64e8d4a510006105bc8760030154876000015461116290919063ffffffff16565b90506110753382611199565b505b815461108e906001600160a01b0316333086611494565b805461109a9084611181565b80825560038301546110b79164e8d4a51000916105bc9190611162565b6001820155604051849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15906110f0908790611ce7565b60405180910390a350505050565b611106611138565b6001600160a01b03811661112c5760405162461bcd60e51b815260040161042090611c47565b61113581611444565b50565b6000546001600160a01b03163314610f2c5760405162461bcd60e51b815260040161042090611c77565b600061116e8284611d2f565b9392505050565b600061116e8284611d1b565b600061116e8284611d03565b600061116e8284611d4e565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a08231906111ca903090600401611b6e565b60206040518083038186803b1580156111e257600080fd5b505afa1580156111f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121a9190611734565b9050808211156112ae5760015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906112569086908590600401611bbf565b602060405180830381600087803b15801561127057600080fd5b505af1158015611284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a891906116c0565b50505050565b60015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906112569086908690600401611bbf565b505050565b6112e08363a9059cbb60e01b8484604051602401611304929190611bbf565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526114b5565b80158061140957506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063dd62ed3e906113b79030908690600401611b7c565b60206040518083038186803b1580156113cf57600080fd5b505afa1580156113e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114079190611734565b155b6114255760405162461bcd60e51b815260040161042090611cc7565b6112e08363095ea7b360e01b8484604051602401611304929190611bbf565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6112a8846323b872dd60e01b85858560405160240161130493929190611b97565b600061150a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115449092919063ffffffff16565b8051909150156112e0578080602001905181019061152891906116c0565b6112e05760405162461bcd60e51b815260040161042090611ca7565b6060611553848460008561155b565b949350505050565b60608247101561157d5760405162461bcd60e51b815260040161042090611c57565b6001600160a01b0385163b6115a45760405162461bcd60e51b815260040161042090611c87565b600080866001600160a01b031685876040516115c09190611b64565b60006040518083038185875af1925050503d80600081146115fd576040519150601f19603f3d011682016040523d82523d6000602084013e611602565b606091505b509150915061161282828661161d565b979650505050505050565b6060831561162c57508161116e565b82511561163c5782518084602001fd5b8160405162461bcd60e51b81526004016104209190611c26565b803561061b81611df4565b803561061b81611e08565b805161061b81611e08565b803561061b81611e10565b805161061b81611e10565b803561061b81611e19565b805161061b81611e19565b6000602082840312156116b4578081fd5b61116e83828401611656565b6000602082840312156116d1578081fd5b61116e8382840161166c565b6000602082840312156116ee578081fd5b61116e83828401611682565b60006020828403121561170b578081fd5b61116e83828401611677565b600060208284031215611728578081fd5b61116e8382840161168d565b600060208284031215611745578081fd5b61116e83828401611698565b60008060408385031215611763578081fd5b61176f8482850161168d565b9150602061177f85828601611656565b9150509250929050565b60008060006060848603121561179d578081fd5b6117a98582860161168d565b925060206117b986828701611677565b92505060406117ca86828701611661565b9150509250925092565b600080604083850312156117e6578182fd5b6117f28483850161168d565b9150602061177f8582860161168d565b600080600060608486031215611816578283fd5b6118228584860161168d565b925060206117b98682870161168d565b61183b81611d65565b82525050565b600061184b825190565b611859818560208601611d81565b9290920192915050565b61183b81611d76565b6000611876825190565b80845260208401935061188d818560208601611d81565b601f01601f19169290920192915050565b600d8152602081017f2166756e64735f686f6c64657200000000000000000000000000000000000000815290505b60200190565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f6464726573730000000000000000000000000000000000000000000000000000602082015290505b60400190565b60268152602081017f416464726573733a20696e73756666696369656e742062616c616e636520666f81527f722063616c6c000000000000000000000000000000000000000000000000000060208201529050611926565b60098152602081017f6465763a207775743f0000000000000000000000000000000000000000000000815290506118cc565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526118cc565b601d8152602081017f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000815290506118cc565b60128152602081017f77697468647261773a206e6f7420676f6f640000000000000000000000000000815290506118cc565b602a8152602081017f5361666545524332303a204552433230206f7065726174696f6e20646964206e81527f6f7420737563636565640000000000000000000000000000000000000000000060208201529050611926565b600c8152602081017f6d6967726174653a206261640000000000000000000000000000000000000000815290506118cc565b60368152602081017f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f81527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060208201529050611926565b60148152602081017f6d6967726174653a206e6f206d69677261746f72000000000000000000000000815290506118cc565b8061183b565b61061b8183611841565b6020810161061b8284611832565b60408101611b8a8285611832565b61116e6020830184611832565b60608101611ba58286611832565b611bb26020830185611832565b6115536040830184611b5e565b60408101611bcd8285611832565b61116e6020830184611b5e565b6020810161061b8284611863565b60808101611bf68287611863565b611c036020830186611b5e565b611c106040830185611b5e565b611c1d6060830184611b5e565b95945050505050565b6020808252810161116e818461186c565b6020808252810161061b8161189e565b6020808252810161061b816118d2565b6020808252810161061b8161192c565b6020808252810161061b81611984565b6020808252810161061b816119b6565b6020808252810161061b816119e6565b6020808252810161061b81611a18565b6020808252810161061b81611a4a565b6020808252810161061b81611aa2565b6020808252810161061b81611ad4565b6020808252810161061b81611b2c565b6020810161061b8284611b5e565b60408101611bcd8285611b5e565b60008219821115611d1657611d16611dc8565b500190565b600082611d2a57611d2a611dde565b500490565b6000816000190483118215151615611d4957611d49611dc8565b500290565b600082821015611d6057611d60611dc8565b500390565b60006001600160a01b03821661061b565b600061061b82611d65565b60005b83811015611d9c578181015183820152602001611d84565b838111156112a85750506000910152565b6000600019821415611dc157611dc1611dc8565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b611dfd81611d65565b811461113557600080fd5b801515611dfd565b611dfd81611d76565b80611dfd56fea264697066735822122078eb531c6d11289f4aa37925679454261d5170cb81b5f8fb6358bbdfe826941764736f6c63430008040033000000000000000000000000ea068fba19ce95f12d252ad8cb2939225c4ea02d000000000000000000000000b0c1f91392db118bf9f4e10aaf593b0f93d698010000000000000000000000000cd04045962b2d7377313fe2a5553a6e8b6afd3a0000000000000000000000000000000000000000000000002c8d2e2b5e90058000000000000000000000000000000000000000000000000000000000010c60d800000000000000000000000000000000000000000000000000000000010c60d9
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80635312ea8e116100f95780638da5cb5b11610097578063d49e77cd11610071578063d49e77cd146103a6578063dc1cc7b6146103b9578063e2bbb158146103cc578063f2fde38b146103df57600080fd5b80638da5cb5b146103425780638dbb1e3a1461035357806393f1a40b1461036657600080fd5b8063715018a6116100d3578063715018a6146102ff5780637cd07e47146103075780638aa28550146103275780638d88a90e1461032f57600080fd5b80635312ea8e146102d1578063630b5ba1146102e457806364482f79146102ec57600080fd5b80631eaaa04511610166578063441a3e7011610140578063441a3e701461028f578063454b0608146102a257806348cd4cb1146102b557806351eb05a6146102be57600080fd5b80631eaaa0451461024957806323cf31181461025c5780633bd573851461026f57600080fd5b806317caf6f1116101a257806317caf6f11461021b57806318a763b014610224578063195426ec1461022d5780631aed65531461024057600080fd5b806306124a1d146101c9578063081e3eda146101de5780631526fe27146101f8575b600080fd5b6101dc6101d73660046116a3565b6103f2565b005b6006545b6040516101ef9190611ce7565b60405180910390f35b61020b610206366004611717565b61044b565b6040516101ef9493929190611be8565b6101e260085481565b6101e260045481565b6101e261023b366004611751565b61048f565b6101e260035481565b6101dc610257366004611789565b610621565b6101dc61026a3660046116fa565b61074c565b600a54610282906001600160a01b031681565b6040516101ef9190611b6e565b6101dc61029d3660046117d4565b610776565b6101dc6102b0366004611717565b6108b2565b6101e260095481565b6101dc6102cc366004611717565b610b0c565b6101dc6102df366004611717565b610d93565b6101dc610e46565b6101dc6102fa366004611802565b610e71565b6101dc610f1a565b60055461031a906001600160a01b031681565b6040516101ef9190611bda565b6101e2600a81565b6101dc61033d3660046116a3565b610f2e565b6000546001600160a01b0316610282565b6101e26103613660046117d4565b610f7a565b610398610374366004611751565b60076020908152600092835260408084209091529082529020805460019091015482565b6040516101ef929190611cf5565b600254610282906001600160a01b031681565b60015461031a906001600160a01b031681565b6101dc6103da3660046117d4565b610fe0565b6101dc6103ed3660046116a3565b6110fe565b6103fa611138565b6001600160a01b0381166104295760405162461bcd60e51b815260040161042090611c37565b60405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6006818154811061045b57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b600080600684815481106104b357634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526007825260408085206001600160a01b038981168752935280852060049485029092016003810154815492516370a0823160e01b815291975092959294929391909116916370a082319161051691309101611b6e565b60206040518083038186803b15801561052e57600080fd5b505afa158015610542573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105669190611734565b905083600201544311801561057a57508015155b156105e657600061058f856002015443610f7a565b905060006105c26008546105bc88600101546105b66004548761116290919063ffffffff16565b90611162565b90611175565b90506105e16105da846105bc8464e8d4a51000611162565b8590611181565b935050505b610614836001015461060e64e8d4a510006105bc86886000015461116290919063ffffffff16565b9061118d565b9450505050505b92915050565b610629611138565b801561063757610637610e46565b6000600954431161064a5760095461064c565b435b60085490915061065c9085611181565b600855604080516080810182526001600160a01b0394851681526020810195865290810191825260006060820181815260068054600181018255925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919096161790945593517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40840155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d418301555090517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290910155565b610754611138565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b60006006838154811061079957634e487b7160e01b600052603260045260246000fd5b6000918252602080832086845260078252604080852033865290925292208054600490920290920192508311156107e25760405162461bcd60e51b815260040161042090611c97565b6107eb84610b0c565b6000610819826001015461060e64e8d4a510006105bc8760030154876000015461116290919063ffffffff16565b90506108253382611199565b8154610831908561118d565b808355600384015461084e9164e8d4a51000916105bc9190611162565b60018301558254610869906001600160a01b031633866112e5565b84336001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568866040516108a39190611ce7565b60405180910390a35050505050565b6108ba611138565b6005546001600160a01b03166108e25760405162461bcd60e51b815260040161042090611cd7565b60006006828154811061090557634e487b7160e01b600052603260045260246000fd5b60009182526020822060049182020180546040516370a0823160e01b81529194506001600160a01b0316929183916370a082319161094591309101611b6e565b60206040518083038186803b15801561095d57600080fd5b505afa158015610971573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109959190611734565b6005549091506109b2906001600160a01b03848116911683611368565b6005546040517fce5494bb0000000000000000000000000000000000000000000000000000000081526000916001600160a01b03169063ce5494bb906109fc908690600401611bda565b602060405180830381600087803b158015610a1657600080fd5b505af1158015610a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4e91906116dd565b6040516370a0823160e01b81529091506001600160a01b038216906370a0823190610a7d903090600401611b6e565b60206040518083038186803b158015610a9557600080fd5b505afa158015610aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acd9190611734565b8214610aeb5760405162461bcd60e51b815260040161042090611cb7565b83546001600160a01b0319166001600160a01b039190911617909255505050565b600060068281548110610b2f57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201905080600201544311610b4e575050565b80546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610b7e903090600401611b6e565b60206040518083038186803b158015610b9657600080fd5b505afa158015610baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bce9190611734565b905080610be057504360029091015550565b6000610bf0836002015443610f7a565b90506000610c176008546105bc86600101546105b66004548761116290919063ffffffff16565b600154600a80546002549394506001600160a01b03928316936323b872dd9391821692911690610c48908690611175565b6040518463ffffffff1660e01b8152600401610c6693929190611b97565b602060405180830381600087803b158015610c8057600080fd5b505af1158015610c94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb891906116c0565b50600154600a546040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b03928316926323b872dd92610d0a9291169030908690600401611b97565b602060405180830381600087803b158015610d2457600080fd5b505af1158015610d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5c91906116c0565b50610d7e610d73846105bc8464e8d4a51000611162565b600386015490611181565b60038501555050436002909201919091555050565b600060068281548110610db657634e487b7160e01b600052603260045260246000fd5b60009182526020808320858452600782526040808520338087529352909320805460049093029093018054909450610dfb926001600160a01b039190911691906112e5565b8054604051849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059591610e2f91611ce7565b60405180910390a360008082556001909101555050565b60065460005b81811015610e6d57610e5d81610b0c565b610e6681611dad565b9050610e4c565b5050565b610e79611138565b8015610e8757610e87610e46565b610ed882610ed260068681548110610eaf57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016001015460085461118d90919063ffffffff16565b90611181565b6008819055508160068481548110610f0057634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160010181905550505050565b610f22611138565b610f2c6000611444565b565b6002546001600160a01b03163314610f585760405162461bcd60e51b815260040161042090611c67565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60006003548211610f9b57610f94600a6105b6848661118d565b905061061b565b6003548310610fae57610f94828461118d565b610f94610fc66003548461118d90919063ffffffff16565b610ed2600a6105b68760035461118d90919063ffffffff16565b60006006838154811061100357634e487b7160e01b600052603260045260246000fd5b6000918252602080832086845260078252604080852033865290925292206004909102909101915061103484610b0c565b805415611077576000611069826001015461060e64e8d4a510006105bc8760030154876000015461116290919063ffffffff16565b90506110753382611199565b505b815461108e906001600160a01b0316333086611494565b805461109a9084611181565b80825560038301546110b79164e8d4a51000916105bc9190611162565b6001820155604051849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15906110f0908790611ce7565b60405180910390a350505050565b611106611138565b6001600160a01b03811661112c5760405162461bcd60e51b815260040161042090611c47565b61113581611444565b50565b6000546001600160a01b03163314610f2c5760405162461bcd60e51b815260040161042090611c77565b600061116e8284611d2f565b9392505050565b600061116e8284611d1b565b600061116e8284611d03565b600061116e8284611d4e565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a08231906111ca903090600401611b6e565b60206040518083038186803b1580156111e257600080fd5b505afa1580156111f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121a9190611734565b9050808211156112ae5760015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906112569086908590600401611bbf565b602060405180830381600087803b15801561127057600080fd5b505af1158015611284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a891906116c0565b50505050565b60015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906112569086908690600401611bbf565b505050565b6112e08363a9059cbb60e01b8484604051602401611304929190611bbf565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526114b5565b80158061140957506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063dd62ed3e906113b79030908690600401611b7c565b60206040518083038186803b1580156113cf57600080fd5b505afa1580156113e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114079190611734565b155b6114255760405162461bcd60e51b815260040161042090611cc7565b6112e08363095ea7b360e01b8484604051602401611304929190611bbf565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6112a8846323b872dd60e01b85858560405160240161130493929190611b97565b600061150a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115449092919063ffffffff16565b8051909150156112e0578080602001905181019061152891906116c0565b6112e05760405162461bcd60e51b815260040161042090611ca7565b6060611553848460008561155b565b949350505050565b60608247101561157d5760405162461bcd60e51b815260040161042090611c57565b6001600160a01b0385163b6115a45760405162461bcd60e51b815260040161042090611c87565b600080866001600160a01b031685876040516115c09190611b64565b60006040518083038185875af1925050503d80600081146115fd576040519150601f19603f3d011682016040523d82523d6000602084013e611602565b606091505b509150915061161282828661161d565b979650505050505050565b6060831561162c57508161116e565b82511561163c5782518084602001fd5b8160405162461bcd60e51b81526004016104209190611c26565b803561061b81611df4565b803561061b81611e08565b805161061b81611e08565b803561061b81611e10565b805161061b81611e10565b803561061b81611e19565b805161061b81611e19565b6000602082840312156116b4578081fd5b61116e83828401611656565b6000602082840312156116d1578081fd5b61116e8382840161166c565b6000602082840312156116ee578081fd5b61116e83828401611682565b60006020828403121561170b578081fd5b61116e83828401611677565b600060208284031215611728578081fd5b61116e8382840161168d565b600060208284031215611745578081fd5b61116e83828401611698565b60008060408385031215611763578081fd5b61176f8482850161168d565b9150602061177f85828601611656565b9150509250929050565b60008060006060848603121561179d578081fd5b6117a98582860161168d565b925060206117b986828701611677565b92505060406117ca86828701611661565b9150509250925092565b600080604083850312156117e6578182fd5b6117f28483850161168d565b9150602061177f8582860161168d565b600080600060608486031215611816578283fd5b6118228584860161168d565b925060206117b98682870161168d565b61183b81611d65565b82525050565b600061184b825190565b611859818560208601611d81565b9290920192915050565b61183b81611d76565b6000611876825190565b80845260208401935061188d818560208601611d81565b601f01601f19169290920192915050565b600d8152602081017f2166756e64735f686f6c64657200000000000000000000000000000000000000815290505b60200190565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f6464726573730000000000000000000000000000000000000000000000000000602082015290505b60400190565b60268152602081017f416464726573733a20696e73756666696369656e742062616c616e636520666f81527f722063616c6c000000000000000000000000000000000000000000000000000060208201529050611926565b60098152602081017f6465763a207775743f0000000000000000000000000000000000000000000000815290506118cc565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526118cc565b601d8152602081017f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000815290506118cc565b60128152602081017f77697468647261773a206e6f7420676f6f640000000000000000000000000000815290506118cc565b602a8152602081017f5361666545524332303a204552433230206f7065726174696f6e20646964206e81527f6f7420737563636565640000000000000000000000000000000000000000000060208201529050611926565b600c8152602081017f6d6967726174653a206261640000000000000000000000000000000000000000815290506118cc565b60368152602081017f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f81527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060208201529050611926565b60148152602081017f6d6967726174653a206e6f206d69677261746f72000000000000000000000000815290506118cc565b8061183b565b61061b8183611841565b6020810161061b8284611832565b60408101611b8a8285611832565b61116e6020830184611832565b60608101611ba58286611832565b611bb26020830185611832565b6115536040830184611b5e565b60408101611bcd8285611832565b61116e6020830184611b5e565b6020810161061b8284611863565b60808101611bf68287611863565b611c036020830186611b5e565b611c106040830185611b5e565b611c1d6060830184611b5e565b95945050505050565b6020808252810161116e818461186c565b6020808252810161061b8161189e565b6020808252810161061b816118d2565b6020808252810161061b8161192c565b6020808252810161061b81611984565b6020808252810161061b816119b6565b6020808252810161061b816119e6565b6020808252810161061b81611a18565b6020808252810161061b81611a4a565b6020808252810161061b81611aa2565b6020808252810161061b81611ad4565b6020808252810161061b81611b2c565b6020810161061b8284611b5e565b60408101611bcd8285611b5e565b60008219821115611d1657611d16611dc8565b500190565b600082611d2a57611d2a611dde565b500490565b6000816000190483118215151615611d4957611d49611dc8565b500290565b600082821015611d6057611d60611dc8565b500390565b60006001600160a01b03821661061b565b600061061b82611d65565b60005b83811015611d9c578181015183820152602001611d84565b838111156112a85750506000910152565b6000600019821415611dc157611dc1611dc8565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b611dfd81611d65565b811461113557600080fd5b801515611dfd565b611dfd81611d76565b80611dfd56fea264697066735822122078eb531c6d11289f4aa37925679454261d5170cb81b5f8fb6358bbdfe826941764736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ea068fba19ce95f12d252ad8cb2939225c4ea02d000000000000000000000000b0c1f91392db118bf9f4e10aaf593b0f93d698010000000000000000000000000cd04045962b2d7377313fe2a5553a6e8b6afd3a0000000000000000000000000000000000000000000000002c8d2e2b5e90058000000000000000000000000000000000000000000000000000000000010c60d800000000000000000000000000000000000000000000000000000000010c60d9
-----Decoded View---------------
Arg [0] : _fief (address): 0xeA068Fba19CE95f12d252aD8Cb2939225C4Ea02D
Arg [1] : _fundsHolder (address): 0xb0C1f91392db118bF9f4E10AaF593B0F93d69801
Arg [2] : _feeRecipient (address): 0x0Cd04045962b2d7377313fe2A5553a6E8B6aFd3a
Arg [3] : _fiefPerBlock (uint256): 3210272873190000000
Arg [4] : _startBlock (uint256): 17588440
Arg [5] : _bonusEndBlock (uint256): 17588441
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000ea068fba19ce95f12d252ad8cb2939225c4ea02d
Arg [1] : 000000000000000000000000b0c1f91392db118bf9f4e10aaf593b0f93d69801
Arg [2] : 0000000000000000000000000cd04045962b2d7377313fe2a5553a6e8b6afd3a
Arg [3] : 0000000000000000000000000000000000000000000000002c8d2e2b5e900580
Arg [4] : 00000000000000000000000000000000000000000000000000000000010c60d8
Arg [5] : 00000000000000000000000000000000000000000000000000000000010c60d9
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.