Latest 25 from a total of 121 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 37202200 | 2 days ago | IN | 0 ETH | 0.00019703 | ||||
| Deposit | 36991068 | 3 days ago | IN | 0 ETH | 0.0001795 | ||||
| Claim | 35969735 | 9 days ago | IN | 0 ETH | 0.00020419 | ||||
| Deposit | 35667673 | 11 days ago | IN | 0 ETH | 0.00018514 | ||||
| Claim | 35517361 | 12 days ago | IN | 0 ETH | 0.0002031 | ||||
| Claim | 35407189 | 13 days ago | IN | 0 ETH | 0.00020628 | ||||
| Claim | 35220044 | 14 days ago | IN | 0 ETH | 0.00020898 | ||||
| Deposit | 35081690 | 15 days ago | IN | 0 ETH | 0.00018925 | ||||
| Claim | 35063680 | 15 days ago | IN | 0 ETH | 0.00020476 | ||||
| Claim | 34905970 | 16 days ago | IN | 0 ETH | 0.00020466 | ||||
| Claim | 34903359 | 16 days ago | IN | 0 ETH | 0.00020395 | ||||
| Claim | 34758999 | 17 days ago | IN | 0 ETH | 0.00020651 | ||||
| Claim | 34757498 | 17 days ago | IN | 0 ETH | 0.00020729 | ||||
| Deposit | 34649480 | 18 days ago | IN | 0 ETH | 0.00019028 | ||||
| Claim | 34561724 | 18 days ago | IN | 0 ETH | 0.00020606 | ||||
| Claim | 34225036 | 21 days ago | IN | 0 ETH | 0.00020796 | ||||
| Claim | 34188079 | 21 days ago | IN | 0 ETH | 0.00019096 | ||||
| Claim | 34188042 | 21 days ago | IN | 0 ETH | 0.00020781 | ||||
| Claim | 34116889 | 22 days ago | IN | 0 ETH | 0.0002119 | ||||
| Claim | 33979763 | 23 days ago | IN | 0 ETH | 0.00021105 | ||||
| Deposit | 33970860 | 23 days ago | IN | 0 ETH | 0.00019184 | ||||
| Claim | 33961610 | 23 days ago | IN | 0 ETH | 0.00019096 | ||||
| Claim | 33818278 | 24 days ago | IN | 0 ETH | 0.00021025 | ||||
| Claim | 33811327 | 24 days ago | IN | 0 ETH | 0.00020951 | ||||
| Claim | 33641012 | 25 days ago | IN | 0 ETH | 0.00021212 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 21432946 | 105 days ago | Contract Creation | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
sMLPRewards
Compiler Version
v0.8.30+commit.73712a01
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.30; import "@openzeppelin/[email protected]/token/ERC20/IERC20.sol"; import "@openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/[email protected]/access/Ownable.sol"; import "@openzeppelin/[email protected]/security/Pausable.sol"; import "@openzeppelin/[email protected]/security/ReentrancyGuard.sol"; interface IStaking { function onTransfer(address from, address to, uint256 amount) external; } contract sMLPRewards is Ownable, Pausable, ReentrancyGuard { using SafeERC20 for IERC20; IERC20 public sMLP; // sMLP token (staked and reward token) address public vault; // Address of the MLPVault contract uint256 public constant TOTAL_BLOCKS = 10_000_000; // Blocks per reward period uint256 public constant GRACE_PERIOD_BLOCKS = 2_628_000; // ~1 year at 12s/block uint256 public constant MAX_EXCLUDED_ADDRESSES = 10; // Limit to prevent gas issues uint256 public constant MAX_REWARD_PERIODS = 150; // Limit to prevent gas DoS uint256 public totalRewards; // Total sMLP deposited for rewards uint256 public totalReleasedRewards; // Total rewards released so far uint256 public totalClaimed; // Total rewards claimed/distributed uint256 public lastUpdateBlock; // Last block rewards were updated uint256 public rewardPerShare; // Accumulated reward per share (scaled by 1e18) uint256 private dust; // Accumulated remainder for precision loss mitigation (scaled by 1e18) // Structure to track each reward period struct RewardPeriod { uint256 startBlock; // Block when period starts uint256 endBlock; // Block when period ends uint256 rewardPerBlock; // Reward per block for this period uint256 amount; // Total sMLP for this period bool active; // Flag to mark period as active } // Array of all reward periods RewardPeriod[] public rewardPeriods; // Track number of active periods for gas efficiency uint256 public activePeriodCount; // Excluded addresses (e.g., vault, liquidity pairs) mapping(address => bool) public excludedAddresses; address[] public excludedAddressesList; // Array for iteration mapping(address => int256) public userRewardDebt; // User's reward debt (scaled by 1e18, signed) event Claimed(address indexed user, uint256 amount); event Deposited(uint256 amount, uint256 startBlock, uint256 endBlock); event StuckFundsRemoved(uint256 amount); event UnreleasedRewardsWithdrawn(uint256 amount); event ExpiredPeriodsRemoved(uint256 count); event AddressExclusionSet(address indexed addr, bool excluded); event EmergencyWithdraw(address indexed recipient, uint256 amount); constructor(address _sMLP, address _vault) Ownable() { require(_sMLP != address(0), "sMLP address cannot be zero"); require(_vault != address(0), "Vault address cannot be zero"); sMLP = IERC20(_sMLP); vault = _vault; lastUpdateBlock = block.number; // Automatically exclude vault and this contract excludedAddresses[_vault] = true; excludedAddresses[address(this)] = true; excludedAddressesList.push(_vault); excludedAddressesList.push(address(this)); } // Emergency withdraw all sMLP (only when paused) function emergencyWithdraw(address recipient) external onlyOwner { require(paused(), "Contract must be paused"); require(recipient != address(0), "Recipient cannot be zero address"); uint256 balance = sMLP.balanceOf(address(this)); require(balance > 0, "No sMLP to withdraw"); // Reset state to prevent further reward accrual or claims totalRewards = 0; totalReleasedRewards = 0; totalClaimed = 0; activePeriodCount = 0; rewardPerShare = 0; dust = 0; delete rewardPeriods; // Transfer all sMLP to recipient sMLP.safeTransfer(recipient, balance); emit EmergencyWithdraw(recipient, balance); } // Admin sets whether an address is excluded from rewards function setExcludedAddress(address addr, bool excluded) external onlyOwner { require(addr != address(0), "Cannot exclude zero address"); require(addr != vault && addr != address(this), "Cannot modify vault or rewards contract exclusion"); require(excludedAddressesList.length <= MAX_EXCLUDED_ADDRESSES, "Too many excluded addresses"); if (excluded && !excludedAddresses[addr]) { excludedAddresses[addr] = true; excludedAddressesList.push(addr); emit AddressExclusionSet(addr, true); } else if (!excluded && excludedAddresses[addr]) { excludedAddresses[addr] = false; for (uint256 i = 0; i < excludedAddressesList.length; i++) { if (excludedAddressesList[i] == addr) { excludedAddressesList[i] = excludedAddressesList[excludedAddressesList.length - 1]; excludedAddressesList.pop(); break; } } emit AddressExclusionSet(addr, false); } } // Called by sMLP contract on transfers function onTransfer(address from, address to, uint256 amount) external { require(msg.sender == address(sMLP), "Only sMLP can call"); if (excludedAddresses[from] && excludedAddresses[to]) return; // Skip if both excluded _updateReward(); uint256 transferredDebt = (amount * rewardPerShare) / 1e18; if (from != address(this) && !excludedAddresses[from]) { userRewardDebt[from] -= int256(transferredDebt); } if (to != address(this) && !excludedAddresses[to]) { userRewardDebt[to] += int256(transferredDebt); } } // Internal: Calculate rewards since last update up to a given block function _calculateRewardsSinceLast(uint256 _toBlock) internal view returns (uint256) { uint256 _totalStaked = getTotalStaked(); if (_totalStaked == 0 || activePeriodCount == 0) return 0; uint256 totalNewRewards = 0; for (uint256 i = 0; i < rewardPeriods.length; i++) { if (!rewardPeriods[i].active) continue; uint256 start = rewardPeriods[i].startBlock > lastUpdateBlock ? rewardPeriods[i].startBlock : lastUpdateBlock; uint256 end = _toBlock > rewardPeriods[i].endBlock ? rewardPeriods[i].endBlock : _toBlock; if (end <= start) continue; uint256 blocksToAccrue = end - start; totalNewRewards += blocksToAccrue * rewardPeriods[i].rewardPerBlock; } return totalNewRewards; } // Update global reward state function _updateReward() internal { uint256 newRewards = _calculateRewardsSinceLast(block.number); if (newRewards == 0) return; uint256 _totalStaked = getTotalStaked(); uint256 multiplier = newRewards * 1e18 + dust; rewardPerShare += multiplier / _totalStaked; dust = multiplier % _totalStaked; totalReleasedRewards += newRewards; lastUpdateBlock = block.number; // Deactivate expired periods for (uint256 i = 0; i < rewardPeriods.length; i++) { if (rewardPeriods[i].active && block.number >= rewardPeriods[i].endBlock) { rewardPeriods[i].active = false; activePeriodCount--; } } } // Internal: Harvest rewards for a user (always as sMLP) function _harvest(address user) internal returns (uint256) { if (excludedAddresses[user]) return 0; // Excluded addresses don't accrue rewards int256 accumulated = int256((sMLP.balanceOf(user) * rewardPerShare) / 1e18); int256 pendingInt = accumulated - userRewardDebt[user]; require(pendingInt >= 0, "Negative pending rewards"); uint256 pending = uint256(pendingInt); if (pending == 0) return 0; require(sMLP.balanceOf(address(this)) >= pending, "Insufficient sMLP reserve for rewards"); totalClaimed += pending; userRewardDebt[user] = accumulated; sMLP.safeTransfer(user, pending); return pending; } // Claim accumulated rewards as sMLP function claim() external whenNotPaused nonReentrant { _updateReward(); uint256 pending = _harvest(msg.sender); require(pending > 0, "No rewards to claim"); emit Claimed(msg.sender, pending); } // Admin deposits sMLP rewards, starting a new 10M-block period function deposit(uint256 amount) external onlyOwner nonReentrant { require(amount > 0, "Amount must be greater than 0"); require(rewardPeriods.length < MAX_REWARD_PERIODS, "Too many reward periods"); _updateReward(); uint256 startBlock = block.number; uint256 endBlock = startBlock + TOTAL_BLOCKS; uint256 rewardPerBlock = amount / TOTAL_BLOCKS; rewardPeriods.push(RewardPeriod({ startBlock: startBlock, endBlock: endBlock, rewardPerBlock: rewardPerBlock, amount: amount, active: true })); activePeriodCount++; sMLP.safeTransferFrom(msg.sender, address(this), amount); totalRewards += amount; emit Deposited(amount, startBlock, endBlock); } // Admin removes stuck sMLP funds function removeStuckFunds() external onlyOwner nonReentrant { uint256 expected = totalRewards - totalClaimed; uint256 balance = sMLP.balanceOf(address(this)); require(balance > expected, "No stuck funds to withdraw"); uint256 stuck = balance - expected; sMLP.safeTransfer(owner(), stuck); emit StuckFundsRemoved(stuck); } // Admin withdraws unreleased rewards after all periods expire or grace period function withdrawUnreleasedRewards() external onlyOwner nonReentrant { _updateReward(); uint256 latestEndBlock = 0; for (uint256 i = 0; i < rewardPeriods.length; i++) { if (rewardPeriods[i].endBlock > latestEndBlock) { latestEndBlock = rewardPeriods[i].endBlock; } } require( activePeriodCount == 0 || block.number >= latestEndBlock + GRACE_PERIOD_BLOCKS, "Cannot withdraw: Active periods exist or grace period not passed" ); uint256 unreleased = totalRewards - totalReleasedRewards; require(unreleased > 0, "No unreleased rewards to withdraw"); totalRewards -= unreleased; sMLP.safeTransfer(owner(), unreleased); emit UnreleasedRewardsWithdrawn(unreleased); } // Admin removes expired reward periods to reduce gas costs function removeExpiredPeriods() external onlyOwner { uint256 initialLength = rewardPeriods.length; uint256 i = 0; while (i < rewardPeriods.length) { if (rewardPeriods[i].active && block.number >= rewardPeriods[i].endBlock) { rewardPeriods[i].active = false; activePeriodCount--; } if (!rewardPeriods[i].active && block.number >= rewardPeriods[i].endBlock) { rewardPeriods[i] = rewardPeriods[rewardPeriods.length - 1]; rewardPeriods.pop(); } else { i++; } } uint256 removedCount = initialLength - rewardPeriods.length; if (removedCount > 0) { emit ExpiredPeriodsRemoved(removedCount); } } // Pause the contract function pause() external onlyOwner { _pause(); } // Unpause the contract function unpause() external onlyOwner { _unpause(); } // View function to calculate pending rewards for a user function pendingRewards(address user) external view returns (uint256) { if (excludedAddresses[user]) return 0; // Excluded addresses have no rewards uint256 _totalStaked = getTotalStaked(); if (_totalStaked == 0 || activePeriodCount == 0) return 0; uint256 additional = _calculateRewardsSinceLast(block.number); uint256 tempMultiplier = additional * 1e18 + dust; uint256 tempRewardPerShare = rewardPerShare + (tempMultiplier / _totalStaked); int256 accumulated = int256((sMLP.balanceOf(user) * tempRewardPerShare) / 1e18); int256 pendingInt = accumulated - userRewardDebt[user]; return pendingInt > 0 ? uint256(pendingInt) : 0; } // Get total amount of unclaimed rewards across all users function getTotalUnclaimedRewards() external view returns (uint256) { uint256 _totalStaked = getTotalStaked(); if (_totalStaked == 0) return 0; uint256 additional = _calculateRewardsSinceLast(block.number); uint256 totalReleased = totalReleasedRewards + additional; return totalReleased - totalClaimed; } // Get total amount of sMLP earning rewards (total supply minus excluded balances) function getTotalStaked() public view returns (uint256) { uint256 total = sMLP.totalSupply(); for (uint256 i = 0; i < excludedAddressesList.length; i++) { total -= sMLP.balanceOf(excludedAddressesList[i]); } return total; } function getCurrentRewardRatePerToken() external view returns (uint256) { uint256 _totalStaked = getTotalStaked(); if (_totalStaked == 0) return 0; uint256 totalRewardPerBlock = 0; for (uint256 i = 0; i < rewardPeriods.length; i++) { if (rewardPeriods[i].active && block.number >= rewardPeriods[i].startBlock && block.number < rewardPeriods[i].endBlock) { totalRewardPerBlock += rewardPeriods[i].rewardPerBlock; } } return (totalRewardPerBlock * 1e18) / _totalStaked; // Scaled for precision } // Estimate user's rewards for the next specified number of blocks function getUserRewardsForNextBlocks(address user, uint256 blocks) external view returns (uint256) { if (excludedAddresses[user]) return 0; // Excluded addresses have no rewards uint256 _totalStaked = getTotalStaked(); if (_totalStaked == 0 || sMLP.balanceOf(user) == 0 || blocks == 0 || activePeriodCount == 0) return 0; uint256 futureRewards = 0; uint256 currentBlock = block.number; for (uint256 i = 0; i < rewardPeriods.length; i++) { if (!rewardPeriods[i].active) continue; uint256 start = rewardPeriods[i].startBlock > currentBlock ? rewardPeriods[i].startBlock : currentBlock; uint256 end = rewardPeriods[i].endBlock; if (end <= start) continue; uint256 blocksToConsider = (start + blocks) > end ? end - start : blocks; futureRewards += blocksToConsider * rewardPeriods[i].rewardPerBlock; } uint256 futureRewardPerShare = (futureRewards * 1e18) / _totalStaked; int256 futureAccumulated = int256((sMLP.balanceOf(user) * (rewardPerShare + futureRewardPerShare)) / 1e18); int256 pendingInt = futureAccumulated - userRewardDebt[user]; return pendingInt > 0 ? uint256(pendingInt) : 0; } // Get the number of reward periods function getRewardPeriodCount() external view returns (uint256) { return rewardPeriods.length; } // Get details of a specific reward period function getRewardPeriod(uint256 index) external view returns (uint256 startBlock, uint256 endBlock, uint256 rewardPerBlock, uint256 amount, bool active) { require(index < rewardPeriods.length, "Invalid period index"); RewardPeriod memory period = rewardPeriods[index]; return (period.startBlock, period.endBlock, period.rewardPerBlock, period.amount, period.active); } // Get all active reward periods for frontend display function getActiveRewardPeriods() external view returns ( uint256[] memory startBlocks, uint256[] memory endBlocks, uint256[] memory rewardPerBlocks, uint256[] memory amounts ) { uint256 activeCount = 0; for (uint256 i = 0; i < rewardPeriods.length; i++) { if (rewardPeriods[i].active && block.number < rewardPeriods[i].endBlock) { activeCount++; } } startBlocks = new uint256[](activeCount); endBlocks = new uint256[](activeCount); rewardPerBlocks = new uint256[](activeCount); amounts = new uint256[](activeCount); uint256 index = 0; for (uint256 i = 0; i < rewardPeriods.length; i++) { if (rewardPeriods[i].active && block.number < rewardPeriods[i].endBlock) { startBlocks[index] = rewardPeriods[i].startBlock; endBlocks[index] = rewardPeriods[i].endBlock; rewardPerBlocks[index] = rewardPeriods[i].rewardPerBlock; amounts[index] = rewardPeriods[i].amount; index++; } } return (startBlocks, endBlocks, rewardPerBlocks, amounts); } // Get the list of excluded addresses function getExcludedAddresses() external view returns (address[] memory) { return excludedAddressesList; } }
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// 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.3) (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. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
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) (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) (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 (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 v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_sMLP","type":"address"},{"internalType":"address","name":"_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"bool","name":"excluded","type":"bool"}],"name":"AddressExclusionSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlock","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"ExpiredPeriodsRemoved","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"StuckFundsRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnreleasedRewardsWithdrawn","type":"event"},{"inputs":[],"name":"GRACE_PERIOD_BLOCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_EXCLUDED_ADDRESSES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_REWARD_PERIODS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_BLOCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activePeriodCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"excludedAddressesList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getActiveRewardPeriods","outputs":[{"internalType":"uint256[]","name":"startBlocks","type":"uint256[]"},{"internalType":"uint256[]","name":"endBlocks","type":"uint256[]"},{"internalType":"uint256[]","name":"rewardPerBlocks","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentRewardRatePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getExcludedAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRewardPeriod","outputs":[{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"uint256","name":"rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardPeriodCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalUnclaimedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"blocks","type":"uint256"}],"name":"getUserRewardsForNextBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"onTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeExpiredPeriods","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeStuckFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardPeriods","outputs":[{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"uint256","name":"rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sMLP","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"setExcludedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleasedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewards","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardDebt","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawUnreleasedRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561000f575f5ffd5b506040516152c63803806152c683398181016040528101906100319190610467565b61004d61004261034160201b60201c565b61034860201b60201c565b5f5f60146101000a81548160ff021916908315150217905550600180819055505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036100db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100d2906104ff565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610149576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161014090610567565b60405180910390fd5b8160025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550436007819055506001600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506001600c5f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600d81908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600d30908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050610585565b5f33905090565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6104368261040d565b9050919050565b6104468161042c565b8114610450575f5ffd5b50565b5f815190506104618161043d565b92915050565b5f5f6040838503121561047d5761047c610409565b5b5f61048a85828601610453565b925050602061049b85828601610453565b9150509250929050565b5f82825260208201905092915050565b7f734d4c5020616464726573732063616e6e6f74206265207a65726f00000000005f82015250565b5f6104e9601b836104a5565b91506104f4826104b5565b602082019050919050565b5f6020820190508181035f830152610516816104dd565b9050919050565b7f5661756c7420616464726573732063616e6e6f74206265207a65726f000000005f82015250565b5f610551601c836104a5565b915061055c8261051d565b602082019050919050565b5f6020820190508181035f83015261057e81610545565b9050919050565b614d34806105925f395ff3fe608060405234801561000f575f5ffd5b506004361061023a575f3560e01c80636ff1c9bc11610139578063b8a18ade116100b6578063ebfef14d1161007a578063ebfef14d14610645578063ede4edba1461064f578063f196782c1461066d578063f2fde38b14610689578063fbfa77cf146106a55761023a565b8063b8a18ade1461059d578063cf011b26146105bb578063d1f1caff146105eb578063d54ad2a114610609578063db4d0852146106275761023a565b80638da5cb5b116100fd5780638da5cb5b146104e1578063a218141b146104ff578063b04435001461051d578063b49376111461054d578063b6b55f25146105815761023a565b80636ff1c9bc14610473578063715018a61461048f5780637f0a311b146104995780638252097d146104a35780638456cb59146104d75761023a565b80633f4ba83a116101c757806353cfcf2a1161018b57806353cfcf2a146103cb5780635c975abb146103e95780635fdf199a146104075780636be4b243146104255780636da5c916146104435761023a565b80633f4ba83a1461034d578063446a2ec8146103575780634a393149146103755780634bf6f9e7146103915780634e71d92d146103c15761023a565b8063236eabd41161020e578063236eabd4146102b657806331d7a262146102d75780633260c0691461030757806333595fb6146103255780633b7e77a41461032f5761023a565b80625a7ffa1461023e5780630917e7761461025c5780630e15561a1461027a5780631af5f68414610298575b5f5ffd5b6102466106c3565b6040516102539190613839565b60405180910390f35b6102646106ca565b6040516102719190613839565b60405180910390f35b610282610864565b60405161028f9190613839565b60405180910390f35b6102a061086a565b6040516102ad9190613839565b60405180910390f35b6102be610871565b6040516102ce9493929190613909565b60405180910390f35b6102f160048036038101906102ec91906139c6565b610be2565b6040516102fe9190613839565b60405180910390f35b61030f610dd1565b60405161031c9190613839565b60405180910390f35b61032d610dd7565b005b610337611083565b6040516103449190613839565b60405180910390f35b610355611088565b005b61035f61109a565b60405161036c9190613839565b60405180910390f35b61038f600480360381019061038a9190613a1b565b6110a0565b005b6103ab60048036038101906103a691906139c6565b6113ba565b6040516103b89190613a83565b60405180910390f35b6103c96113cf565b005b6103d361148e565b6040516103e09190613839565b60405180910390f35b6103f16115b8565b6040516103fe9190613ab6565b60405180910390f35b61040f6115cd565b60405161041c9190613b86565b60405180910390f35b61042d611658565b60405161043a9190613839565b60405180910390f35b61045d60048036038101906104589190613ba6565b611664565b60405161046a9190613be0565b60405180910390f35b61048d600480360381019061048891906139c6565b61169f565b005b61049761190f565b005b6104a1611922565b005b6104bd60048036038101906104b89190613ba6565b611b10565b6040516104ce959493929190613bf9565b60405180910390f35b6104df611b5d565b005b6104e9611b6f565b6040516104f69190613be0565b60405180910390f35b610507611b96565b6040516105149190613839565b60405180910390f35b61053760048036038101906105329190613c4a565b611b9c565b6040516105449190613839565b60405180910390f35b61056760048036038101906105629190613ba6565b611f6b565b604051610578959493929190613bf9565b60405180910390f35b61059b60048036038101906105969190613ba6565b612052565b005b6105a561227b565b6040516105b29190613ce3565b60405180910390f35b6105d560048036038101906105d091906139c6565b6122a0565b6040516105e29190613ab6565b60405180910390f35b6105f36122bd565b6040516106009190613839565b60405180910390f35b6106116122c3565b60405161061e9190613839565b60405180910390f35b61062f6122c9565b60405161063c9190613839565b60405180910390f35b61064d612319565b005b6106576124c0565b6040516106649190613839565b60405180910390f35b61068760048036038101906106829190613d26565b6124c5565b005b6106a3600480360381019061069e91906139c6565b612a2c565b005b6106ad612aae565b6040516106ba9190613be0565b60405180910390f35b622819a081565b5f5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610736573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061075a9190613d78565b90505f5f90505b600d8054905081101561085c5760025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600d83815481106107bf576107be613da3565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016108039190613be0565b602060405180830381865afa15801561081e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108429190613d78565b8261084d9190613dfd565b91508080600101915050610761565b508091505090565b60045481565b6298968081565b6060806060805f5f90505f5f90505b600a8054905081101561090c57600a81815481106108a1576108a0613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff1680156108eb5750600a81815481106108d8576108d7613da3565b5b905f5260205f2090600502016001015443105b156108ff5781806108fb90613e30565b9250505b8080600101915050610880565b508067ffffffffffffffff81111561092757610926613e77565b5b6040519080825280602002602001820160405280156109555781602001602082028036833780820191505090505b5094508067ffffffffffffffff81111561097257610971613e77565b5b6040519080825280602002602001820160405280156109a05781602001602082028036833780820191505090505b5093508067ffffffffffffffff8111156109bd576109bc613e77565b5b6040519080825280602002602001820160405280156109eb5781602001602082028036833780820191505090505b5092508067ffffffffffffffff811115610a0857610a07613e77565b5b604051908082528060200260200182016040528015610a365781602001602082028036833780820191505090505b5091505f5f90505f5f90505b600a80549050811015610bd957600a8181548110610a6357610a62613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff168015610aad5750600a8181548110610a9a57610a99613da3565b5b905f5260205f2090600502016001015443105b15610bcc57600a8181548110610ac657610ac5613da3565b5b905f5260205f2090600502015f0154878381518110610ae857610ae7613da3565b5b602002602001018181525050600a8181548110610b0857610b07613da3565b5b905f5260205f20906005020160010154868381518110610b2b57610b2a613da3565b5b602002602001018181525050600a8181548110610b4b57610b4a613da3565b5b905f5260205f20906005020160020154858381518110610b6e57610b6d613da3565b5b602002602001018181525050600a8181548110610b8e57610b8d613da3565b5b905f5260205f20906005020160030154848381518110610bb157610bb0613da3565b5b6020026020010181815250508180610bc890613e30565b9250505b8080600101915050610a42565b50505090919293565b5f600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610c3a575f9050610dcc565b5f610c436106ca565b90505f811480610c5457505f600b54145b15610c62575f915050610dcc565b5f610c6c43612ad3565b90505f600954670de0b6b3a764000083610c869190613ea4565b610c909190613ee5565b90505f8382610c9f9190613f45565b600854610cac9190613ee5565b90505f670de0b6b3a76400008260025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082318a6040518263ffffffff1660e01b8152600401610d139190613be0565b602060405180830381865afa158015610d2e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d529190613d78565b610d5c9190613ea4565b610d669190613f45565b90505f600e5f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205482610db29190613f75565b90505f8113610dc1575f610dc3565b805b96505050505050505b919050565b600b5481565b610ddf612c6f565b5f600a8054905090505f5f90505b600a8054905081101561102a57600a8181548110610e0e57610e0d613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff168015610e595750600a8181548110610e4557610e44613da3565b5b905f5260205f209060050201600101544310155b15610eb0575f600a8281548110610e7357610e72613da3565b5b905f5260205f2090600502016004015f6101000a81548160ff021916908315150217905550600b5f815480929190610eaa90613fb5565b91905055505b600a8181548110610ec457610ec3613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff16158015610f105750600a8181548110610efc57610efb613da3565b5b905f5260205f209060050201600101544310155b1561101657600a6001600a80549050610f299190613dfd565b81548110610f3a57610f39613da3565b5b905f5260205f209060050201600a8281548110610f5a57610f59613da3565b5b905f5260205f2090600502015f820154815f0155600182015481600101556002820154816002015560038201548160030155600482015f9054906101000a900460ff16816004015f6101000a81548160ff021916908315150217905550905050600a805480610fcc57610fcb613fdc565b5b600190038181905f5260205f2090600502015f5f82015f9055600182015f9055600282015f9055600382015f9055600482015f6101000a81549060ff021916905550509055611025565b808061102190613e30565b9150505b610ded565b5f600a805490508361103c9190613dfd565b90505f81111561107e577fff6c585359f2cdae97fcb0083a6de3c646573db7f872cf6f523dbdc6d408fc7e816040516110759190613839565b60405180910390a15b505050565b600a81565b611090612c6f565b611098612ced565b565b60085481565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461112f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112690614063565b60405180910390fd5b600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156111cb5750600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b6113b5576111d7612d4e565b5f670de0b6b3a7640000600854836111ef9190613ea4565b6111f99190613f45565b90503073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415801561127e5750600c5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156112d75780600e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546112cf9190613f75565b925050819055505b3073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561135a5750600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156113b35780600e5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546113ab9190614081565b925050819055505b505b505050565b600e602052805f5260405f205f915090505481565b6113d7612ec6565b6113df612f10565b6113e7612d4e565b5f6113f133612f5f565b90505f8111611435576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142c9061410c565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a8260405161147b9190613839565b60405180910390a25061148c6132a5565b565b5f5f6114986106ca565b90505f81036114aa575f9150506115b5565b5f5f90505f5f90505b600a8054905081101561159057600a81815481106114d4576114d3613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff16801561151e5750600a818154811061150b5761150a613da3565b5b905f5260205f2090600502015f01544310155b801561154c5750600a818154811061153957611538613da3565b5b905f5260205f2090600502016001015443105b1561158357600a818154811061156557611564613da3565b5b905f5260205f20906005020160020154826115809190613ee5565b91505b80806001019150506114b3565b5081670de0b6b3a7640000826115a69190613ea4565b6115b09190613f45565b925050505b90565b5f5f60149054906101000a900460ff16905090565b6060600d80548060200260200160405190810160405280929190818152602001828054801561164e57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611605575b5050505050905090565b5f600a80549050905090565b600d8181548110611673575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6116a7612c6f565b6116af6115b8565b6116ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e590614174565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361175c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611753906141dc565b60405180910390fd5b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117b79190613be0565b602060405180830381865afa1580156117d2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117f69190613d78565b90505f811161183a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183190614244565b60405180910390fd5b5f6004819055505f6005819055505f6006819055505f600b819055505f6008819055505f600981905550600a5f61187191906137bb565b6118bd828260025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166132ae9092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695826040516119039190613839565b60405180910390a25050565b611917612c6f565b6119205f613334565b565b61192a612c6f565b611932612f10565b61193a612d4e565b5f5f90505f5f90505b600a805490508110156119af5781600a828154811061196557611964613da3565b5b905f5260205f2090600502016001015411156119a257600a818154811061198f5761198e613da3565b5b905f5260205f2090600502016001015491505b8080600101915050611943565b505f600b5414806119ce5750622819a0816119ca9190613ee5565b4310155b611a0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a04906142d2565b60405180910390fd5b5f600554600454611a1e9190613dfd565b90505f8111611a62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5990614360565b60405180910390fd5b8060045f828254611a739190613dfd565b92505081905550611acd611a85611b6f565b8260025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166132ae9092919063ffffffff16565b7f4080cdf932ee103155a91e8390dcee6fb70a7afa1923af5db4dcb339e894597981604051611afc9190613839565b60405180910390a15050611b0e6132a5565b565b600a8181548110611b1f575f80fd5b905f5260205f2090600502015f91509050805f015490806001015490806002015490806003015490806004015f9054906101000a900460ff16905085565b611b65612c6f565b611b6d6133f5565b565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60075481565b5f600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611bf4575f9050611f65565b5f611bfd6106ca565b90505f811480611ca457505f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401611c639190613be0565b602060405180830381865afa158015611c7e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ca29190613d78565b145b80611cae57505f83145b80611cba57505f600b54145b15611cc8575f915050611f65565b5f5f90505f4390505f5f90505b600a80549050811015611e1757600a8181548110611cf657611cf5613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff1615611e0a575f82600a8381548110611d2d57611d2c613da3565b5b905f5260205f2090600502015f015411611d475782611d6b565b600a8281548110611d5b57611d5a613da3565b5b905f5260205f2090600502015f01545b90505f600a8381548110611d8257611d81613da3565b5b905f5260205f209060050201600101549050818111611da2575050611e0a565b5f818984611db09190613ee5565b11611dbb5788611dc8565b8282611dc79190613dfd565b5b9050600a8481548110611dde57611ddd613da3565b5b905f5260205f2090600502016002015481611df99190613ea4565b86611e049190613ee5565b95505050505b8080600101915050611cd5565b505f83670de0b6b3a764000084611e2e9190613ea4565b611e389190613f45565b90505f670de0b6b3a764000082600854611e529190613ee5565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082318b6040518263ffffffff1660e01b8152600401611eac9190613be0565b602060405180830381865afa158015611ec7573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611eeb9190613d78565b611ef59190613ea4565b611eff9190613f45565b90505f600e5f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205482611f4b9190613f75565b90505f8113611f5a575f611f5c565b805b96505050505050505b92915050565b5f5f5f5f5f600a805490508610611fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fae906143c8565b60405180910390fd5b5f600a8781548110611fcc57611fcb613da3565b5b905f5260205f2090600502016040518060a00160405290815f8201548152602001600182015481526020016002820154815260200160038201548152602001600482015f9054906101000a900460ff1615151515815250509050805f01518160200151826040015183606001518460800151955095509550955095505091939590929450565b61205a612c6f565b612062612f10565b5f81116120a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209b90614430565b60405180910390fd5b6096600a80549050106120ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e390614498565b60405180910390fd5b6120f4612d4e565b5f4390505f62989680826121089190613ee5565b90505f629896808461211a9190613f45565b9050600a6040518060a0016040528085815260200184815260200183815260200186815260200160011515815250908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015560408201518160020155606082015181600301556080820151816004015f6101000a81548160ff0219169083151502179055505050600b5f8154809291906121c790613e30565b919050555061221a33308660025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613457909392919063ffffffff16565b8360045f82825461222b9190613ee5565b925050819055507f1ca606821992e3b34613b5b29c0bbade3a907b2969d7f9f2927f726fa4baccfb848484604051612265939291906144b6565b60405180910390a15050506122786132a5565b50565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c602052805f5260405f205f915054906101000a900460ff1681565b60055481565b60065481565b5f5f6122d36106ca565b90505f81036122e5575f915050612316565b5f6122ef43612ad3565b90505f816005546123009190613ee5565b9050600654816123109190613dfd565b93505050505b90565b612321612c6f565b612329612f10565b5f60065460045461233a9190613dfd565b90505f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016123979190613be0565b602060405180830381865afa1580156123b2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123d69190613d78565b905081811161241a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241190614535565b60405180910390fd5b5f82826124279190613dfd565b905061247c612434611b6f565b8260025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166132ae9092919063ffffffff16565b7fe2c1a070bd048a515efffa6c09237ccf0f344498660c8422ff2f0e7f2506a7da816040516124ab9190613839565b60405180910390a15050506124be6132a5565b565b609681565b6124cd612c6f565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361253b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125329061459d565b60405180910390fd5b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156125c457503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b612603576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fa9061462b565b60405180910390fd5b600a600d80549050111561264c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264390614693565b60405180910390fd5b8080156126a05750600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156127ae576001600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600d82908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f6f76649320499a88baf2be4a82da192930e89434dafa0b71a401dd5a4e1ab5b560016040516127a19190613ab6565b60405180910390a2612a28565b801580156128025750600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15612a27575f600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f5f90505b600d805490508110156129d7578273ffffffffffffffffffffffffffffffffffffffff16600d828154811061289857612897613da3565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036129ca57600d6001600d805490506128ef9190613dfd565b81548110612900576128ff613da3565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600d828154811061293c5761293b613da3565b5b905f5260205f20015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600d80548061299357612992613fdc565b5b600190038181905f5260205f20015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556129d7565b8080600101915050612860565b508173ffffffffffffffffffffffffffffffffffffffff167f6f76649320499a88baf2be4a82da192930e89434dafa0b71a401dd5a4e1ab5b55f604051612a1e9190613ab6565b60405180910390a25b5b5050565b612a34612c6f565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612aa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9990614721565b60405180910390fd5b612aab81613334565b50565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5f612add6106ca565b90505f811480612aee57505f600b54145b15612afc575f915050612c6a565b5f5f90505f5f90505b600a80549050811015612c6357600a8181548110612b2657612b25613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff1615612c56575f600754600a8381548110612b5f57612b5e613da3565b5b905f5260205f2090600502015f015411612b7b57600754612b9f565b600a8281548110612b8f57612b8e613da3565b5b905f5260205f2090600502015f01545b90505f600a8381548110612bb657612bb5613da3565b5b905f5260205f209060050201600101548711612bd25786612bf7565b600a8381548110612be657612be5613da3565b5b905f5260205f209060050201600101545b9050818111612c07575050612c56565b5f8282612c149190613dfd565b9050600a8481548110612c2a57612c29613da3565b5b905f5260205f2090600502016002015481612c459190613ea4565b85612c509190613ee5565b94505050505b8080600101915050612b05565b5080925050505b919050565b612c776134e0565b73ffffffffffffffffffffffffffffffffffffffff16612c95611b6f565b73ffffffffffffffffffffffffffffffffffffffff1614612ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce290614789565b60405180910390fd5b565b612cf56134e7565b5f5f60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612d376134e0565b604051612d449190613be0565b60405180910390a1565b5f612d5843612ad3565b90505f8103612d675750612ec4565b5f612d706106ca565b90505f600954670de0b6b3a764000084612d8a9190613ea4565b612d949190613ee5565b90508181612da29190613f45565b60085f828254612db29190613ee5565b925050819055508181612dc591906147a7565b6009819055508260055f828254612ddc9190613ee5565b92505081905550436007819055505f5f90505b600a80549050811015612ebf57600a8181548110612e1057612e0f613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff168015612e5b5750600a8181548110612e4757612e46613da3565b5b905f5260205f209060050201600101544310155b15612eb2575f600a8281548110612e7557612e74613da3565b5b905f5260205f2090600502016004015f6101000a81548160ff021916908315150217905550600b5f815480929190612eac90613fb5565b91905055505b8080600101915050612def565b505050505b565b612ece6115b8565b15612f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0590614821565b60405180910390fd5b565b600260015403612f55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4c90614889565b60405180910390fd5b6002600181905550565b5f600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612fb7575f90506132a0565b5f670de0b6b3a764000060085460025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b815260040161301e9190613be0565b602060405180830381865afa158015613039573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061305d9190613d78565b6130679190613ea4565b6130719190613f45565b90505f600e5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054826130bd9190613f75565b90505f811215613102576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130f9906148f1565b60405180910390fd5b5f8190505f8103613118575f93505050506132a0565b8060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016131739190613be0565b602060405180830381865afa15801561318e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906131b29190613d78565b10156131f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ea9061497f565b60405180910390fd5b8060065f8282546132049190613ee5565b9250508190555082600e5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550613299858260025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166132ae9092919063ffffffff16565b8093505050505b919050565b60018081905550565b61332f8363a9059cbb60e01b84846040516024016132cd92919061499d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613530565b505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6133fd612ec6565b60015f60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586134406134e0565b60405161344d9190613be0565b60405180910390a1565b6134da846323b872dd60e01b858585604051602401613478939291906149c4565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613530565b50505050565b5f33905090565b6134ef6115b8565b61352e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352590614a43565b60405180910390fd5b565b5f613591826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166135f69092919063ffffffff16565b90505f815114806135b25750808060200190518101906135b19190614a75565b5b6135f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135e890614b10565b60405180910390fd5b505050565b606061360484845f8561360d565b90509392505050565b606082471015613652576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364990614b9e565b60405180910390fd5b5f5f8673ffffffffffffffffffffffffffffffffffffffff16858760405161367a9190614c0e565b5f6040518083038185875af1925050503d805f81146136b4576040519150601f19603f3d011682016040523d82523d5f602084013e6136b9565b606091505b50915091506136ca878383876136d6565b92505050949350505050565b60608315613737575f83510361372f576136ef8561374a565b61372e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372590614c6e565b60405180910390fd5b5b829050613742565b613741838361376c565b5b949350505050565b5f5f8273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f8251111561377e5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b29190614cde565b60405180910390fd5b5080545f8255600502905f5260205f20908101906137d991906137dc565b50565b5b8082111561381d575f5f82015f9055600182015f9055600282015f9055600382015f9055600482015f6101000a81549060ff0219169055506005016137dd565b5090565b5f819050919050565b61383381613821565b82525050565b5f60208201905061384c5f83018461382a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61388481613821565b82525050565b5f613895838361387b565b60208301905092915050565b5f602082019050919050565b5f6138b782613852565b6138c1818561385c565b93506138cc8361386c565b805f5b838110156138fc5781516138e3888261388a565b97506138ee836138a1565b9250506001810190506138cf565b5085935050505092915050565b5f6080820190508181035f83015261392181876138ad565b9050818103602083015261393581866138ad565b9050818103604083015261394981856138ad565b9050818103606083015261395d81846138ad565b905095945050505050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6139958261396c565b9050919050565b6139a58161398b565b81146139af575f5ffd5b50565b5f813590506139c08161399c565b92915050565b5f602082840312156139db576139da613968565b5b5f6139e8848285016139b2565b91505092915050565b6139fa81613821565b8114613a04575f5ffd5b50565b5f81359050613a15816139f1565b92915050565b5f5f5f60608486031215613a3257613a31613968565b5b5f613a3f868287016139b2565b9350506020613a50868287016139b2565b9250506040613a6186828701613a07565b9150509250925092565b5f819050919050565b613a7d81613a6b565b82525050565b5f602082019050613a965f830184613a74565b92915050565b5f8115159050919050565b613ab081613a9c565b82525050565b5f602082019050613ac95f830184613aa7565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613b018161398b565b82525050565b5f613b128383613af8565b60208301905092915050565b5f602082019050919050565b5f613b3482613acf565b613b3e8185613ad9565b9350613b4983613ae9565b805f5b83811015613b79578151613b608882613b07565b9750613b6b83613b1e565b925050600181019050613b4c565b5085935050505092915050565b5f6020820190508181035f830152613b9e8184613b2a565b905092915050565b5f60208284031215613bbb57613bba613968565b5b5f613bc884828501613a07565b91505092915050565b613bda8161398b565b82525050565b5f602082019050613bf35f830184613bd1565b92915050565b5f60a082019050613c0c5f83018861382a565b613c19602083018761382a565b613c26604083018661382a565b613c33606083018561382a565b613c406080830184613aa7565b9695505050505050565b5f5f60408385031215613c6057613c5f613968565b5b5f613c6d858286016139b2565b9250506020613c7e85828601613a07565b9150509250929050565b5f819050919050565b5f613cab613ca6613ca18461396c565b613c88565b61396c565b9050919050565b5f613cbc82613c91565b9050919050565b5f613ccd82613cb2565b9050919050565b613cdd81613cc3565b82525050565b5f602082019050613cf65f830184613cd4565b92915050565b613d0581613a9c565b8114613d0f575f5ffd5b50565b5f81359050613d2081613cfc565b92915050565b5f5f60408385031215613d3c57613d3b613968565b5b5f613d49858286016139b2565b9250506020613d5a85828601613d12565b9150509250929050565b5f81519050613d72816139f1565b92915050565b5f60208284031215613d8d57613d8c613968565b5b5f613d9a84828501613d64565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613e0782613821565b9150613e1283613821565b9250828203905081811115613e2a57613e29613dd0565b5b92915050565b5f613e3a82613821565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613e6c57613e6b613dd0565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f613eae82613821565b9150613eb983613821565b9250828202613ec781613821565b91508282048414831517613ede57613edd613dd0565b5b5092915050565b5f613eef82613821565b9150613efa83613821565b9250828201905080821115613f1257613f11613dd0565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613f4f82613821565b9150613f5a83613821565b925082613f6a57613f69613f18565b5b828204905092915050565b5f613f7f82613a6b565b9150613f8a83613a6b565b925082820390508181125f8412168282135f851215161715613faf57613fae613dd0565b5b92915050565b5f613fbf82613821565b91505f8203613fd157613fd0613dd0565b5b600182039050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b5f82825260208201905092915050565b7f4f6e6c7920734d4c502063616e2063616c6c00000000000000000000000000005f82015250565b5f61404d601283614009565b915061405882614019565b602082019050919050565b5f6020820190508181035f83015261407a81614041565b9050919050565b5f61408b82613a6b565b915061409683613a6b565b92508282019050828112155f8312168382125f8412151617156140bc576140bb613dd0565b5b92915050565b7f4e6f207265776172647320746f20636c61696d000000000000000000000000005f82015250565b5f6140f6601383614009565b9150614101826140c2565b602082019050919050565b5f6020820190508181035f830152614123816140ea565b9050919050565b7f436f6e7472616374206d757374206265207061757365640000000000000000005f82015250565b5f61415e601783614009565b91506141698261412a565b602082019050919050565b5f6020820190508181035f83015261418b81614152565b9050919050565b7f526563697069656e742063616e6e6f74206265207a65726f20616464726573735f82015250565b5f6141c6602083614009565b91506141d182614192565b602082019050919050565b5f6020820190508181035f8301526141f3816141ba565b9050919050565b7f4e6f20734d4c5020746f207769746864726177000000000000000000000000005f82015250565b5f61422e601383614009565b9150614239826141fa565b602082019050919050565b5f6020820190508181035f83015261425b81614222565b9050919050565b7f43616e6e6f742077697468647261773a2041637469766520706572696f6473205f8201527f6578697374206f7220677261636520706572696f64206e6f7420706173736564602082015250565b5f6142bc604083614009565b91506142c782614262565b604082019050919050565b5f6020820190508181035f8301526142e9816142b0565b9050919050565b7f4e6f20756e72656c6561736564207265776172647320746f20776974686472615f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f61434a602183614009565b9150614355826142f0565b604082019050919050565b5f6020820190508181035f8301526143778161433e565b9050919050565b7f496e76616c696420706572696f6420696e6465780000000000000000000000005f82015250565b5f6143b2601483614009565b91506143bd8261437e565b602082019050919050565b5f6020820190508181035f8301526143df816143a6565b9050919050565b7f416d6f756e74206d7573742062652067726561746572207468616e20300000005f82015250565b5f61441a601d83614009565b9150614425826143e6565b602082019050919050565b5f6020820190508181035f8301526144478161440e565b9050919050565b7f546f6f206d616e792072657761726420706572696f64730000000000000000005f82015250565b5f614482601783614009565b915061448d8261444e565b602082019050919050565b5f6020820190508181035f8301526144af81614476565b9050919050565b5f6060820190506144c95f83018661382a565b6144d6602083018561382a565b6144e3604083018461382a565b949350505050565b7f4e6f20737475636b2066756e647320746f2077697468647261770000000000005f82015250565b5f61451f601a83614009565b915061452a826144eb565b602082019050919050565b5f6020820190508181035f83015261454c81614513565b9050919050565b7f43616e6e6f74206578636c756465207a65726f206164647265737300000000005f82015250565b5f614587601b83614009565b915061459282614553565b602082019050919050565b5f6020820190508181035f8301526145b48161457b565b9050919050565b7f43616e6e6f74206d6f64696679207661756c74206f72207265776172647320635f8201527f6f6e7472616374206578636c7573696f6e000000000000000000000000000000602082015250565b5f614615603183614009565b9150614620826145bb565b604082019050919050565b5f6020820190508181035f83015261464281614609565b9050919050565b7f546f6f206d616e79206578636c756465642061646472657373657300000000005f82015250565b5f61467d601b83614009565b915061468882614649565b602082019050919050565b5f6020820190508181035f8301526146aa81614671565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61470b602683614009565b9150614716826146b1565b604082019050919050565b5f6020820190508181035f830152614738816146ff565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f614773602083614009565b915061477e8261473f565b602082019050919050565b5f6020820190508181035f8301526147a081614767565b9050919050565b5f6147b182613821565b91506147bc83613821565b9250826147cc576147cb613f18565b5b828206905092915050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f61480b601083614009565b9150614816826147d7565b602082019050919050565b5f6020820190508181035f830152614838816147ff565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f614873601f83614009565b915061487e8261483f565b602082019050919050565b5f6020820190508181035f8301526148a081614867565b9050919050565b7f4e656761746976652070656e64696e67207265776172647300000000000000005f82015250565b5f6148db601883614009565b91506148e6826148a7565b602082019050919050565b5f6020820190508181035f830152614908816148cf565b9050919050565b7f496e73756666696369656e7420734d4c50207265736572766520666f722072655f8201527f7761726473000000000000000000000000000000000000000000000000000000602082015250565b5f614969602583614009565b91506149748261490f565b604082019050919050565b5f6020820190508181035f8301526149968161495d565b9050919050565b5f6040820190506149b05f830185613bd1565b6149bd602083018461382a565b9392505050565b5f6060820190506149d75f830186613bd1565b6149e46020830185613bd1565b6149f1604083018461382a565b949350505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f614a2d601483614009565b9150614a38826149f9565b602082019050919050565b5f6020820190508181035f830152614a5a81614a21565b9050919050565b5f81519050614a6f81613cfc565b92915050565b5f60208284031215614a8a57614a89613968565b5b5f614a9784828501614a61565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e5f8201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b5f614afa602a83614009565b9150614b0582614aa0565b604082019050919050565b5f6020820190508181035f830152614b2781614aee565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f5f8201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b5f614b88602683614009565b9150614b9382614b2e565b604082019050919050565b5f6020820190508181035f830152614bb581614b7c565b9050919050565b5f81519050919050565b5f81905092915050565b8281835e5f83830152505050565b5f614be882614bbc565b614bf28185614bc6565b9350614c02818560208601614bd0565b80840191505092915050565b5f614c198284614bde565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000005f82015250565b5f614c58601d83614009565b9150614c6382614c24565b602082019050919050565b5f6020820190508181035f830152614c8581614c4c565b9050919050565b5f81519050919050565b5f601f19601f8301169050919050565b5f614cb082614c8c565b614cba8185614009565b9350614cca818560208601614bd0565b614cd381614c96565b840191505092915050565b5f6020820190508181035f830152614cf68184614ca6565b90509291505056fea264697066735822122021bb506672efc9a8abca9451584589ef36f0e6fe1521245b4be206211c02b94064736f6c634300081e0033000000000000000000000000492ffa6bcd9d0f9e52b243832b7de00eff618d0700000000000000000000000088162c40829d106f10f78377797dc9c4a6347dab
Deployed Bytecode
0x608060405234801561000f575f5ffd5b506004361061023a575f3560e01c80636ff1c9bc11610139578063b8a18ade116100b6578063ebfef14d1161007a578063ebfef14d14610645578063ede4edba1461064f578063f196782c1461066d578063f2fde38b14610689578063fbfa77cf146106a55761023a565b8063b8a18ade1461059d578063cf011b26146105bb578063d1f1caff146105eb578063d54ad2a114610609578063db4d0852146106275761023a565b80638da5cb5b116100fd5780638da5cb5b146104e1578063a218141b146104ff578063b04435001461051d578063b49376111461054d578063b6b55f25146105815761023a565b80636ff1c9bc14610473578063715018a61461048f5780637f0a311b146104995780638252097d146104a35780638456cb59146104d75761023a565b80633f4ba83a116101c757806353cfcf2a1161018b57806353cfcf2a146103cb5780635c975abb146103e95780635fdf199a146104075780636be4b243146104255780636da5c916146104435761023a565b80633f4ba83a1461034d578063446a2ec8146103575780634a393149146103755780634bf6f9e7146103915780634e71d92d146103c15761023a565b8063236eabd41161020e578063236eabd4146102b657806331d7a262146102d75780633260c0691461030757806333595fb6146103255780633b7e77a41461032f5761023a565b80625a7ffa1461023e5780630917e7761461025c5780630e15561a1461027a5780631af5f68414610298575b5f5ffd5b6102466106c3565b6040516102539190613839565b60405180910390f35b6102646106ca565b6040516102719190613839565b60405180910390f35b610282610864565b60405161028f9190613839565b60405180910390f35b6102a061086a565b6040516102ad9190613839565b60405180910390f35b6102be610871565b6040516102ce9493929190613909565b60405180910390f35b6102f160048036038101906102ec91906139c6565b610be2565b6040516102fe9190613839565b60405180910390f35b61030f610dd1565b60405161031c9190613839565b60405180910390f35b61032d610dd7565b005b610337611083565b6040516103449190613839565b60405180910390f35b610355611088565b005b61035f61109a565b60405161036c9190613839565b60405180910390f35b61038f600480360381019061038a9190613a1b565b6110a0565b005b6103ab60048036038101906103a691906139c6565b6113ba565b6040516103b89190613a83565b60405180910390f35b6103c96113cf565b005b6103d361148e565b6040516103e09190613839565b60405180910390f35b6103f16115b8565b6040516103fe9190613ab6565b60405180910390f35b61040f6115cd565b60405161041c9190613b86565b60405180910390f35b61042d611658565b60405161043a9190613839565b60405180910390f35b61045d60048036038101906104589190613ba6565b611664565b60405161046a9190613be0565b60405180910390f35b61048d600480360381019061048891906139c6565b61169f565b005b61049761190f565b005b6104a1611922565b005b6104bd60048036038101906104b89190613ba6565b611b10565b6040516104ce959493929190613bf9565b60405180910390f35b6104df611b5d565b005b6104e9611b6f565b6040516104f69190613be0565b60405180910390f35b610507611b96565b6040516105149190613839565b60405180910390f35b61053760048036038101906105329190613c4a565b611b9c565b6040516105449190613839565b60405180910390f35b61056760048036038101906105629190613ba6565b611f6b565b604051610578959493929190613bf9565b60405180910390f35b61059b60048036038101906105969190613ba6565b612052565b005b6105a561227b565b6040516105b29190613ce3565b60405180910390f35b6105d560048036038101906105d091906139c6565b6122a0565b6040516105e29190613ab6565b60405180910390f35b6105f36122bd565b6040516106009190613839565b60405180910390f35b6106116122c3565b60405161061e9190613839565b60405180910390f35b61062f6122c9565b60405161063c9190613839565b60405180910390f35b61064d612319565b005b6106576124c0565b6040516106649190613839565b60405180910390f35b61068760048036038101906106829190613d26565b6124c5565b005b6106a3600480360381019061069e91906139c6565b612a2c565b005b6106ad612aae565b6040516106ba9190613be0565b60405180910390f35b622819a081565b5f5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610736573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061075a9190613d78565b90505f5f90505b600d8054905081101561085c5760025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600d83815481106107bf576107be613da3565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016108039190613be0565b602060405180830381865afa15801561081e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108429190613d78565b8261084d9190613dfd565b91508080600101915050610761565b508091505090565b60045481565b6298968081565b6060806060805f5f90505f5f90505b600a8054905081101561090c57600a81815481106108a1576108a0613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff1680156108eb5750600a81815481106108d8576108d7613da3565b5b905f5260205f2090600502016001015443105b156108ff5781806108fb90613e30565b9250505b8080600101915050610880565b508067ffffffffffffffff81111561092757610926613e77565b5b6040519080825280602002602001820160405280156109555781602001602082028036833780820191505090505b5094508067ffffffffffffffff81111561097257610971613e77565b5b6040519080825280602002602001820160405280156109a05781602001602082028036833780820191505090505b5093508067ffffffffffffffff8111156109bd576109bc613e77565b5b6040519080825280602002602001820160405280156109eb5781602001602082028036833780820191505090505b5092508067ffffffffffffffff811115610a0857610a07613e77565b5b604051908082528060200260200182016040528015610a365781602001602082028036833780820191505090505b5091505f5f90505f5f90505b600a80549050811015610bd957600a8181548110610a6357610a62613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff168015610aad5750600a8181548110610a9a57610a99613da3565b5b905f5260205f2090600502016001015443105b15610bcc57600a8181548110610ac657610ac5613da3565b5b905f5260205f2090600502015f0154878381518110610ae857610ae7613da3565b5b602002602001018181525050600a8181548110610b0857610b07613da3565b5b905f5260205f20906005020160010154868381518110610b2b57610b2a613da3565b5b602002602001018181525050600a8181548110610b4b57610b4a613da3565b5b905f5260205f20906005020160020154858381518110610b6e57610b6d613da3565b5b602002602001018181525050600a8181548110610b8e57610b8d613da3565b5b905f5260205f20906005020160030154848381518110610bb157610bb0613da3565b5b6020026020010181815250508180610bc890613e30565b9250505b8080600101915050610a42565b50505090919293565b5f600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610c3a575f9050610dcc565b5f610c436106ca565b90505f811480610c5457505f600b54145b15610c62575f915050610dcc565b5f610c6c43612ad3565b90505f600954670de0b6b3a764000083610c869190613ea4565b610c909190613ee5565b90505f8382610c9f9190613f45565b600854610cac9190613ee5565b90505f670de0b6b3a76400008260025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082318a6040518263ffffffff1660e01b8152600401610d139190613be0565b602060405180830381865afa158015610d2e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d529190613d78565b610d5c9190613ea4565b610d669190613f45565b90505f600e5f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205482610db29190613f75565b90505f8113610dc1575f610dc3565b805b96505050505050505b919050565b600b5481565b610ddf612c6f565b5f600a8054905090505f5f90505b600a8054905081101561102a57600a8181548110610e0e57610e0d613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff168015610e595750600a8181548110610e4557610e44613da3565b5b905f5260205f209060050201600101544310155b15610eb0575f600a8281548110610e7357610e72613da3565b5b905f5260205f2090600502016004015f6101000a81548160ff021916908315150217905550600b5f815480929190610eaa90613fb5565b91905055505b600a8181548110610ec457610ec3613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff16158015610f105750600a8181548110610efc57610efb613da3565b5b905f5260205f209060050201600101544310155b1561101657600a6001600a80549050610f299190613dfd565b81548110610f3a57610f39613da3565b5b905f5260205f209060050201600a8281548110610f5a57610f59613da3565b5b905f5260205f2090600502015f820154815f0155600182015481600101556002820154816002015560038201548160030155600482015f9054906101000a900460ff16816004015f6101000a81548160ff021916908315150217905550905050600a805480610fcc57610fcb613fdc565b5b600190038181905f5260205f2090600502015f5f82015f9055600182015f9055600282015f9055600382015f9055600482015f6101000a81549060ff021916905550509055611025565b808061102190613e30565b9150505b610ded565b5f600a805490508361103c9190613dfd565b90505f81111561107e577fff6c585359f2cdae97fcb0083a6de3c646573db7f872cf6f523dbdc6d408fc7e816040516110759190613839565b60405180910390a15b505050565b600a81565b611090612c6f565b611098612ced565b565b60085481565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461112f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112690614063565b60405180910390fd5b600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156111cb5750600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b6113b5576111d7612d4e565b5f670de0b6b3a7640000600854836111ef9190613ea4565b6111f99190613f45565b90503073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415801561127e5750600c5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156112d75780600e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546112cf9190613f75565b925050819055505b3073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561135a5750600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156113b35780600e5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546113ab9190614081565b925050819055505b505b505050565b600e602052805f5260405f205f915090505481565b6113d7612ec6565b6113df612f10565b6113e7612d4e565b5f6113f133612f5f565b90505f8111611435576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142c9061410c565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a8260405161147b9190613839565b60405180910390a25061148c6132a5565b565b5f5f6114986106ca565b90505f81036114aa575f9150506115b5565b5f5f90505f5f90505b600a8054905081101561159057600a81815481106114d4576114d3613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff16801561151e5750600a818154811061150b5761150a613da3565b5b905f5260205f2090600502015f01544310155b801561154c5750600a818154811061153957611538613da3565b5b905f5260205f2090600502016001015443105b1561158357600a818154811061156557611564613da3565b5b905f5260205f20906005020160020154826115809190613ee5565b91505b80806001019150506114b3565b5081670de0b6b3a7640000826115a69190613ea4565b6115b09190613f45565b925050505b90565b5f5f60149054906101000a900460ff16905090565b6060600d80548060200260200160405190810160405280929190818152602001828054801561164e57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611605575b5050505050905090565b5f600a80549050905090565b600d8181548110611673575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6116a7612c6f565b6116af6115b8565b6116ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e590614174565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361175c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611753906141dc565b60405180910390fd5b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117b79190613be0565b602060405180830381865afa1580156117d2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117f69190613d78565b90505f811161183a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183190614244565b60405180910390fd5b5f6004819055505f6005819055505f6006819055505f600b819055505f6008819055505f600981905550600a5f61187191906137bb565b6118bd828260025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166132ae9092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695826040516119039190613839565b60405180910390a25050565b611917612c6f565b6119205f613334565b565b61192a612c6f565b611932612f10565b61193a612d4e565b5f5f90505f5f90505b600a805490508110156119af5781600a828154811061196557611964613da3565b5b905f5260205f2090600502016001015411156119a257600a818154811061198f5761198e613da3565b5b905f5260205f2090600502016001015491505b8080600101915050611943565b505f600b5414806119ce5750622819a0816119ca9190613ee5565b4310155b611a0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a04906142d2565b60405180910390fd5b5f600554600454611a1e9190613dfd565b90505f8111611a62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5990614360565b60405180910390fd5b8060045f828254611a739190613dfd565b92505081905550611acd611a85611b6f565b8260025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166132ae9092919063ffffffff16565b7f4080cdf932ee103155a91e8390dcee6fb70a7afa1923af5db4dcb339e894597981604051611afc9190613839565b60405180910390a15050611b0e6132a5565b565b600a8181548110611b1f575f80fd5b905f5260205f2090600502015f91509050805f015490806001015490806002015490806003015490806004015f9054906101000a900460ff16905085565b611b65612c6f565b611b6d6133f5565b565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60075481565b5f600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611bf4575f9050611f65565b5f611bfd6106ca565b90505f811480611ca457505f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401611c639190613be0565b602060405180830381865afa158015611c7e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ca29190613d78565b145b80611cae57505f83145b80611cba57505f600b54145b15611cc8575f915050611f65565b5f5f90505f4390505f5f90505b600a80549050811015611e1757600a8181548110611cf657611cf5613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff1615611e0a575f82600a8381548110611d2d57611d2c613da3565b5b905f5260205f2090600502015f015411611d475782611d6b565b600a8281548110611d5b57611d5a613da3565b5b905f5260205f2090600502015f01545b90505f600a8381548110611d8257611d81613da3565b5b905f5260205f209060050201600101549050818111611da2575050611e0a565b5f818984611db09190613ee5565b11611dbb5788611dc8565b8282611dc79190613dfd565b5b9050600a8481548110611dde57611ddd613da3565b5b905f5260205f2090600502016002015481611df99190613ea4565b86611e049190613ee5565b95505050505b8080600101915050611cd5565b505f83670de0b6b3a764000084611e2e9190613ea4565b611e389190613f45565b90505f670de0b6b3a764000082600854611e529190613ee5565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082318b6040518263ffffffff1660e01b8152600401611eac9190613be0565b602060405180830381865afa158015611ec7573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611eeb9190613d78565b611ef59190613ea4565b611eff9190613f45565b90505f600e5f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205482611f4b9190613f75565b90505f8113611f5a575f611f5c565b805b96505050505050505b92915050565b5f5f5f5f5f600a805490508610611fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fae906143c8565b60405180910390fd5b5f600a8781548110611fcc57611fcb613da3565b5b905f5260205f2090600502016040518060a00160405290815f8201548152602001600182015481526020016002820154815260200160038201548152602001600482015f9054906101000a900460ff1615151515815250509050805f01518160200151826040015183606001518460800151955095509550955095505091939590929450565b61205a612c6f565b612062612f10565b5f81116120a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209b90614430565b60405180910390fd5b6096600a80549050106120ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e390614498565b60405180910390fd5b6120f4612d4e565b5f4390505f62989680826121089190613ee5565b90505f629896808461211a9190613f45565b9050600a6040518060a0016040528085815260200184815260200183815260200186815260200160011515815250908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015560408201518160020155606082015181600301556080820151816004015f6101000a81548160ff0219169083151502179055505050600b5f8154809291906121c790613e30565b919050555061221a33308660025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613457909392919063ffffffff16565b8360045f82825461222b9190613ee5565b925050819055507f1ca606821992e3b34613b5b29c0bbade3a907b2969d7f9f2927f726fa4baccfb848484604051612265939291906144b6565b60405180910390a15050506122786132a5565b50565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c602052805f5260405f205f915054906101000a900460ff1681565b60055481565b60065481565b5f5f6122d36106ca565b90505f81036122e5575f915050612316565b5f6122ef43612ad3565b90505f816005546123009190613ee5565b9050600654816123109190613dfd565b93505050505b90565b612321612c6f565b612329612f10565b5f60065460045461233a9190613dfd565b90505f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016123979190613be0565b602060405180830381865afa1580156123b2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123d69190613d78565b905081811161241a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241190614535565b60405180910390fd5b5f82826124279190613dfd565b905061247c612434611b6f565b8260025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166132ae9092919063ffffffff16565b7fe2c1a070bd048a515efffa6c09237ccf0f344498660c8422ff2f0e7f2506a7da816040516124ab9190613839565b60405180910390a15050506124be6132a5565b565b609681565b6124cd612c6f565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361253b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125329061459d565b60405180910390fd5b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156125c457503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b612603576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fa9061462b565b60405180910390fd5b600a600d80549050111561264c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264390614693565b60405180910390fd5b8080156126a05750600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156127ae576001600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600d82908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f6f76649320499a88baf2be4a82da192930e89434dafa0b71a401dd5a4e1ab5b560016040516127a19190613ab6565b60405180910390a2612a28565b801580156128025750600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15612a27575f600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f5f90505b600d805490508110156129d7578273ffffffffffffffffffffffffffffffffffffffff16600d828154811061289857612897613da3565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036129ca57600d6001600d805490506128ef9190613dfd565b81548110612900576128ff613da3565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600d828154811061293c5761293b613da3565b5b905f5260205f20015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600d80548061299357612992613fdc565b5b600190038181905f5260205f20015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556129d7565b8080600101915050612860565b508173ffffffffffffffffffffffffffffffffffffffff167f6f76649320499a88baf2be4a82da192930e89434dafa0b71a401dd5a4e1ab5b55f604051612a1e9190613ab6565b60405180910390a25b5b5050565b612a34612c6f565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612aa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9990614721565b60405180910390fd5b612aab81613334565b50565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5f612add6106ca565b90505f811480612aee57505f600b54145b15612afc575f915050612c6a565b5f5f90505f5f90505b600a80549050811015612c6357600a8181548110612b2657612b25613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff1615612c56575f600754600a8381548110612b5f57612b5e613da3565b5b905f5260205f2090600502015f015411612b7b57600754612b9f565b600a8281548110612b8f57612b8e613da3565b5b905f5260205f2090600502015f01545b90505f600a8381548110612bb657612bb5613da3565b5b905f5260205f209060050201600101548711612bd25786612bf7565b600a8381548110612be657612be5613da3565b5b905f5260205f209060050201600101545b9050818111612c07575050612c56565b5f8282612c149190613dfd565b9050600a8481548110612c2a57612c29613da3565b5b905f5260205f2090600502016002015481612c459190613ea4565b85612c509190613ee5565b94505050505b8080600101915050612b05565b5080925050505b919050565b612c776134e0565b73ffffffffffffffffffffffffffffffffffffffff16612c95611b6f565b73ffffffffffffffffffffffffffffffffffffffff1614612ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce290614789565b60405180910390fd5b565b612cf56134e7565b5f5f60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612d376134e0565b604051612d449190613be0565b60405180910390a1565b5f612d5843612ad3565b90505f8103612d675750612ec4565b5f612d706106ca565b90505f600954670de0b6b3a764000084612d8a9190613ea4565b612d949190613ee5565b90508181612da29190613f45565b60085f828254612db29190613ee5565b925050819055508181612dc591906147a7565b6009819055508260055f828254612ddc9190613ee5565b92505081905550436007819055505f5f90505b600a80549050811015612ebf57600a8181548110612e1057612e0f613da3565b5b905f5260205f2090600502016004015f9054906101000a900460ff168015612e5b5750600a8181548110612e4757612e46613da3565b5b905f5260205f209060050201600101544310155b15612eb2575f600a8281548110612e7557612e74613da3565b5b905f5260205f2090600502016004015f6101000a81548160ff021916908315150217905550600b5f815480929190612eac90613fb5565b91905055505b8080600101915050612def565b505050505b565b612ece6115b8565b15612f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0590614821565b60405180910390fd5b565b600260015403612f55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4c90614889565b60405180910390fd5b6002600181905550565b5f600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612fb7575f90506132a0565b5f670de0b6b3a764000060085460025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b815260040161301e9190613be0565b602060405180830381865afa158015613039573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061305d9190613d78565b6130679190613ea4565b6130719190613f45565b90505f600e5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054826130bd9190613f75565b90505f811215613102576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130f9906148f1565b60405180910390fd5b5f8190505f8103613118575f93505050506132a0565b8060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016131739190613be0565b602060405180830381865afa15801561318e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906131b29190613d78565b10156131f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ea9061497f565b60405180910390fd5b8060065f8282546132049190613ee5565b9250508190555082600e5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550613299858260025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166132ae9092919063ffffffff16565b8093505050505b919050565b60018081905550565b61332f8363a9059cbb60e01b84846040516024016132cd92919061499d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613530565b505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6133fd612ec6565b60015f60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586134406134e0565b60405161344d9190613be0565b60405180910390a1565b6134da846323b872dd60e01b858585604051602401613478939291906149c4565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613530565b50505050565b5f33905090565b6134ef6115b8565b61352e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352590614a43565b60405180910390fd5b565b5f613591826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166135f69092919063ffffffff16565b90505f815114806135b25750808060200190518101906135b19190614a75565b5b6135f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135e890614b10565b60405180910390fd5b505050565b606061360484845f8561360d565b90509392505050565b606082471015613652576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364990614b9e565b60405180910390fd5b5f5f8673ffffffffffffffffffffffffffffffffffffffff16858760405161367a9190614c0e565b5f6040518083038185875af1925050503d805f81146136b4576040519150601f19603f3d011682016040523d82523d5f602084013e6136b9565b606091505b50915091506136ca878383876136d6565b92505050949350505050565b60608315613737575f83510361372f576136ef8561374a565b61372e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372590614c6e565b60405180910390fd5b5b829050613742565b613741838361376c565b5b949350505050565b5f5f8273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f8251111561377e5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b29190614cde565b60405180910390fd5b5080545f8255600502905f5260205f20908101906137d991906137dc565b50565b5b8082111561381d575f5f82015f9055600182015f9055600282015f9055600382015f9055600482015f6101000a81549060ff0219169055506005016137dd565b5090565b5f819050919050565b61383381613821565b82525050565b5f60208201905061384c5f83018461382a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61388481613821565b82525050565b5f613895838361387b565b60208301905092915050565b5f602082019050919050565b5f6138b782613852565b6138c1818561385c565b93506138cc8361386c565b805f5b838110156138fc5781516138e3888261388a565b97506138ee836138a1565b9250506001810190506138cf565b5085935050505092915050565b5f6080820190508181035f83015261392181876138ad565b9050818103602083015261393581866138ad565b9050818103604083015261394981856138ad565b9050818103606083015261395d81846138ad565b905095945050505050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6139958261396c565b9050919050565b6139a58161398b565b81146139af575f5ffd5b50565b5f813590506139c08161399c565b92915050565b5f602082840312156139db576139da613968565b5b5f6139e8848285016139b2565b91505092915050565b6139fa81613821565b8114613a04575f5ffd5b50565b5f81359050613a15816139f1565b92915050565b5f5f5f60608486031215613a3257613a31613968565b5b5f613a3f868287016139b2565b9350506020613a50868287016139b2565b9250506040613a6186828701613a07565b9150509250925092565b5f819050919050565b613a7d81613a6b565b82525050565b5f602082019050613a965f830184613a74565b92915050565b5f8115159050919050565b613ab081613a9c565b82525050565b5f602082019050613ac95f830184613aa7565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613b018161398b565b82525050565b5f613b128383613af8565b60208301905092915050565b5f602082019050919050565b5f613b3482613acf565b613b3e8185613ad9565b9350613b4983613ae9565b805f5b83811015613b79578151613b608882613b07565b9750613b6b83613b1e565b925050600181019050613b4c565b5085935050505092915050565b5f6020820190508181035f830152613b9e8184613b2a565b905092915050565b5f60208284031215613bbb57613bba613968565b5b5f613bc884828501613a07565b91505092915050565b613bda8161398b565b82525050565b5f602082019050613bf35f830184613bd1565b92915050565b5f60a082019050613c0c5f83018861382a565b613c19602083018761382a565b613c26604083018661382a565b613c33606083018561382a565b613c406080830184613aa7565b9695505050505050565b5f5f60408385031215613c6057613c5f613968565b5b5f613c6d858286016139b2565b9250506020613c7e85828601613a07565b9150509250929050565b5f819050919050565b5f613cab613ca6613ca18461396c565b613c88565b61396c565b9050919050565b5f613cbc82613c91565b9050919050565b5f613ccd82613cb2565b9050919050565b613cdd81613cc3565b82525050565b5f602082019050613cf65f830184613cd4565b92915050565b613d0581613a9c565b8114613d0f575f5ffd5b50565b5f81359050613d2081613cfc565b92915050565b5f5f60408385031215613d3c57613d3b613968565b5b5f613d49858286016139b2565b9250506020613d5a85828601613d12565b9150509250929050565b5f81519050613d72816139f1565b92915050565b5f60208284031215613d8d57613d8c613968565b5b5f613d9a84828501613d64565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613e0782613821565b9150613e1283613821565b9250828203905081811115613e2a57613e29613dd0565b5b92915050565b5f613e3a82613821565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613e6c57613e6b613dd0565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f613eae82613821565b9150613eb983613821565b9250828202613ec781613821565b91508282048414831517613ede57613edd613dd0565b5b5092915050565b5f613eef82613821565b9150613efa83613821565b9250828201905080821115613f1257613f11613dd0565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613f4f82613821565b9150613f5a83613821565b925082613f6a57613f69613f18565b5b828204905092915050565b5f613f7f82613a6b565b9150613f8a83613a6b565b925082820390508181125f8412168282135f851215161715613faf57613fae613dd0565b5b92915050565b5f613fbf82613821565b91505f8203613fd157613fd0613dd0565b5b600182039050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b5f82825260208201905092915050565b7f4f6e6c7920734d4c502063616e2063616c6c00000000000000000000000000005f82015250565b5f61404d601283614009565b915061405882614019565b602082019050919050565b5f6020820190508181035f83015261407a81614041565b9050919050565b5f61408b82613a6b565b915061409683613a6b565b92508282019050828112155f8312168382125f8412151617156140bc576140bb613dd0565b5b92915050565b7f4e6f207265776172647320746f20636c61696d000000000000000000000000005f82015250565b5f6140f6601383614009565b9150614101826140c2565b602082019050919050565b5f6020820190508181035f830152614123816140ea565b9050919050565b7f436f6e7472616374206d757374206265207061757365640000000000000000005f82015250565b5f61415e601783614009565b91506141698261412a565b602082019050919050565b5f6020820190508181035f83015261418b81614152565b9050919050565b7f526563697069656e742063616e6e6f74206265207a65726f20616464726573735f82015250565b5f6141c6602083614009565b91506141d182614192565b602082019050919050565b5f6020820190508181035f8301526141f3816141ba565b9050919050565b7f4e6f20734d4c5020746f207769746864726177000000000000000000000000005f82015250565b5f61422e601383614009565b9150614239826141fa565b602082019050919050565b5f6020820190508181035f83015261425b81614222565b9050919050565b7f43616e6e6f742077697468647261773a2041637469766520706572696f6473205f8201527f6578697374206f7220677261636520706572696f64206e6f7420706173736564602082015250565b5f6142bc604083614009565b91506142c782614262565b604082019050919050565b5f6020820190508181035f8301526142e9816142b0565b9050919050565b7f4e6f20756e72656c6561736564207265776172647320746f20776974686472615f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f61434a602183614009565b9150614355826142f0565b604082019050919050565b5f6020820190508181035f8301526143778161433e565b9050919050565b7f496e76616c696420706572696f6420696e6465780000000000000000000000005f82015250565b5f6143b2601483614009565b91506143bd8261437e565b602082019050919050565b5f6020820190508181035f8301526143df816143a6565b9050919050565b7f416d6f756e74206d7573742062652067726561746572207468616e20300000005f82015250565b5f61441a601d83614009565b9150614425826143e6565b602082019050919050565b5f6020820190508181035f8301526144478161440e565b9050919050565b7f546f6f206d616e792072657761726420706572696f64730000000000000000005f82015250565b5f614482601783614009565b915061448d8261444e565b602082019050919050565b5f6020820190508181035f8301526144af81614476565b9050919050565b5f6060820190506144c95f83018661382a565b6144d6602083018561382a565b6144e3604083018461382a565b949350505050565b7f4e6f20737475636b2066756e647320746f2077697468647261770000000000005f82015250565b5f61451f601a83614009565b915061452a826144eb565b602082019050919050565b5f6020820190508181035f83015261454c81614513565b9050919050565b7f43616e6e6f74206578636c756465207a65726f206164647265737300000000005f82015250565b5f614587601b83614009565b915061459282614553565b602082019050919050565b5f6020820190508181035f8301526145b48161457b565b9050919050565b7f43616e6e6f74206d6f64696679207661756c74206f72207265776172647320635f8201527f6f6e7472616374206578636c7573696f6e000000000000000000000000000000602082015250565b5f614615603183614009565b9150614620826145bb565b604082019050919050565b5f6020820190508181035f83015261464281614609565b9050919050565b7f546f6f206d616e79206578636c756465642061646472657373657300000000005f82015250565b5f61467d601b83614009565b915061468882614649565b602082019050919050565b5f6020820190508181035f8301526146aa81614671565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61470b602683614009565b9150614716826146b1565b604082019050919050565b5f6020820190508181035f830152614738816146ff565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f614773602083614009565b915061477e8261473f565b602082019050919050565b5f6020820190508181035f8301526147a081614767565b9050919050565b5f6147b182613821565b91506147bc83613821565b9250826147cc576147cb613f18565b5b828206905092915050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f61480b601083614009565b9150614816826147d7565b602082019050919050565b5f6020820190508181035f830152614838816147ff565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f614873601f83614009565b915061487e8261483f565b602082019050919050565b5f6020820190508181035f8301526148a081614867565b9050919050565b7f4e656761746976652070656e64696e67207265776172647300000000000000005f82015250565b5f6148db601883614009565b91506148e6826148a7565b602082019050919050565b5f6020820190508181035f830152614908816148cf565b9050919050565b7f496e73756666696369656e7420734d4c50207265736572766520666f722072655f8201527f7761726473000000000000000000000000000000000000000000000000000000602082015250565b5f614969602583614009565b91506149748261490f565b604082019050919050565b5f6020820190508181035f8301526149968161495d565b9050919050565b5f6040820190506149b05f830185613bd1565b6149bd602083018461382a565b9392505050565b5f6060820190506149d75f830186613bd1565b6149e46020830185613bd1565b6149f1604083018461382a565b949350505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f614a2d601483614009565b9150614a38826149f9565b602082019050919050565b5f6020820190508181035f830152614a5a81614a21565b9050919050565b5f81519050614a6f81613cfc565b92915050565b5f60208284031215614a8a57614a89613968565b5b5f614a9784828501614a61565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e5f8201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b5f614afa602a83614009565b9150614b0582614aa0565b604082019050919050565b5f6020820190508181035f830152614b2781614aee565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f5f8201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b5f614b88602683614009565b9150614b9382614b2e565b604082019050919050565b5f6020820190508181035f830152614bb581614b7c565b9050919050565b5f81519050919050565b5f81905092915050565b8281835e5f83830152505050565b5f614be882614bbc565b614bf28185614bc6565b9350614c02818560208601614bd0565b80840191505092915050565b5f614c198284614bde565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000005f82015250565b5f614c58601d83614009565b9150614c6382614c24565b602082019050919050565b5f6020820190508181035f830152614c8581614c4c565b9050919050565b5f81519050919050565b5f601f19601f8301169050919050565b5f614cb082614c8c565b614cba8185614009565b9350614cca818560208601614bd0565b614cd381614c96565b840191505092915050565b5f6020820190508181035f830152614cf68184614ca6565b90509291505056fea264697066735822122021bb506672efc9a8abca9451584589ef36f0e6fe1521245b4be206211c02b94064736f6c634300081e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000492ffa6bcd9d0f9e52b243832b7de00eff618d0700000000000000000000000088162c40829d106f10f78377797dc9c4a6347dab
-----Decoded View---------------
Arg [0] : _sMLP (address): 0x492fFA6bcD9d0F9e52b243832b7dE00eFF618D07
Arg [1] : _vault (address): 0x88162C40829D106F10f78377797dc9C4a6347DAB
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000492ffa6bcd9d0f9e52b243832b7de00eff618d07
Arg [1] : 00000000000000000000000088162c40829d106f10f78377797dc9c4a6347dab
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.