Source Code
Latest 25 from a total of 8,522 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Multicall | 70096392 | 475 days ago | IN | 0 MNT | 0.01749017 | ||||
| Multicall | 70096366 | 475 days ago | IN | 0 MNT | 0.02922705 | ||||
| Multicall | 69796089 | 482 days ago | IN | 0 MNT | 0.02341033 | ||||
| Multicall | 69696571 | 485 days ago | IN | 0 MNT | 0.02164808 | ||||
| Multicall | 69660734 | 486 days ago | IN | 0 MNT | 0.03257799 | ||||
| Multicall | 69613570 | 487 days ago | IN | 0 MNT | 0.02189183 | ||||
| Multicall | 69613538 | 487 days ago | IN | 0 MNT | 0.01667753 | ||||
| Multicall | 68642432 | 509 days ago | IN | 0 MNT | 0.01863971 | ||||
| Multicall | 68529173 | 512 days ago | IN | 0 MNT | 0.01419239 | ||||
| Multicall | 68508356 | 512 days ago | IN | 0 MNT | 0.02799855 | ||||
| Multicall | 67937999 | 525 days ago | IN | 0 MNT | 0.01327333 | ||||
| Multicall | 67937986 | 525 days ago | IN | 0 MNT | 0.01279319 | ||||
| Multicall | 67685102 | 531 days ago | IN | 0 MNT | 0.01925857 | ||||
| Multicall | 67685079 | 531 days ago | IN | 0 MNT | 0.0295066 | ||||
| Multicall | 67620859 | 533 days ago | IN | 0 MNT | 0.01226541 | ||||
| Multicall | 67533700 | 535 days ago | IN | 0 MNT | 0.0145666 | ||||
| Multicall | 67533660 | 535 days ago | IN | 0 MNT | 0.00587899 | ||||
| Multicall | 67533646 | 535 days ago | IN | 0 MNT | 0.01454507 | ||||
| Multicall | 67525438 | 535 days ago | IN | 0 MNT | 0.01396338 | ||||
| Multicall | 67525399 | 535 days ago | IN | 0 MNT | 0.0122972 | ||||
| Multicall | 67525377 | 535 days ago | IN | 0 MNT | 0.01187428 | ||||
| Multicall | 67350466 | 539 days ago | IN | 0 MNT | 0.02507947 | ||||
| Multicall | 67350384 | 539 days ago | IN | 0 MNT | 0.02019426 | ||||
| Multicall | 66946730 | 548 days ago | IN | 0 MNT | 0.01767191 | ||||
| Multicall | 66946712 | 548 days ago | IN | 0 MNT | 0.01768989 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
MiniChefV2
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/access/Ownable.sol";
// Multicall
import "@openzeppelin/contracts/utils/Multicall.sol";
// IERC20
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// IERC20Permit
import "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol";
// SafeERC20
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IRewarder.sol";
interface IMigratorChef {
// Take the current LP token address and return the new LP token address.
// Migrator should have full access to the caller's LP token.
function migrate(IERC20 token) external returns (IERC20);
}
/**
* @title MiniChefV2
* @notice Modified from Sushi's MasterChef contract
* @dev MiniChefV2 is a modified version of MasterChef from SushiSwap.
* It is the contract that allows users to deposit LP tokens in order to earn REWARD_TOKEN.
* It also allows the owner to mint new REWARD_TOKEN tokens in order to reward users for their activity.
* Modified to allow for multiple reward tokens.
*/
contract MiniChefV2 is Ownable, Multicall {
using SafeERC20 for IERC20;
/// @notice Info of each MCV2 user.
/// `amount` LP token amount the user has provided.
/// `rewardDebt` The amount of REWARD_TOKEN entitled to the user.
struct UserInfo {
uint256 amount;
int256 rewardDebt;
}
/// @notice Info of each MCV2 pool.
/// `allocPoint` The amount of allocation points assigned to the pool.
/// Also known as the amount of REWARD_TOKEN to distribute per block.
struct PoolInfo {
uint128 accSushiPerShare;
uint64 lastRewardTime;
uint64 allocPoint;
}
/// @notice Address of REWARD_TOKEN contract.
IERC20 public immutable REWARD_TOKEN;
// @notice The migrator contract. It has a lot of power. Can only be set through governance (owner).
IMigratorChef public migrator;
/// @notice Info of each MCV2 pool.
PoolInfo[] public poolInfo;
/// @notice Address of the LP token for each MCV2 pool.
IERC20[] public lpToken;
/// @notice Address of each `IRewarder` contract in MCV2.
IRewarder[] public rewarder;
/// @notice Info of each user that stakes LP tokens.
mapping (uint256 => mapping (address => UserInfo)) public userInfo;
/// @dev Total allocation points. Must be the sum of all allocation points in all pools.
uint256 public totalAllocPoint;
uint256 public rewardPerSecond;
uint256 private constant ACC_REWARD_TOKEN_PRECISION = 1e12;
event Deposit(address indexed user, uint256 indexed pid, uint256 amount, address indexed to);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to);
event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to);
event Harvest(address indexed user, uint256 indexed pid, uint256 amount);
event LogPoolAddition(uint256 indexed pid, uint256 allocPoint, IERC20 indexed lpToken, IRewarder indexed rewarder);
event LogSetPool(uint256 indexed pid, uint256 allocPoint, IRewarder indexed rewarder, bool overwrite);
event LogUpdatePool(uint256 indexed pid, uint64 lastRewardTime, uint256 lpSupply, uint256 accSushiPerShare);
event LogSushiPerSecond(uint256 sushiPerSecond);
/// @param _reward The REWARD_TOKEN token contract address.
constructor(IERC20 _reward) {
REWARD_TOKEN = _reward;
}
/// @notice Returns the number of MCV2 pools.
function poolLength() public view returns (uint256 pools) {
pools = poolInfo.length;
}
function permit(address token, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external {
IERC20Permit(token).permit(msg.sender, address(this), amount, deadline, v, r, s);
}
/// @notice Add a new LP to the pool. Can only be called by the owner.
/// DO NOT add the same LP token more than once. Rewards will be messed up if you do.
/// @param allocPoint AP of the new pool.
/// @param _lpToken Address of the LP ERC-20 token.
/// @param _rewarder Address of the rewarder delegate.
function add(uint256 allocPoint, IERC20 _lpToken, IRewarder _rewarder) public onlyOwner {
totalAllocPoint = totalAllocPoint + allocPoint;
lpToken.push(_lpToken);
rewarder.push(_rewarder);
poolInfo.push(PoolInfo({
allocPoint: uint64(allocPoint),
lastRewardTime: uint64(block.timestamp),
accSushiPerShare: 0
}));
emit LogPoolAddition(lpToken.length - 1, allocPoint, _lpToken, _rewarder);
}
/// @notice Update the given pool's REWARD_TOKEN allocation point and `IRewarder` contract. Can only be called by the owner.
/// @param _pid The index of the pool. See `poolInfo`.
/// @param _allocPoint New AP of the pool.
/// @param _rewarder Address of the rewarder delegate.
/// @param overwrite True if _rewarder should be `set`. Otherwise `_rewarder` is ignored.
function set(uint256 _pid, uint256 _allocPoint, IRewarder _rewarder, bool overwrite) public onlyOwner {
totalAllocPoint = totalAllocPoint - (poolInfo[_pid].allocPoint) + (_allocPoint);
poolInfo[_pid].allocPoint = uint64(_allocPoint);
if (overwrite) { rewarder[_pid] = _rewarder; }
emit LogSetPool(_pid, _allocPoint, overwrite ? _rewarder : rewarder[_pid], overwrite);
}
/// @notice Sets the reward per second to be distributed. Can only be called by the owner.
/// @param _rewardPerSecond The amount of Sushi to be distributed per second.
function setRewardPerSecond(uint256 _rewardPerSecond) public onlyOwner {
rewardPerSecond = _rewardPerSecond;
emit LogSushiPerSecond(_rewardPerSecond);
}
/// @notice Set the `migrator` contract. Can only be called by the owner.
/// @param _migrator The contract address to set.
function setMigrator(IMigratorChef _migrator) public onlyOwner {
migrator = _migrator;
}
/// @notice Migrate LP token to another LP contract through the `migrator` contract.
/// @param _pid The index of the pool. See `poolInfo`.
function migrate(uint256 _pid) public {
require(address(migrator) != address(0), "MasterChefV2: no migrator set");
IERC20 _lpToken = lpToken[_pid];
uint256 bal = _lpToken.balanceOf(address(this));
_lpToken.approve(address(migrator), bal);
IERC20 newLpToken = migrator.migrate(_lpToken);
require(bal == newLpToken.balanceOf(address(this)), "MasterChefV2: migrated balance must match");
lpToken[_pid] = newLpToken;
}
/// @notice View function to see pending REWARD_TOKEN on frontend.
/// @param _pid The index of the pool. See `poolInfo`.
/// @param _user Address of user.
/// @return pending REWARD_TOKEN reward for a given user.
function pendingSushi(uint256 _pid, address _user) external view returns (uint256 pending) {
PoolInfo memory pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accSushiPerShare = pool.accSushiPerShare;
uint256 lpSupply = lpToken[_pid].balanceOf(address(this));
if (block.timestamp > pool.lastRewardTime && lpSupply != 0) {
uint256 time = block.timestamp - (pool.lastRewardTime);
uint256 sushiReward = time * (rewardPerSecond) * (pool.allocPoint) / totalAllocPoint;
accSushiPerShare = accSushiPerShare + (sushiReward * (ACC_REWARD_TOKEN_PRECISION) / lpSupply);
}
pending = uint256(int256(user.amount * (accSushiPerShare) / ACC_REWARD_TOKEN_PRECISION) - (user.rewardDebt));
}
/// @notice Update reward variables for all pools. Be careful of gas spending!
/// @param pids Pool IDs of all to be updated. Make sure to update all active pools.
function massUpdatePools(uint256[] calldata pids) external {
uint256 len = pids.length;
for (uint256 i = 0; i < len; ++i) {
updatePool(pids[i]);
}
}
/// @notice Update reward variables of the given pool.
/// @param pid The index of the pool. See `poolInfo`.
/// @return pool Returns the pool that was updated.
function updatePool(uint256 pid) public returns (PoolInfo memory pool) {
pool = poolInfo[pid];
if (block.timestamp > pool.lastRewardTime) {
uint256 lpSupply = lpToken[pid].balanceOf(address(this));
if (lpSupply > 0) {
uint256 time = block.timestamp - (pool.lastRewardTime);
uint256 sushiReward = time * (rewardPerSecond) * (pool.allocPoint) / totalAllocPoint;
pool.accSushiPerShare = pool.accSushiPerShare + (uint128(sushiReward * (ACC_REWARD_TOKEN_PRECISION) / lpSupply));
}
pool.lastRewardTime = uint64(block.timestamp);
poolInfo[pid] = pool;
emit LogUpdatePool(pid, pool.lastRewardTime, lpSupply, pool.accSushiPerShare);
}
}
/// @notice Deposit LP tokens to MCV2 for REWARD_TOKEN allocation.
/// @param pid The index of the pool. See `poolInfo`.
/// @param amount LP token amount to deposit.
/// @param to The receiver of `amount` deposit benefit.
function deposit(uint256 pid, uint256 amount, address to) public {
PoolInfo memory pool = updatePool(pid);
UserInfo storage user = userInfo[pid][to];
// Effects
user.amount = user.amount + (amount);
user.rewardDebt = user.rewardDebt + (int256(amount * (pool.accSushiPerShare) / ACC_REWARD_TOKEN_PRECISION));
// Interactions
IRewarder _rewarder = rewarder[pid];
if (address(_rewarder) != address(0)) {
_rewarder.onSushiReward(pid, to, to, 0, user.amount);
}
lpToken[pid].safeTransferFrom(msg.sender, address(this), amount);
emit Deposit(msg.sender, pid, amount, to);
}
/// @notice Withdraw LP tokens from MCV2.
/// @param pid The index of the pool. See `poolInfo`.
/// @param amount LP token amount to withdraw.
/// @param to Receiver of the LP tokens.
function withdraw(uint256 pid, uint256 amount, address to) public {
PoolInfo memory pool = updatePool(pid);
UserInfo storage user = userInfo[pid][msg.sender];
// Effects
user.rewardDebt = user.rewardDebt - (int256(amount * (pool.accSushiPerShare) / ACC_REWARD_TOKEN_PRECISION));
user.amount = user.amount - (amount);
// Interactions
IRewarder _rewarder = rewarder[pid];
if (address(_rewarder) != address(0)) {
_rewarder.onSushiReward(pid, msg.sender, to, 0, user.amount);
}
lpToken[pid].safeTransfer(to, amount);
emit Withdraw(msg.sender, pid, amount, to);
}
/// @notice Harvest proceeds for transaction sender to `to`.
/// @param pid The index of the pool. See `poolInfo`.
/// @param to Receiver of REWARD_TOKEN rewards.
function harvest(uint256 pid, address to) public {
PoolInfo memory pool = updatePool(pid);
UserInfo storage user = userInfo[pid][msg.sender];
int256 accumulatedSushi = int256(user.amount * (pool.accSushiPerShare) / ACC_REWARD_TOKEN_PRECISION);
uint256 _pendingSushi = uint256(accumulatedSushi - (user.rewardDebt));
// Effects
user.rewardDebt = accumulatedSushi;
// Interactions
if (_pendingSushi != 0) {
REWARD_TOKEN.safeTransfer(to, _pendingSushi);
}
IRewarder _rewarder = rewarder[pid];
if (address(_rewarder) != address(0)) {
_rewarder.onSushiReward( pid, msg.sender, to, _pendingSushi, user.amount);
}
emit Harvest(msg.sender, pid, _pendingSushi);
}
/// @notice Withdraw LP tokens from MCV2 and harvest proceeds for transaction sender to `to`.
/// @param pid The index of the pool. See `poolInfo`.
/// @param amount LP token amount to withdraw.
/// @param to Receiver of the LP tokens and REWARD_TOKEN rewards.
function withdrawAndHarvest(uint256 pid, uint256 amount, address to) public {
PoolInfo memory pool = updatePool(pid);
UserInfo storage user = userInfo[pid][msg.sender];
int256 accumulatedSushi = int256(user.amount * (pool.accSushiPerShare) / ACC_REWARD_TOKEN_PRECISION);
uint256 _pendingSushi = uint256(accumulatedSushi - (user.rewardDebt));
// Effects
user.rewardDebt = accumulatedSushi - (int256(amount * (pool.accSushiPerShare) / ACC_REWARD_TOKEN_PRECISION));
user.amount = user.amount - (amount);
// Interactions
REWARD_TOKEN.safeTransfer(to, _pendingSushi);
IRewarder _rewarder = rewarder[pid];
if (address(_rewarder) != address(0)) {
_rewarder.onSushiReward(pid, msg.sender, to, _pendingSushi, user.amount);
}
lpToken[pid].safeTransfer(to, amount);
emit Withdraw(msg.sender, pid, amount, to);
emit Harvest(msg.sender, pid, _pendingSushi);
}
/// @notice Withdraw without caring about rewards. EMERGENCY ONLY.
/// @param pid The index of the pool. See `poolInfo`.
/// @param to Receiver of the LP tokens.
function emergencyWithdraw(uint256 pid, address to) public {
UserInfo storage user = userInfo[pid][msg.sender];
uint256 amount = user.amount;
user.amount = 0;
user.rewardDebt = 0;
IRewarder _rewarder = rewarder[pid];
if (address(_rewarder) != address(0)) {
_rewarder.onSushiReward(pid, msg.sender, to, 0, 0);
}
// Note: transfer can fail or succeed if `amount` is zero.
lpToken[pid].safeTransfer(to, amount);
emit EmergencyWithdraw(msg.sender, pid, amount, to);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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
// OpenZeppelin Contracts (last updated v4.9.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 (last updated v4.9.0) (token/ERC20/extensions/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.9.0) (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; // EIP-2612 is Final as of 2022-11-01. This file is deprecated. import "./IERC20Permit.sol";
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/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;
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
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));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
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");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
* 0 before setting it to a non-zero value.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
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");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// 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 cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or 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 {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// 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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Multicall.sol)
pragma solidity ^0.8.0;
import "./Address.sol";
/**
* @dev Provides a function to batch together multiple calls in a single external call.
*
* _Available since v4.1._
*/
abstract contract Multicall {
/**
* @dev Receives and executes a batch of function calls on this contract.
* @custom:oz-upgrades-unsafe-allow-reachable delegatecall
*/
function multicall(bytes[] calldata data) external virtual returns (bytes[] memory results) {
results = new bytes[](data.length);
for (uint256 i = 0; i < data.length; i++) {
results[i] = Address.functionDelegateCall(address(this), data[i]);
}
return results;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;
// IERC20
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IRewarder {
function onSushiReward(uint256 pid, address user, address recipient, uint256 sushiAmount, uint256 newLpAmount) external;
function pendingTokens(uint256 pid, address user, uint256 sushiAmount) external view returns (IERC20[] memory, uint256[] memory);
}{
"libraries": {},
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_reward","type":"address"}],"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"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"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"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"EmergencyWithdraw","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":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"lpToken","type":"address"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"}],"name":"LogPoolAddition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"},{"indexed":false,"internalType":"bool","name":"overwrite","type":"bool"}],"name":"LogSetPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"sushiPerSecond","type":"uint256"}],"name":"LogSushiPerSecond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"lastRewardTime","type":"uint64"},{"indexed":false,"internalType":"uint256","name":"lpSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accSushiPerShare","type":"uint256"}],"name":"LogUpdatePool","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"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"REWARD_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"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":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","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":"pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint128","name":"accSushiPerShare","type":"uint128"},{"internalType":"uint64","name":"lastRewardTime","type":"uint64"},{"internalType":"uint64","name":"allocPoint","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"pools","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewarder","outputs":[{"internalType":"contract IRewarder","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"},{"internalType":"bool","name":"overwrite","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMigratorChef","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"}],"name":"setRewardPerSecond","outputs":[],"stateMutability":"nonpayable","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":[{"components":[{"internalType":"uint128","name":"accSushiPerShare","type":"uint128"},{"internalType":"uint64","name":"lastRewardTime","type":"uint64"},{"internalType":"uint64","name":"allocPoint","type":"uint64"}],"internalType":"struct MiniChefV2.PoolInfo","name":"pool","type":"tuple"}],"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":"int256","name":"rewardDebt","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawAndHarvest","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040523480156200001157600080fd5b5060405162004277380380620042778339818101604052810190620000379190620001dc565b620000576200004b6200009260201b60201c565b6200009a60201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050506200020e565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001908262000163565b9050919050565b6000620001a48262000183565b9050919050565b620001b68162000197565b8114620001c257600080fd5b50565b600081519050620001d681620001ab565b92915050565b600060208284031215620001f557620001f46200015e565b5b60006200020584828501620001c5565b91505092915050565b60805161403f620002386000396000818161090801528181611d74015261225a015261403f6000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806378ed5d1f116100f957806393f1a40b11610097578063ac9650d811610071578063ac9650d814610493578063c346253d146104c3578063d1abb907146104f3578063f2fde38b1461050f576101a9565b806393f1a40b1461042857806399248ea714610459578063ab7de09814610477576101a9565b806388bba42f116100d357806388bba42f146103b45780638da5cb5b146103d05780638dbdbe6d146103ee5780638f10369a1461040a576101a9565b806378ed5d1f1461034a5780637ac2ff7b1461037a5780637cd07e4714610396576101a9565b806323cf31181161016657806351eb05a61161014057806351eb05a6146102d857806357a5b58c1461030857806366da581514610324578063715018a614610340576101a9565b806323cf3118146102845780632f940c70146102a0578063454b0608146102bc576101a9565b8063081e3eda146101ae5780630ad58d2f146101cc5780631526fe27146101e857806317caf6f11461021a57806318fccc7614610238578063195426ec14610254575b600080fd5b6101b661052b565b6040516101c39190612b39565b60405180910390f35b6101e660048036038101906101e19190612be8565b610538565b005b61020260048036038101906101fd9190612c3b565b6107c1565b60405161021193929190612cb6565b60405180910390f35b61022261083b565b60405161022f9190612b39565b60405180910390f35b610252600480360381019061024d9190612ced565b610841565b005b61026e60048036038101906102699190612ced565b610a94565b60405161027b9190612b39565b60405180910390f35b61029e60048036038101906102999190612d6b565b610d7b565b005b6102ba60048036038101906102b59190612ced565b610dc7565b005b6102d660048036038101906102d19190612c3b565b610ffa565b005b6102f260048036038101906102ed9190612c3b565b6113ad565b6040516102ff9190612df8565b60405180910390f35b610322600480360381019061031d9190612e78565b611746565b005b61033e60048036038101906103399190612c3b565b611793565b005b6103486117dc565b005b610364600480360381019061035f9190612c3b565b6117f0565b6040516103719190612f24565b60405180910390f35b610394600480360381019061038f9190612fae565b61182f565b005b61039e6118ae565b6040516103ab919061305c565b60405180910390f35b6103ce60048036038101906103c991906130ed565b6118d4565b005b6103d8611a87565b6040516103e59190613163565b60405180910390f35b61040860048036038101906104039190612be8565b611ab0565b005b610412611d3b565b60405161041f9190612b39565b60405180910390f35b610442600480360381019061043d9190612ced565b611d41565b604051610450929190613197565b60405180910390f35b610461611d72565b60405161046e9190612f24565b60405180910390f35b610491600480360381019061048c91906131fe565b611d96565b005b6104ad60048036038101906104a891906132a7565b611ffc565b6040516104ba9190613446565b60405180910390f35b6104dd60048036038101906104d89190612c3b565b612108565b6040516104ea9190613489565b60405180910390f35b61050d60048036038101906105089190612be8565b612147565b005b610529600480360381019061052491906134a4565b6124b5565b005b6000600280549050905090565b6000610543846113ad565b905060006005600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905064e8d4a5100082600001516fffffffffffffffffffffffffffffffff16856105c19190613500565b6105cb9190613589565b81600101546105da91906135ba565b81600101819055508381600001546105f291906135fd565b81600001819055506000600486815481106106105761060f613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146106ea578073ffffffffffffffffffffffffffffffffffffffff16638bf63742873387600087600001546040518663ffffffff1660e01b81526004016106b795949392919061369b565b600060405180830381600087803b1580156106d157600080fd5b505af11580156106e5573d6000803e3d6000fd5b505050505b61075384866003898154811061070357610702613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125389092919063ffffffff16565b8373ffffffffffffffffffffffffffffffffffffffff16863373ffffffffffffffffffffffffffffffffffffffff167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132886040516107b19190612b39565b60405180910390a4505050505050565b600281815481106107d157600080fd5b906000526020600020016000915090508060000160009054906101000a90046fffffffffffffffffffffffffffffffff16908060000160109054906101000a900467ffffffffffffffff16908060000160189054906101000a900467ffffffffffffffff16905083565b60065481565b600061084c836113ad565b905060006005600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600064e8d4a5100083600001516fffffffffffffffffffffffffffffffff1683600001546108d09190613500565b6108da9190613589565b905060008260010154826108ee91906135ba565b90508183600101819055506000811461094d5761094c85827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166125389092919063ffffffff16565b5b60006004878154811061096357610962613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a3c578073ffffffffffffffffffffffffffffffffffffffff16638bf637428833898689600001546040518663ffffffff1660e01b8152600401610a099594939291906136ee565b600060405180830381600087803b158015610a2357600080fd5b505af1158015610a37573d6000803e3d6000fd5b505050505b863373ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495484604051610a839190612b39565b60405180910390a350505050505050565b60008060028481548110610aab57610aaa613631565b5b906000526020600020016040518060600160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681525050905060006005600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600082600001516fffffffffffffffffffffffffffffffff169050600060038781548110610bf557610bf4613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c589190613163565b602060405180830381865afa158015610c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c999190613756565b9050836020015167ffffffffffffffff1642118015610cb9575060008114155b15610d40576000846020015167ffffffffffffffff1642610cda91906135fd565b90506000600654866040015167ffffffffffffffff1660075484610cfe9190613500565b610d089190613500565b610d129190613589565b90508264e8d4a5100082610d269190613500565b610d309190613589565b84610d3b9190613783565b935050505b826001015464e8d4a51000838560000154610d5b9190613500565b610d659190613589565b610d6f91906135ba565b94505050505092915050565b610d836125be565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006005600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015490506000826000018190555060008260010181905550600060048581548110610e4e57610e4d613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f24578073ffffffffffffffffffffffffffffffffffffffff16638bf637428633876000806040518663ffffffff1660e01b8152600401610ef19594939291906137b7565b600060405180830381600087803b158015610f0b57600080fd5b505af1158015610f1f573d6000803e3d6000fd5b505050505b610f8d848360038881548110610f3d57610f3c613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125389092919063ffffffff16565b8373ffffffffffffffffffffffffffffffffffffffff16853373ffffffffffffffffffffffffffffffffffffffff167f2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b85604051610feb9190612b39565b60405180910390a45050505050565b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361108b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108290613867565b60405180910390fd5b6000600382815481106110a1576110a0613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111099190613163565b602060405180830381865afa158015611126573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114a9190613756565b90508173ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016111a9929190613887565b6020604051808303816000875af11580156111c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ec91906138c5565b506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ce5494bb846040518263ffffffff1660e01b815260040161124a9190612f24565b6020604051808303816000875af1158015611269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128d9190613907565b90508073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112c89190613163565b602060405180830381865afa1580156112e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113099190613756565b821461134a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611341906139a6565b60405180910390fd5b806003858154811061135f5761135e613631565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b6113b5612ad9565b600282815481106113c9576113c8613631565b5b906000526020600020016040518060600160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050806020015167ffffffffffffffff16421115611741576000600383815481106114ba576114b9613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161151d9190613163565b602060405180830381865afa15801561153a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155e9190613756565b9050600081111561161c576000826020015167ffffffffffffffff164261158591906135fd565b90506000600654846040015167ffffffffffffffff16600754846115a99190613500565b6115b39190613500565b6115bd9190613589565b90508264e8d4a51000826115d19190613500565b6115db9190613589565b84600001516115ea91906139c6565b84600001906fffffffffffffffffffffffffffffffff1690816fffffffffffffffffffffffffffffffff168152505050505b42826020019067ffffffffffffffff16908167ffffffffffffffff1681525050816002848154811061165157611650613631565b5b9060005260206000200160008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050827f0fc9545022a542541ad085d091fb09a2ab36fee366a4576ab63714ea907ad353836020015183856000015160405161173793929190613a3b565b60405180910390a2505b919050565b600082829050905060005b8181101561178d5761177b84848381811061176f5761176e613631565b5b905060200201356113ad565b508061178690613a72565b9050611751565b50505050565b61179b6125be565b806007819055507fc6ce5eff3291fb2c1517b943daa5067ea76c83816bbf674307fbc7fea3b311d0816040516117d19190612b39565b60405180910390a150565b6117e46125be565b6117ee600061263c565b565b6003818154811061180057600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b8573ffffffffffffffffffffffffffffffffffffffff1663d505accf333088888888886040518863ffffffff1660e01b81526004016118749796959493929190613ad8565b600060405180830381600087803b15801561188e57600080fd5b505af11580156118a2573d6000803e3d6000fd5b50505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118dc6125be565b82600285815481106118f1576118f0613631565b5b9060005260206000200160000160189054906101000a900467ffffffffffffffff1667ffffffffffffffff1660065461192a91906135fd565b6119349190613783565b600681905550826002858154811061194f5761194e613631565b5b9060005260206000200160000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080156119e657816004858154811061199d5761199c613631565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b80611a2f57600484815481106119ff576119fe613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611a31565b815b73ffffffffffffffffffffffffffffffffffffffff16847f95895a6ab1df54420d241b55243258a33e61b2194db66c1179ec521aae8e18658584604051611a79929190613b56565b60405180910390a350505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611abb846113ad565b905060006005600086815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050838160000154611b219190613783565b816000018190555064e8d4a5100082600001516fffffffffffffffffffffffffffffffff1685611b519190613500565b611b5b9190613589565b8160010154611b6a9190613b7f565b8160010181905550600060048681548110611b8857611b87613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611c62578073ffffffffffffffffffffffffffffffffffffffff16638bf63742878687600087600001546040518663ffffffff1660e01b8152600401611c2f95949392919061369b565b600060405180830381600087803b158015611c4957600080fd5b505af1158015611c5d573d6000803e3d6000fd5b505050505b611ccd33308760038a81548110611c7c57611c7b613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612700909392919063ffffffff16565b8373ffffffffffffffffffffffffffffffffffffffff16863373ffffffffffffffffffffffffffffffffffffffff167f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b4788604051611d2b9190612b39565b60405180910390a4505050505050565b60075481565b6005602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b7f000000000000000000000000000000000000000000000000000000000000000081565b611d9e6125be565b82600654611dac9190613783565b6006819055506003829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506004819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506002604051806060016040528060006fffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff1681526020018567ffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff166001600380549050611fc091906135fd565b7f81ee0f8c5c46e2cb41984886f77a84181724abb86c32a5f6de539b07509d45e586604051611fef9190612b39565b60405180910390a4505050565b60608282905067ffffffffffffffff81111561201b5761201a613bc3565b5b60405190808252806020026020018201604052801561204e57816020015b60608152602001906001900390816120395790505b50905060005b83839050811015612101576120d03085858481811061207657612075613631565b5b90506020028101906120889190613c01565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612789565b8282815181106120e3576120e2613631565b5b602002602001018190525080806120f990613a72565b915050612054565b5092915050565b6004818154811061211857600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000612152846113ad565b905060006005600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600064e8d4a5100083600001516fffffffffffffffffffffffffffffffff1683600001546121d69190613500565b6121e09190613589565b905060008260010154826121f491906135ba565b905064e8d4a5100084600001516fffffffffffffffffffffffffffffffff168761221e9190613500565b6122289190613589565b8261223391906135ba565b836001018190555085836000015461224b91906135fd565b836000018190555061229e85827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166125389092919063ffffffff16565b6000600488815481106122b4576122b3613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461238d578073ffffffffffffffffffffffffffffffffffffffff16638bf637428933898689600001546040518663ffffffff1660e01b815260040161235a9594939291906136ee565b600060405180830381600087803b15801561237457600080fd5b505af1158015612388573d6000803e3d6000fd5b505050505b6123f6868860038b815481106123a6576123a5613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125389092919063ffffffff16565b8573ffffffffffffffffffffffffffffffffffffffff16883373ffffffffffffffffffffffffffffffffffffffff167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21328a6040516124549190612b39565b60405180910390a4873373ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954846040516124a39190612b39565b60405180910390a35050505050505050565b6124bd6125be565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361252c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252390613cd6565b60405180910390fd5b6125358161263c565b50565b6125b98363a9059cbb60e01b8484604051602401612557929190613887565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506127b6565b505050565b6125c661287e565b73ffffffffffffffffffffffffffffffffffffffff166125e4611a87565b73ffffffffffffffffffffffffffffffffffffffff161461263a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263190613d42565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612783846323b872dd60e01b85858560405160240161272193929190613d62565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506127b6565b50505050565b60606127ae8383604051806060016040528060278152602001613fe360279139612886565b905092915050565b6000612818826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661290c9092919063ffffffff16565b905060008151148061283a57508080602001905181019061283991906138c5565b5b612879576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287090613e0b565b60405180910390fd5b505050565b600033905090565b60606000808573ffffffffffffffffffffffffffffffffffffffff16856040516128b09190613e67565b600060405180830381855af49150503d80600081146128eb576040519150601f19603f3d011682016040523d82523d6000602084013e6128f0565b606091505b509150915061290186838387612924565b925050509392505050565b606061291b8484600085612999565b90509392505050565b6060831561298657600083510361297e5761293e85612a66565b61297d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297490613eca565b60405180910390fd5b5b829050612991565b6129908383612a89565b5b949350505050565b6060824710156129de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d590613f5c565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612a079190613e67565b60006040518083038185875af1925050503d8060008114612a44576040519150601f19603f3d011682016040523d82523d6000602084013e612a49565b606091505b5091509150612a5a87838387612924565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115612a9c5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad09190613fc0565b60405180910390fd5b604051806060016040528060006fffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000819050919050565b612b3381612b20565b82525050565b6000602082019050612b4e6000830184612b2a565b92915050565b600080fd5b600080fd5b612b6781612b20565b8114612b7257600080fd5b50565b600081359050612b8481612b5e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612bb582612b8a565b9050919050565b612bc581612baa565b8114612bd057600080fd5b50565b600081359050612be281612bbc565b92915050565b600080600060608486031215612c0157612c00612b54565b5b6000612c0f86828701612b75565b9350506020612c2086828701612b75565b9250506040612c3186828701612bd3565b9150509250925092565b600060208284031215612c5157612c50612b54565b5b6000612c5f84828501612b75565b91505092915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b612c8d81612c68565b82525050565b600067ffffffffffffffff82169050919050565b612cb081612c93565b82525050565b6000606082019050612ccb6000830186612c84565b612cd86020830185612ca7565b612ce56040830184612ca7565b949350505050565b60008060408385031215612d0457612d03612b54565b5b6000612d1285828601612b75565b9250506020612d2385828601612bd3565b9150509250929050565b6000612d3882612baa565b9050919050565b612d4881612d2d565b8114612d5357600080fd5b50565b600081359050612d6581612d3f565b92915050565b600060208284031215612d8157612d80612b54565b5b6000612d8f84828501612d56565b91505092915050565b612da181612c68565b82525050565b612db081612c93565b82525050565b606082016000820151612dcc6000850182612d98565b506020820151612ddf6020850182612da7565b506040820151612df26040850182612da7565b50505050565b6000606082019050612e0d6000830184612db6565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612e3857612e37612e13565b5b8235905067ffffffffffffffff811115612e5557612e54612e18565b5b602083019150836020820283011115612e7157612e70612e1d565b5b9250929050565b60008060208385031215612e8f57612e8e612b54565b5b600083013567ffffffffffffffff811115612ead57612eac612b59565b5b612eb985828601612e22565b92509250509250929050565b6000819050919050565b6000612eea612ee5612ee084612b8a565b612ec5565b612b8a565b9050919050565b6000612efc82612ecf565b9050919050565b6000612f0e82612ef1565b9050919050565b612f1e81612f03565b82525050565b6000602082019050612f396000830184612f15565b92915050565b600060ff82169050919050565b612f5581612f3f565b8114612f6057600080fd5b50565b600081359050612f7281612f4c565b92915050565b6000819050919050565b612f8b81612f78565b8114612f9657600080fd5b50565b600081359050612fa881612f82565b92915050565b60008060008060008060c08789031215612fcb57612fca612b54565b5b6000612fd989828a01612bd3565b9650506020612fea89828a01612b75565b9550506040612ffb89828a01612b75565b945050606061300c89828a01612f63565b935050608061301d89828a01612f99565b92505060a061302e89828a01612f99565b9150509295509295509295565b600061304682612ef1565b9050919050565b6130568161303b565b82525050565b6000602082019050613071600083018461304d565b92915050565b600061308282612baa565b9050919050565b61309281613077565b811461309d57600080fd5b50565b6000813590506130af81613089565b92915050565b60008115159050919050565b6130ca816130b5565b81146130d557600080fd5b50565b6000813590506130e7816130c1565b92915050565b6000806000806080858703121561310757613106612b54565b5b600061311587828801612b75565b945050602061312687828801612b75565b9350506040613137878288016130a0565b9250506060613148878288016130d8565b91505092959194509250565b61315d81612baa565b82525050565b60006020820190506131786000830184613154565b92915050565b6000819050919050565b6131918161317e565b82525050565b60006040820190506131ac6000830185612b2a565b6131b96020830184613188565b9392505050565b60006131cb82612baa565b9050919050565b6131db816131c0565b81146131e657600080fd5b50565b6000813590506131f8816131d2565b92915050565b60008060006060848603121561321757613216612b54565b5b600061322586828701612b75565b9350506020613236868287016131e9565b9250506040613247868287016130a0565b9150509250925092565b60008083601f84011261326757613266612e13565b5b8235905067ffffffffffffffff81111561328457613283612e18565b5b6020830191508360208202830111156132a05761329f612e1d565b5b9250929050565b600080602083850312156132be576132bd612b54565b5b600083013567ffffffffffffffff8111156132dc576132db612b59565b5b6132e885828601613251565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561335a57808201518184015260208101905061333f565b60008484015250505050565b6000601f19601f8301169050919050565b600061338282613320565b61338c818561332b565b935061339c81856020860161333c565b6133a581613366565b840191505092915050565b60006133bc8383613377565b905092915050565b6000602082019050919050565b60006133dc826132f4565b6133e681856132ff565b9350836020820285016133f885613310565b8060005b85811015613434578484038952815161341585826133b0565b9450613420836133c4565b925060208a019950506001810190506133fc565b50829750879550505050505092915050565b6000602082019050818103600083015261346081846133d1565b905092915050565b600061347382612ef1565b9050919050565b61348381613468565b82525050565b600060208201905061349e600083018461347a565b92915050565b6000602082840312156134ba576134b9612b54565b5b60006134c884828501612bd3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061350b82612b20565b915061351683612b20565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561354f5761354e6134d1565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061359482612b20565b915061359f83612b20565b9250826135af576135ae61355a565b5b828204905092915050565b60006135c58261317e565b91506135d08361317e565b92508282039050818112600084121682821360008512151617156135f7576135f66134d1565b5b92915050565b600061360882612b20565b915061361383612b20565b925082820390508181111561362b5761362a6134d1565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b600061368561368061367b84613660565b612ec5565b612b20565b9050919050565b6136958161366a565b82525050565b600060a0820190506136b06000830188612b2a565b6136bd6020830187613154565b6136ca6040830186613154565b6136d7606083018561368c565b6136e46080830184612b2a565b9695505050505050565b600060a0820190506137036000830188612b2a565b6137106020830187613154565b61371d6040830186613154565b61372a6060830185612b2a565b6137376080830184612b2a565b9695505050505050565b60008151905061375081612b5e565b92915050565b60006020828403121561376c5761376b612b54565b5b600061377a84828501613741565b91505092915050565b600061378e82612b20565b915061379983612b20565b92508282019050808211156137b1576137b06134d1565b5b92915050565b600060a0820190506137cc6000830188612b2a565b6137d96020830187613154565b6137e66040830186613154565b6137f3606083018561368c565b613800608083018461368c565b9695505050505050565b600082825260208201905092915050565b7f4d61737465724368656656323a206e6f206d69677261746f7220736574000000600082015250565b6000613851601d8361380a565b915061385c8261381b565b602082019050919050565b6000602082019050818103600083015261388081613844565b9050919050565b600060408201905061389c6000830185613154565b6138a96020830184612b2a565b9392505050565b6000815190506138bf816130c1565b92915050565b6000602082840312156138db576138da612b54565b5b60006138e9848285016138b0565b91505092915050565b600081519050613901816131d2565b92915050565b60006020828403121561391d5761391c612b54565b5b600061392b848285016138f2565b91505092915050565b7f4d61737465724368656656323a206d696772617465642062616c616e6365206d60008201527f757374206d617463680000000000000000000000000000000000000000000000602082015250565b600061399060298361380a565b915061399b82613934565b604082019050919050565b600060208201905081810360008301526139bf81613983565b9050919050565b60006139d182612c68565b91506139dc83612c68565b925082820190506fffffffffffffffffffffffffffffffff811115613a0457613a036134d1565b5b92915050565b6000613a25613a20613a1b84612c68565b612ec5565b612b20565b9050919050565b613a3581613a0a565b82525050565b6000606082019050613a506000830186612ca7565b613a5d6020830185612b2a565b613a6a6040830184613a2c565b949350505050565b6000613a7d82612b20565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613aaf57613aae6134d1565b5b600182019050919050565b613ac381612f3f565b82525050565b613ad281612f78565b82525050565b600060e082019050613aed600083018a613154565b613afa6020830189613154565b613b076040830188612b2a565b613b146060830187612b2a565b613b216080830186613aba565b613b2e60a0830185613ac9565b613b3b60c0830184613ac9565b98975050505050505050565b613b50816130b5565b82525050565b6000604082019050613b6b6000830185612b2a565b613b786020830184613b47565b9392505050565b6000613b8a8261317e565b9150613b958361317e565b925082820190508281121560008312168382126000841215161715613bbd57613bbc6134d1565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112613c1e57613c1d613bf2565b5b80840192508235915067ffffffffffffffff821115613c4057613c3f613bf7565b5b602083019250600182023603831315613c5c57613c5b613bfc565b5b509250929050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613cc060268361380a565b9150613ccb82613c64565b604082019050919050565b60006020820190508181036000830152613cef81613cb3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d2c60208361380a565b9150613d3782613cf6565b602082019050919050565b60006020820190508181036000830152613d5b81613d1f565b9050919050565b6000606082019050613d776000830186613154565b613d846020830185613154565b613d916040830184612b2a565b949350505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613df5602a8361380a565b9150613e0082613d99565b604082019050919050565b60006020820190508181036000830152613e2481613de8565b9050919050565b600081905092915050565b6000613e4182613320565b613e4b8185613e2b565b9350613e5b81856020860161333c565b80840191505092915050565b6000613e738284613e36565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613eb4601d8361380a565b9150613ebf82613e7e565b602082019050919050565b60006020820190508181036000830152613ee381613ea7565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613f4660268361380a565b9150613f5182613eea565b604082019050919050565b60006020820190508181036000830152613f7581613f39565b9050919050565b600081519050919050565b6000613f9282613f7c565b613f9c818561380a565b9350613fac81856020860161333c565b613fb581613366565b840191505092915050565b60006020820190508181036000830152613fda8184613f87565b90509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220784af9f2697d9bbe3f4ecc0ac6e3cc2c5cb6546fd04824322b35f5c70d50e59664736f6c6343000810003300000000000000000000000027f3d47f71da7eca2c5f56d1a28ae6b5c5f4ab23
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806378ed5d1f116100f957806393f1a40b11610097578063ac9650d811610071578063ac9650d814610493578063c346253d146104c3578063d1abb907146104f3578063f2fde38b1461050f576101a9565b806393f1a40b1461042857806399248ea714610459578063ab7de09814610477576101a9565b806388bba42f116100d357806388bba42f146103b45780638da5cb5b146103d05780638dbdbe6d146103ee5780638f10369a1461040a576101a9565b806378ed5d1f1461034a5780637ac2ff7b1461037a5780637cd07e4714610396576101a9565b806323cf31181161016657806351eb05a61161014057806351eb05a6146102d857806357a5b58c1461030857806366da581514610324578063715018a614610340576101a9565b806323cf3118146102845780632f940c70146102a0578063454b0608146102bc576101a9565b8063081e3eda146101ae5780630ad58d2f146101cc5780631526fe27146101e857806317caf6f11461021a57806318fccc7614610238578063195426ec14610254575b600080fd5b6101b661052b565b6040516101c39190612b39565b60405180910390f35b6101e660048036038101906101e19190612be8565b610538565b005b61020260048036038101906101fd9190612c3b565b6107c1565b60405161021193929190612cb6565b60405180910390f35b61022261083b565b60405161022f9190612b39565b60405180910390f35b610252600480360381019061024d9190612ced565b610841565b005b61026e60048036038101906102699190612ced565b610a94565b60405161027b9190612b39565b60405180910390f35b61029e60048036038101906102999190612d6b565b610d7b565b005b6102ba60048036038101906102b59190612ced565b610dc7565b005b6102d660048036038101906102d19190612c3b565b610ffa565b005b6102f260048036038101906102ed9190612c3b565b6113ad565b6040516102ff9190612df8565b60405180910390f35b610322600480360381019061031d9190612e78565b611746565b005b61033e60048036038101906103399190612c3b565b611793565b005b6103486117dc565b005b610364600480360381019061035f9190612c3b565b6117f0565b6040516103719190612f24565b60405180910390f35b610394600480360381019061038f9190612fae565b61182f565b005b61039e6118ae565b6040516103ab919061305c565b60405180910390f35b6103ce60048036038101906103c991906130ed565b6118d4565b005b6103d8611a87565b6040516103e59190613163565b60405180910390f35b61040860048036038101906104039190612be8565b611ab0565b005b610412611d3b565b60405161041f9190612b39565b60405180910390f35b610442600480360381019061043d9190612ced565b611d41565b604051610450929190613197565b60405180910390f35b610461611d72565b60405161046e9190612f24565b60405180910390f35b610491600480360381019061048c91906131fe565b611d96565b005b6104ad60048036038101906104a891906132a7565b611ffc565b6040516104ba9190613446565b60405180910390f35b6104dd60048036038101906104d89190612c3b565b612108565b6040516104ea9190613489565b60405180910390f35b61050d60048036038101906105089190612be8565b612147565b005b610529600480360381019061052491906134a4565b6124b5565b005b6000600280549050905090565b6000610543846113ad565b905060006005600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905064e8d4a5100082600001516fffffffffffffffffffffffffffffffff16856105c19190613500565b6105cb9190613589565b81600101546105da91906135ba565b81600101819055508381600001546105f291906135fd565b81600001819055506000600486815481106106105761060f613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146106ea578073ffffffffffffffffffffffffffffffffffffffff16638bf63742873387600087600001546040518663ffffffff1660e01b81526004016106b795949392919061369b565b600060405180830381600087803b1580156106d157600080fd5b505af11580156106e5573d6000803e3d6000fd5b505050505b61075384866003898154811061070357610702613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125389092919063ffffffff16565b8373ffffffffffffffffffffffffffffffffffffffff16863373ffffffffffffffffffffffffffffffffffffffff167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132886040516107b19190612b39565b60405180910390a4505050505050565b600281815481106107d157600080fd5b906000526020600020016000915090508060000160009054906101000a90046fffffffffffffffffffffffffffffffff16908060000160109054906101000a900467ffffffffffffffff16908060000160189054906101000a900467ffffffffffffffff16905083565b60065481565b600061084c836113ad565b905060006005600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600064e8d4a5100083600001516fffffffffffffffffffffffffffffffff1683600001546108d09190613500565b6108da9190613589565b905060008260010154826108ee91906135ba565b90508183600101819055506000811461094d5761094c85827f00000000000000000000000027f3d47f71da7eca2c5f56d1a28ae6b5c5f4ab2373ffffffffffffffffffffffffffffffffffffffff166125389092919063ffffffff16565b5b60006004878154811061096357610962613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a3c578073ffffffffffffffffffffffffffffffffffffffff16638bf637428833898689600001546040518663ffffffff1660e01b8152600401610a099594939291906136ee565b600060405180830381600087803b158015610a2357600080fd5b505af1158015610a37573d6000803e3d6000fd5b505050505b863373ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495484604051610a839190612b39565b60405180910390a350505050505050565b60008060028481548110610aab57610aaa613631565b5b906000526020600020016040518060600160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681525050905060006005600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600082600001516fffffffffffffffffffffffffffffffff169050600060038781548110610bf557610bf4613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c589190613163565b602060405180830381865afa158015610c75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c999190613756565b9050836020015167ffffffffffffffff1642118015610cb9575060008114155b15610d40576000846020015167ffffffffffffffff1642610cda91906135fd565b90506000600654866040015167ffffffffffffffff1660075484610cfe9190613500565b610d089190613500565b610d129190613589565b90508264e8d4a5100082610d269190613500565b610d309190613589565b84610d3b9190613783565b935050505b826001015464e8d4a51000838560000154610d5b9190613500565b610d659190613589565b610d6f91906135ba565b94505050505092915050565b610d836125be565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006005600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015490506000826000018190555060008260010181905550600060048581548110610e4e57610e4d613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f24578073ffffffffffffffffffffffffffffffffffffffff16638bf637428633876000806040518663ffffffff1660e01b8152600401610ef19594939291906137b7565b600060405180830381600087803b158015610f0b57600080fd5b505af1158015610f1f573d6000803e3d6000fd5b505050505b610f8d848360038881548110610f3d57610f3c613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125389092919063ffffffff16565b8373ffffffffffffffffffffffffffffffffffffffff16853373ffffffffffffffffffffffffffffffffffffffff167f2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b85604051610feb9190612b39565b60405180910390a45050505050565b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361108b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108290613867565b60405180910390fd5b6000600382815481106110a1576110a0613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111099190613163565b602060405180830381865afa158015611126573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114a9190613756565b90508173ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016111a9929190613887565b6020604051808303816000875af11580156111c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ec91906138c5565b506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ce5494bb846040518263ffffffff1660e01b815260040161124a9190612f24565b6020604051808303816000875af1158015611269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128d9190613907565b90508073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112c89190613163565b602060405180830381865afa1580156112e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113099190613756565b821461134a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611341906139a6565b60405180910390fd5b806003858154811061135f5761135e613631565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b6113b5612ad9565b600282815481106113c9576113c8613631565b5b906000526020600020016040518060600160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016000820160189054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050806020015167ffffffffffffffff16421115611741576000600383815481106114ba576114b9613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161151d9190613163565b602060405180830381865afa15801561153a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155e9190613756565b9050600081111561161c576000826020015167ffffffffffffffff164261158591906135fd565b90506000600654846040015167ffffffffffffffff16600754846115a99190613500565b6115b39190613500565b6115bd9190613589565b90508264e8d4a51000826115d19190613500565b6115db9190613589565b84600001516115ea91906139c6565b84600001906fffffffffffffffffffffffffffffffff1690816fffffffffffffffffffffffffffffffff168152505050505b42826020019067ffffffffffffffff16908167ffffffffffffffff1681525050816002848154811061165157611650613631565b5b9060005260206000200160008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050827f0fc9545022a542541ad085d091fb09a2ab36fee366a4576ab63714ea907ad353836020015183856000015160405161173793929190613a3b565b60405180910390a2505b919050565b600082829050905060005b8181101561178d5761177b84848381811061176f5761176e613631565b5b905060200201356113ad565b508061178690613a72565b9050611751565b50505050565b61179b6125be565b806007819055507fc6ce5eff3291fb2c1517b943daa5067ea76c83816bbf674307fbc7fea3b311d0816040516117d19190612b39565b60405180910390a150565b6117e46125be565b6117ee600061263c565b565b6003818154811061180057600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b8573ffffffffffffffffffffffffffffffffffffffff1663d505accf333088888888886040518863ffffffff1660e01b81526004016118749796959493929190613ad8565b600060405180830381600087803b15801561188e57600080fd5b505af11580156118a2573d6000803e3d6000fd5b50505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118dc6125be565b82600285815481106118f1576118f0613631565b5b9060005260206000200160000160189054906101000a900467ffffffffffffffff1667ffffffffffffffff1660065461192a91906135fd565b6119349190613783565b600681905550826002858154811061194f5761194e613631565b5b9060005260206000200160000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080156119e657816004858154811061199d5761199c613631565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b80611a2f57600484815481106119ff576119fe613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611a31565b815b73ffffffffffffffffffffffffffffffffffffffff16847f95895a6ab1df54420d241b55243258a33e61b2194db66c1179ec521aae8e18658584604051611a79929190613b56565b60405180910390a350505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611abb846113ad565b905060006005600086815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050838160000154611b219190613783565b816000018190555064e8d4a5100082600001516fffffffffffffffffffffffffffffffff1685611b519190613500565b611b5b9190613589565b8160010154611b6a9190613b7f565b8160010181905550600060048681548110611b8857611b87613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611c62578073ffffffffffffffffffffffffffffffffffffffff16638bf63742878687600087600001546040518663ffffffff1660e01b8152600401611c2f95949392919061369b565b600060405180830381600087803b158015611c4957600080fd5b505af1158015611c5d573d6000803e3d6000fd5b505050505b611ccd33308760038a81548110611c7c57611c7b613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612700909392919063ffffffff16565b8373ffffffffffffffffffffffffffffffffffffffff16863373ffffffffffffffffffffffffffffffffffffffff167f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b4788604051611d2b9190612b39565b60405180910390a4505050505050565b60075481565b6005602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b7f00000000000000000000000027f3d47f71da7eca2c5f56d1a28ae6b5c5f4ab2381565b611d9e6125be565b82600654611dac9190613783565b6006819055506003829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506004819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506002604051806060016040528060006fffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff1681526020018567ffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff166001600380549050611fc091906135fd565b7f81ee0f8c5c46e2cb41984886f77a84181724abb86c32a5f6de539b07509d45e586604051611fef9190612b39565b60405180910390a4505050565b60608282905067ffffffffffffffff81111561201b5761201a613bc3565b5b60405190808252806020026020018201604052801561204e57816020015b60608152602001906001900390816120395790505b50905060005b83839050811015612101576120d03085858481811061207657612075613631565b5b90506020028101906120889190613c01565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612789565b8282815181106120e3576120e2613631565b5b602002602001018190525080806120f990613a72565b915050612054565b5092915050565b6004818154811061211857600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000612152846113ad565b905060006005600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600064e8d4a5100083600001516fffffffffffffffffffffffffffffffff1683600001546121d69190613500565b6121e09190613589565b905060008260010154826121f491906135ba565b905064e8d4a5100084600001516fffffffffffffffffffffffffffffffff168761221e9190613500565b6122289190613589565b8261223391906135ba565b836001018190555085836000015461224b91906135fd565b836000018190555061229e85827f00000000000000000000000027f3d47f71da7eca2c5f56d1a28ae6b5c5f4ab2373ffffffffffffffffffffffffffffffffffffffff166125389092919063ffffffff16565b6000600488815481106122b4576122b3613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461238d578073ffffffffffffffffffffffffffffffffffffffff16638bf637428933898689600001546040518663ffffffff1660e01b815260040161235a9594939291906136ee565b600060405180830381600087803b15801561237457600080fd5b505af1158015612388573d6000803e3d6000fd5b505050505b6123f6868860038b815481106123a6576123a5613631565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125389092919063ffffffff16565b8573ffffffffffffffffffffffffffffffffffffffff16883373ffffffffffffffffffffffffffffffffffffffff167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21328a6040516124549190612b39565b60405180910390a4873373ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954846040516124a39190612b39565b60405180910390a35050505050505050565b6124bd6125be565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361252c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252390613cd6565b60405180910390fd5b6125358161263c565b50565b6125b98363a9059cbb60e01b8484604051602401612557929190613887565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506127b6565b505050565b6125c661287e565b73ffffffffffffffffffffffffffffffffffffffff166125e4611a87565b73ffffffffffffffffffffffffffffffffffffffff161461263a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263190613d42565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612783846323b872dd60e01b85858560405160240161272193929190613d62565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506127b6565b50505050565b60606127ae8383604051806060016040528060278152602001613fe360279139612886565b905092915050565b6000612818826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661290c9092919063ffffffff16565b905060008151148061283a57508080602001905181019061283991906138c5565b5b612879576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287090613e0b565b60405180910390fd5b505050565b600033905090565b60606000808573ffffffffffffffffffffffffffffffffffffffff16856040516128b09190613e67565b600060405180830381855af49150503d80600081146128eb576040519150601f19603f3d011682016040523d82523d6000602084013e6128f0565b606091505b509150915061290186838387612924565b925050509392505050565b606061291b8484600085612999565b90509392505050565b6060831561298657600083510361297e5761293e85612a66565b61297d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297490613eca565b60405180910390fd5b5b829050612991565b6129908383612a89565b5b949350505050565b6060824710156129de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d590613f5c565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612a079190613e67565b60006040518083038185875af1925050503d8060008114612a44576040519150601f19603f3d011682016040523d82523d6000602084013e612a49565b606091505b5091509150612a5a87838387612924565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115612a9c5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad09190613fc0565b60405180910390fd5b604051806060016040528060006fffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000819050919050565b612b3381612b20565b82525050565b6000602082019050612b4e6000830184612b2a565b92915050565b600080fd5b600080fd5b612b6781612b20565b8114612b7257600080fd5b50565b600081359050612b8481612b5e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612bb582612b8a565b9050919050565b612bc581612baa565b8114612bd057600080fd5b50565b600081359050612be281612bbc565b92915050565b600080600060608486031215612c0157612c00612b54565b5b6000612c0f86828701612b75565b9350506020612c2086828701612b75565b9250506040612c3186828701612bd3565b9150509250925092565b600060208284031215612c5157612c50612b54565b5b6000612c5f84828501612b75565b91505092915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b612c8d81612c68565b82525050565b600067ffffffffffffffff82169050919050565b612cb081612c93565b82525050565b6000606082019050612ccb6000830186612c84565b612cd86020830185612ca7565b612ce56040830184612ca7565b949350505050565b60008060408385031215612d0457612d03612b54565b5b6000612d1285828601612b75565b9250506020612d2385828601612bd3565b9150509250929050565b6000612d3882612baa565b9050919050565b612d4881612d2d565b8114612d5357600080fd5b50565b600081359050612d6581612d3f565b92915050565b600060208284031215612d8157612d80612b54565b5b6000612d8f84828501612d56565b91505092915050565b612da181612c68565b82525050565b612db081612c93565b82525050565b606082016000820151612dcc6000850182612d98565b506020820151612ddf6020850182612da7565b506040820151612df26040850182612da7565b50505050565b6000606082019050612e0d6000830184612db6565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612e3857612e37612e13565b5b8235905067ffffffffffffffff811115612e5557612e54612e18565b5b602083019150836020820283011115612e7157612e70612e1d565b5b9250929050565b60008060208385031215612e8f57612e8e612b54565b5b600083013567ffffffffffffffff811115612ead57612eac612b59565b5b612eb985828601612e22565b92509250509250929050565b6000819050919050565b6000612eea612ee5612ee084612b8a565b612ec5565b612b8a565b9050919050565b6000612efc82612ecf565b9050919050565b6000612f0e82612ef1565b9050919050565b612f1e81612f03565b82525050565b6000602082019050612f396000830184612f15565b92915050565b600060ff82169050919050565b612f5581612f3f565b8114612f6057600080fd5b50565b600081359050612f7281612f4c565b92915050565b6000819050919050565b612f8b81612f78565b8114612f9657600080fd5b50565b600081359050612fa881612f82565b92915050565b60008060008060008060c08789031215612fcb57612fca612b54565b5b6000612fd989828a01612bd3565b9650506020612fea89828a01612b75565b9550506040612ffb89828a01612b75565b945050606061300c89828a01612f63565b935050608061301d89828a01612f99565b92505060a061302e89828a01612f99565b9150509295509295509295565b600061304682612ef1565b9050919050565b6130568161303b565b82525050565b6000602082019050613071600083018461304d565b92915050565b600061308282612baa565b9050919050565b61309281613077565b811461309d57600080fd5b50565b6000813590506130af81613089565b92915050565b60008115159050919050565b6130ca816130b5565b81146130d557600080fd5b50565b6000813590506130e7816130c1565b92915050565b6000806000806080858703121561310757613106612b54565b5b600061311587828801612b75565b945050602061312687828801612b75565b9350506040613137878288016130a0565b9250506060613148878288016130d8565b91505092959194509250565b61315d81612baa565b82525050565b60006020820190506131786000830184613154565b92915050565b6000819050919050565b6131918161317e565b82525050565b60006040820190506131ac6000830185612b2a565b6131b96020830184613188565b9392505050565b60006131cb82612baa565b9050919050565b6131db816131c0565b81146131e657600080fd5b50565b6000813590506131f8816131d2565b92915050565b60008060006060848603121561321757613216612b54565b5b600061322586828701612b75565b9350506020613236868287016131e9565b9250506040613247868287016130a0565b9150509250925092565b60008083601f84011261326757613266612e13565b5b8235905067ffffffffffffffff81111561328457613283612e18565b5b6020830191508360208202830111156132a05761329f612e1d565b5b9250929050565b600080602083850312156132be576132bd612b54565b5b600083013567ffffffffffffffff8111156132dc576132db612b59565b5b6132e885828601613251565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561335a57808201518184015260208101905061333f565b60008484015250505050565b6000601f19601f8301169050919050565b600061338282613320565b61338c818561332b565b935061339c81856020860161333c565b6133a581613366565b840191505092915050565b60006133bc8383613377565b905092915050565b6000602082019050919050565b60006133dc826132f4565b6133e681856132ff565b9350836020820285016133f885613310565b8060005b85811015613434578484038952815161341585826133b0565b9450613420836133c4565b925060208a019950506001810190506133fc565b50829750879550505050505092915050565b6000602082019050818103600083015261346081846133d1565b905092915050565b600061347382612ef1565b9050919050565b61348381613468565b82525050565b600060208201905061349e600083018461347a565b92915050565b6000602082840312156134ba576134b9612b54565b5b60006134c884828501612bd3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061350b82612b20565b915061351683612b20565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561354f5761354e6134d1565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061359482612b20565b915061359f83612b20565b9250826135af576135ae61355a565b5b828204905092915050565b60006135c58261317e565b91506135d08361317e565b92508282039050818112600084121682821360008512151617156135f7576135f66134d1565b5b92915050565b600061360882612b20565b915061361383612b20565b925082820390508181111561362b5761362a6134d1565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b600061368561368061367b84613660565b612ec5565b612b20565b9050919050565b6136958161366a565b82525050565b600060a0820190506136b06000830188612b2a565b6136bd6020830187613154565b6136ca6040830186613154565b6136d7606083018561368c565b6136e46080830184612b2a565b9695505050505050565b600060a0820190506137036000830188612b2a565b6137106020830187613154565b61371d6040830186613154565b61372a6060830185612b2a565b6137376080830184612b2a565b9695505050505050565b60008151905061375081612b5e565b92915050565b60006020828403121561376c5761376b612b54565b5b600061377a84828501613741565b91505092915050565b600061378e82612b20565b915061379983612b20565b92508282019050808211156137b1576137b06134d1565b5b92915050565b600060a0820190506137cc6000830188612b2a565b6137d96020830187613154565b6137e66040830186613154565b6137f3606083018561368c565b613800608083018461368c565b9695505050505050565b600082825260208201905092915050565b7f4d61737465724368656656323a206e6f206d69677261746f7220736574000000600082015250565b6000613851601d8361380a565b915061385c8261381b565b602082019050919050565b6000602082019050818103600083015261388081613844565b9050919050565b600060408201905061389c6000830185613154565b6138a96020830184612b2a565b9392505050565b6000815190506138bf816130c1565b92915050565b6000602082840312156138db576138da612b54565b5b60006138e9848285016138b0565b91505092915050565b600081519050613901816131d2565b92915050565b60006020828403121561391d5761391c612b54565b5b600061392b848285016138f2565b91505092915050565b7f4d61737465724368656656323a206d696772617465642062616c616e6365206d60008201527f757374206d617463680000000000000000000000000000000000000000000000602082015250565b600061399060298361380a565b915061399b82613934565b604082019050919050565b600060208201905081810360008301526139bf81613983565b9050919050565b60006139d182612c68565b91506139dc83612c68565b925082820190506fffffffffffffffffffffffffffffffff811115613a0457613a036134d1565b5b92915050565b6000613a25613a20613a1b84612c68565b612ec5565b612b20565b9050919050565b613a3581613a0a565b82525050565b6000606082019050613a506000830186612ca7565b613a5d6020830185612b2a565b613a6a6040830184613a2c565b949350505050565b6000613a7d82612b20565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613aaf57613aae6134d1565b5b600182019050919050565b613ac381612f3f565b82525050565b613ad281612f78565b82525050565b600060e082019050613aed600083018a613154565b613afa6020830189613154565b613b076040830188612b2a565b613b146060830187612b2a565b613b216080830186613aba565b613b2e60a0830185613ac9565b613b3b60c0830184613ac9565b98975050505050505050565b613b50816130b5565b82525050565b6000604082019050613b6b6000830185612b2a565b613b786020830184613b47565b9392505050565b6000613b8a8261317e565b9150613b958361317e565b925082820190508281121560008312168382126000841215161715613bbd57613bbc6134d1565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112613c1e57613c1d613bf2565b5b80840192508235915067ffffffffffffffff821115613c4057613c3f613bf7565b5b602083019250600182023603831315613c5c57613c5b613bfc565b5b509250929050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613cc060268361380a565b9150613ccb82613c64565b604082019050919050565b60006020820190508181036000830152613cef81613cb3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d2c60208361380a565b9150613d3782613cf6565b602082019050919050565b60006020820190508181036000830152613d5b81613d1f565b9050919050565b6000606082019050613d776000830186613154565b613d846020830185613154565b613d916040830184612b2a565b949350505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613df5602a8361380a565b9150613e0082613d99565b604082019050919050565b60006020820190508181036000830152613e2481613de8565b9050919050565b600081905092915050565b6000613e4182613320565b613e4b8185613e2b565b9350613e5b81856020860161333c565b80840191505092915050565b6000613e738284613e36565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613eb4601d8361380a565b9150613ebf82613e7e565b602082019050919050565b60006020820190508181036000830152613ee381613ea7565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613f4660268361380a565b9150613f5182613eea565b604082019050919050565b60006020820190508181036000830152613f7581613f39565b9050919050565b600081519050919050565b6000613f9282613f7c565b613f9c818561380a565b9350613fac81856020860161333c565b613fb581613366565b840191505092915050565b60006020820190508181036000830152613fda8184613f87565b90509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220784af9f2697d9bbe3f4ecc0ac6e3cc2c5cb6546fd04824322b35f5c70d50e59664736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000027f3d47f71da7eca2c5f56d1a28ae6b5c5f4ab23
-----Decoded View---------------
Arg [0] : _reward (address): 0x27F3D47F71DA7EcA2C5F56d1a28aE6B5c5f4AB23
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000027f3d47f71da7eca2c5f56d1a28ae6b5c5f4ab23
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in MNT
Multichain Portfolio | 35 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.