Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 211215526 | 628 days ago | Contract Creation | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SHOVesting
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT
pragma solidity =0.8.4;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
contract SHOVesting is Initializable, OwnableUpgradeable, ReentrancyGuardUpgradeable {
using SafeERC20 for IERC20;
uint32 constant public VERSION = 2;
uint32 constant internal HUNDRED_PERCENT = 1e6;
struct User {
uint120 allocation; // How many tokens user can claim in total without including fee.
uint120 refundableAmount; // How many refund tokens is user eligible for
uint16 claimedUnlocksCount; // How many unlocks user has claimed.
uint16 eliminatedAfterUnlock; // At which unlock user has been eliminated.
bool refunded; // Whether user was refunded.
}
struct InitParameters {
IERC20 shoToken; // The vesting token that whitelisted users can claim.
uint32[] unlockPercentagesDiff; // Array of unlock percentages as differentials.
uint32[] unlockPeriodsDiff; // Array of unlock periods as differentials.
uint32 baseFeePercentage1; // Base fee in percentage for users.
address feeCollector; // EOA that receives fees.
uint64 startTime; // When users can start claiming.
IERC20 refundToken; // Refund token address.
address refundReceiver; // Address receiving refunded tokens.
uint64 refundStartTime; // When refund starts.
uint64 refundEndTime; // When refund ends.
}
mapping(address => User) public users1;
mapping(address => bool) public blockedUsers;
uint32[] public unlockPercentages;
uint32[] public unlockPeriods;
IERC20 public shoToken;
uint64 public startTime;
address public feeCollector;
uint32 public baseFeePercentage1;
IERC20 public refundToken;
address public refundReceiver;
uint64 public refundStartTime;
uint64 public refundEndTime;
bool public whitelistingAllowed;
uint16 passedUnlocksCount;
uint120 public globalTotalAllocation1;
uint120 public totalRefundedAllocation;
uint120 public totalRefundableAmount;
uint120 public totalRefundedAmount;
uint16 public collectedFeesUnlocksCount;
uint120 public extraFees1Allocation;
uint120 public extraFees1AllocationUncollectable;
event Whitelist(
address user,
uint120 allocation,
uint120 refundableAmount,
bool blocked
);
event Claim(
address indexed user,
uint16 currentUnlock,
uint120 claimedTokens
);
event FeeCollection(
uint16 currentUnlock,
uint120 totalFee,
uint120 extraFee
);
event UserElimination(
address user,
uint16 currentUnlock
);
event Update(
uint16 passedUnlocksCount
);
event Refund(
address user,
uint refundAmount
);
event BlockUsers(
address[] userAddresses,
bool state
);
modifier onlyWhitelistedUser(address userAddress) {
require(users1[userAddress].allocation > 0, "SHOVesting: not whitelisted");
_;
}
/**
* @notice Initializes contract.
* @param params InitParameters struct.
*/
function init(
InitParameters calldata params
) external initializer {
__ReentrancyGuard_init();
__Ownable_init();
require(address(params.shoToken) != address(0), "SHOVesting: sho token zero address");
require(params.unlockPercentagesDiff.length > 0, "SHOVesting: 0 unlock percentages");
require(params.unlockPeriodsDiff.length == params.unlockPercentagesDiff.length, "SHOVesting: different array lengths");
require(params.baseFeePercentage1 <= HUNDRED_PERCENT, "SHOVesting: base fee percentage 1 higher than 100%");
require(params.feeCollector != address(0), "SHOVesting: fee collector zero address");
require(params.startTime > block.timestamp, "SHOVesting: start time must be in future");
uint32[] memory _unlockPercentages = _buildArraySum(params.unlockPercentagesDiff);
uint32[] memory _unlockPeriods = _buildArraySum(params.unlockPeriodsDiff);
require(_unlockPercentages[_unlockPercentages.length - 1] == HUNDRED_PERCENT, "SHOVesting: invalid unlock percentages");
require(params.shoToken != params.refundToken, "SHOVesting: same tokens");
if (address(params.refundToken) != address(0)) {
require(params.refundStartTime >= params.startTime, "SHOVesting: invalid refundStartTime");
require(params.refundEndTime > params.refundStartTime, "SHOVesting: invalid refundEndTime");
require(params.refundReceiver != address(0), "SHOVesting: invalid refundReceiver");
} else {
require(params.refundStartTime == 0, "SHOVesting: invalid refundStartTime");
require(params.refundEndTime == 0, "SHOVesting: invalid refundEndTime");
require(params.refundReceiver == address(0), "SHOVesting: invalid refundReceiver");
}
shoToken = params.shoToken;
unlockPercentages = _unlockPercentages;
unlockPeriods = _unlockPeriods;
baseFeePercentage1 = params.baseFeePercentage1;
feeCollector = params.feeCollector;
startTime = params.startTime;
refundToken = params.refundToken;
refundReceiver = params.refundReceiver;
refundStartTime = params.refundStartTime;
refundEndTime = params.refundEndTime;
whitelistingAllowed = true;
}
/**
* @notice Allows to withdraw remaining refund token balance.
*/
function recoverRefundToken() external {
require(msg.sender == owner() || msg.sender == refundReceiver, "SHOVesting: unauthorized");
refundToken.safeTransfer(refundReceiver, refundToken.balanceOf(address(this)));
}
/**
* @notice Owner whitelists addresses their given allocations.
* @param userAddresses User addresses to whitelist
* @param allocations Users allocation
* @param last Disable Whitelisting after last whitelist
*/
function whitelistUsers(
address[] calldata userAddresses,
uint120[] calldata allocations,
uint120[] calldata refundableAmounts,
bool[] calldata blocked,
bool last
) external onlyOwner {
require(whitelistingAllowed, "SHOVesting: whitelisting not allowed anymore");
require(userAddresses.length != 0, "SHOVesting: zero length array");
require(userAddresses.length == allocations.length, "SHOVesting: different array lengths");
require(userAddresses.length == refundableAmounts.length, "SHOVesting: different array lengths");
require(userAddresses.length == blocked.length, "SHOVesting: different array lengths");
uint120 _globalTotalAllocation1;
uint120 _totalRefundableAmount;
for (uint256 i; i < userAddresses.length; i++) {
address userAddress = userAddresses[i];
if (userAddress == feeCollector) {
globalTotalAllocation1 += allocations[i];
extraFees1Allocation += _applyBaseFee(allocations[i]);
continue;
}
require(users1[userAddress].allocation == 0, "SHOVesting: already whitelisted");
users1[userAddress].allocation = allocations[i];
users1[userAddress].refundableAmount = refundableAmounts[i];
blockedUsers[userAddress] = blocked[i];
_globalTotalAllocation1 += allocations[i];
_totalRefundableAmount += refundableAmounts[i];
emit Whitelist(userAddresses[i], allocations[i], refundableAmounts[i], blocked[i]);
}
globalTotalAllocation1 += _globalTotalAllocation1;
totalRefundableAmount += _totalRefundableAmount;
if (last) {
whitelistingAllowed = false;
}
}
/**
* @notice Allows owner to block some wallets from claiming.
* @dev Used for wallets that don't complete offchain requirements.
* @param userAddresses User addresses to block/unblock
* @param state Whether to block/unblock
*/
function blockUsers(address[] calldata userAddresses, bool state) external onlyOwner {
require(state == false, "SHOVesting: only unblocking allowed");
for (uint i; i < userAddresses.length; i++) {
blockedUsers[userAddresses[i]] = state;
}
emit BlockUsers(userAddresses, state);
}
/**
* @notice Whitelisted users can claim their available tokens.
* @dev There's still the baseFee deducted from their allocation.
* @param userAddress The user address to claim tokens for.
*/
function claimUser1(address userAddress) onlyWhitelistedUser(userAddress) public nonReentrant returns (uint120 amountToClaim) {
update();
User memory user = users1[userAddress];
if (userAddress != msg.sender) {
require(block.timestamp > refundEndTime, "SHOVesting: refund period");
}
require(passedUnlocksCount > 0, "SHOVesting: no unlocks passed");
require(user.claimedUnlocksCount < passedUnlocksCount, "SHOVesting: nothing to claim");
require(!user.refunded, "SHOVesting: refunded");
require(!blockedUsers[userAddress], "SHOVesting: blocked");
uint16 currentUnlock = passedUnlocksCount - 1;
if (user.eliminatedAfterUnlock > 0) {
require(user.claimedUnlocksCount < user.eliminatedAfterUnlock, "SHOVesting: nothing to claim");
currentUnlock = user.eliminatedAfterUnlock - 1;
}
uint32 lastUnlockPercentage = user.claimedUnlocksCount > 0 ? unlockPercentages[user.claimedUnlocksCount - 1] : 0;
amountToClaim = _applyPercentage(user.allocation, unlockPercentages[currentUnlock] - lastUnlockPercentage);
amountToClaim = _applyBaseFee(amountToClaim);
user.claimedUnlocksCount = currentUnlock + 1;
users1[userAddress] = user;
shoToken.safeTransfer(userAddress, amountToClaim);
emit Claim(userAddress, currentUnlock, amountToClaim);
}
/**
* @notice Sender claims tokens.
*/
function claimUser1() external returns (uint120 amountToClaim) {
return claimUser1(msg.sender);
}
/**
* @notice The sender gets refunded in sale token and forfeits all vested tokens.
*/
function refund() external nonReentrant {
update();
require(block.timestamp >= refundStartTime && block.timestamp <= refundEndTime, "SHOVesting: no refund period");
address userAddress = msg.sender;
User storage user = users1[userAddress];
require(user.claimedUnlocksCount == 0, "SHOVesting: claimed");
require(user.eliminatedAfterUnlock == 0, "SHOVesting: eliminated");
require(user.refundableAmount > 0, "SHOVesting: not refundable");
require(!user.refunded, "SHOVesting: already refunded");
uint120 refundAmount = user.refundableAmount;
shoToken.safeTransfer(refundReceiver, user.allocation);
refundToken.safeTransfer(userAddress, refundAmount);
totalRefundedAllocation += user.allocation;
totalRefundedAmount += refundAmount;
user.refunded = true;
emit Refund(userAddress, refundAmount);
}
/**
* @notice Removes all the future allocation of passed user addresses.
* @dev Users can still claim the unlock they were eliminated in.
* @param userAddresses Whitelisted user addresses to eliminate
*/
function eliminateUsers1(address[] calldata userAddresses) external onlyOwner {
update();
require(passedUnlocksCount > 0, "SHOVesting: no unlocks passed");
uint16 currentUnlock = passedUnlocksCount - 1;
require(currentUnlock < unlockPeriods.length - 1, "SHOVesting: eliminating in the last unlock");
for (uint256 i; i < userAddresses.length; i++) {
address userAddress = userAddresses[i];
User memory user = users1[userAddress];
require(user.allocation > 0, "SHOVesting: not whitelisted");
require(!user.refunded, "SHOVesting: refunded");
require(user.eliminatedAfterUnlock == 0, "SHOVesting: already eliminated");
uint120 userAllocation = _applyBaseFee(user.allocation);
uint120 uncollectable = _applyPercentage(userAllocation, unlockPercentages[currentUnlock]);
extraFees1Allocation += userAllocation;
extraFees1AllocationUncollectable += uncollectable;
users1[userAddress].eliminatedAfterUnlock = currentUnlock + 1;
emit UserElimination(userAddress, currentUnlock);
}
}
/**
* @notice Claims fees from all users.
* @dev The fees are collectable not depedning on if users are claiming.
* @dev Anybody can call this but the fees go to the fee collector.
* @dev If some users are refunded after collecting fees, the fee collector is responsible for rebalancing.
*/
function collectFees() external nonReentrant returns (uint120 baseFee, uint120 extraFee) {
update();
require(collectedFeesUnlocksCount < passedUnlocksCount, "SHOVesting: no fees to collect");
uint16 currentUnlock = passedUnlocksCount - 1;
uint32 lastUnlockPercentage = collectedFeesUnlocksCount > 0 ? unlockPercentages[collectedFeesUnlocksCount - 1] : 0;
uint120 globalAllocation1 = _applyPercentage(globalTotalAllocation1 - totalRefundedAllocation, unlockPercentages[currentUnlock] - lastUnlockPercentage);
baseFee = _applyPercentage(globalAllocation1, baseFeePercentage1);
uint120 extraFees1AllocationTillNow = _applyPercentage(extraFees1Allocation, unlockPercentages[currentUnlock]);
extraFee = extraFees1AllocationTillNow - extraFees1AllocationUncollectable;
extraFees1AllocationUncollectable = extraFees1AllocationTillNow;
uint120 totalFee = baseFee + extraFee;
collectedFeesUnlocksCount = currentUnlock + 1;
shoToken.safeTransfer(feeCollector, totalFee);
emit FeeCollection(currentUnlock, totalFee, extraFee);
}
/**
* @notice Updates passedUnlocksCount.
*/
function update() public {
uint16 _passedUnlocksCount = getPassedUnlocksCount();
if (_passedUnlocksCount > passedUnlocksCount) {
passedUnlocksCount = _passedUnlocksCount;
emit Update(_passedUnlocksCount);
}
}
// PUBLIC VIEW FUNCTIONS
function getPassedUnlocksCount() public view returns (uint16 _passedUnlocksCount) {
require(block.timestamp >= startTime, "SHOVesting: before startTime");
uint256 timeSinceStart = block.timestamp - startTime;
uint256 maxReleases = unlockPeriods.length;
_passedUnlocksCount = passedUnlocksCount;
while (_passedUnlocksCount < maxReleases && timeSinceStart >= unlockPeriods[_passedUnlocksCount]) {
_passedUnlocksCount++;
}
}
function getTotalUnlocksCount() public view returns (uint16 totalUnlocksCount) {
return uint16(unlockPercentages.length);
}
// PRIVATE FUNCTIONS
function _applyPercentage(uint120 value, uint32 percentage) private pure returns (uint120) {
return uint120(uint256(value) * percentage / HUNDRED_PERCENT);
}
function _applyBaseFee(uint120 value) private view returns (uint120) {
return value - _applyPercentage(value, baseFeePercentage1);
}
function _buildArraySum(uint32[] memory diffArray) internal pure returns (uint32[] memory) {
uint256 len = diffArray.length;
uint32[] memory sumArray = new uint32[](len);
uint32 lastSum = 0;
for (uint256 i; i < len; i++) {
if (i > 0) {
lastSum = sumArray[i - 1];
}
sumArray[i] = lastSum + diffArray[i];
}
return sumArray;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* 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 OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_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);
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.2;
import "../../utils/AddressUpgradeable.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```solidity
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
*
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
* constructor.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
"Initializable: contract is already initialized"
);
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: setting the version to 255 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint8 version) {
require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized != type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint8) {
return _initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _initializing;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @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 ReentrancyGuardUpgradeable is Initializable {
// 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;
function __ReentrancyGuard_init() internal onlyInitializing {
__ReentrancyGuard_init_unchained();
}
function __ReentrancyGuard_init_unchained() internal onlyInitializing {
_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;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// 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 AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* 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 `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @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
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"userAddresses","type":"address[]"},{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"BlockUsers","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint16","name":"currentUnlock","type":"uint16"},{"indexed":false,"internalType":"uint120","name":"claimedTokens","type":"uint120"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"currentUnlock","type":"uint16"},{"indexed":false,"internalType":"uint120","name":"totalFee","type":"uint120"},{"indexed":false,"internalType":"uint120","name":"extraFee","type":"uint120"}],"name":"FeeCollection","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"refundAmount","type":"uint256"}],"name":"Refund","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"passedUnlocksCount","type":"uint16"}],"name":"Update","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint16","name":"currentUnlock","type":"uint16"}],"name":"UserElimination","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint120","name":"allocation","type":"uint120"},{"indexed":false,"internalType":"uint120","name":"refundableAmount","type":"uint120"},{"indexed":false,"internalType":"bool","name":"blocked","type":"bool"}],"name":"Whitelist","type":"event"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseFeePercentage1","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"userAddresses","type":"address[]"},{"internalType":"bool","name":"state","type":"bool"}],"name":"blockUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blockedUsers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"claimUser1","outputs":[{"internalType":"uint120","name":"amountToClaim","type":"uint120"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimUser1","outputs":[{"internalType":"uint120","name":"amountToClaim","type":"uint120"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectFees","outputs":[{"internalType":"uint120","name":"baseFee","type":"uint120"},{"internalType":"uint120","name":"extraFee","type":"uint120"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectedFeesUnlocksCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"userAddresses","type":"address[]"}],"name":"eliminateUsers1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"extraFees1Allocation","outputs":[{"internalType":"uint120","name":"","type":"uint120"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extraFees1AllocationUncollectable","outputs":[{"internalType":"uint120","name":"","type":"uint120"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPassedUnlocksCount","outputs":[{"internalType":"uint16","name":"_passedUnlocksCount","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalUnlocksCount","outputs":[{"internalType":"uint16","name":"totalUnlocksCount","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalTotalAllocation1","outputs":[{"internalType":"uint120","name":"","type":"uint120"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20","name":"shoToken","type":"address"},{"internalType":"uint32[]","name":"unlockPercentagesDiff","type":"uint32[]"},{"internalType":"uint32[]","name":"unlockPeriodsDiff","type":"uint32[]"},{"internalType":"uint32","name":"baseFeePercentage1","type":"uint32"},{"internalType":"address","name":"feeCollector","type":"address"},{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"contract IERC20","name":"refundToken","type":"address"},{"internalType":"address","name":"refundReceiver","type":"address"},{"internalType":"uint64","name":"refundStartTime","type":"uint64"},{"internalType":"uint64","name":"refundEndTime","type":"uint64"}],"internalType":"struct SHOVesting.InitParameters","name":"params","type":"tuple"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverRefundToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"refundEndTime","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundStartTime","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shoToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRefundableAmount","outputs":[{"internalType":"uint120","name":"","type":"uint120"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRefundedAllocation","outputs":[{"internalType":"uint120","name":"","type":"uint120"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRefundedAmount","outputs":[{"internalType":"uint120","name":"","type":"uint120"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"unlockPercentages","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"unlockPeriods","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"users1","outputs":[{"internalType":"uint120","name":"allocation","type":"uint120"},{"internalType":"uint120","name":"refundableAmount","type":"uint120"},{"internalType":"uint16","name":"claimedUnlocksCount","type":"uint16"},{"internalType":"uint16","name":"eliminatedAfterUnlock","type":"uint16"},{"internalType":"bool","name":"refunded","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"userAddresses","type":"address[]"},{"internalType":"uint120[]","name":"allocations","type":"uint120[]"},{"internalType":"uint120[]","name":"refundableAmounts","type":"uint120[]"},{"internalType":"bool[]","name":"blocked","type":"bool[]"},{"internalType":"bool","name":"last","type":"bool"}],"name":"whitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b506136fd806100206000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80639b442e3f11610125578063cd1e0355116100ad578063db81213a1161007c578063db81213a1461056c578063f2fde38b14610586578063f53014b414610599578063ffa1ad74146105ac578063ffec0fb5146105b457600080fd5b8063cd1e035514610513578063d1dfb8dc14610526578063d713c3041461053b578063da40ea1d1461055557600080fd5b8063ba93f699116100f4578063ba93f699146104aa578063c31c0018146104bd578063c415b95c146104d0578063c736e1ff146104e3578063c8796572146104eb57600080fd5b80639b442e3f14610470578063a2e6204514610487578063a92b51611461048f578063b28e20c0146104a257600080fd5b8063677375c3116101a857806378e979251161017757806378e97925146103f7578063798c87ce1461041157806388a60946146104395780638da5cb5b1461044c57806399230a031461045d57600080fd5b8063677375c3146103905780636aba899b146103aa578063715018a6146103dc57806373fddd16146103e457600080fd5b80633af2d5e7116101ef5780633af2d5e714610303578063464a59c714610336578063590e1ae31461034a5780635cb732be14610352578063604445fd1461037d57600080fd5b80630118528514610221578063063240441461025157806320b2ec121461025b5780632a8b279a1461026e575b600080fd5b60a254610234906001600160781b031681565b6040516001600160781b0390911681526020015b60405180910390f35b6102596105c7565b005b61025961026936600461308e565b6106d4565b6102c761027c366004613033565b609760205260009081526040902080546001909101546001600160781b0380831692600160781b81049091169161ffff600160f01b90920482169181169060ff620100009091041685565b604080516001600160781b03968716815295909416602086015261ffff928316938501939093521660608301521515608082015260a001610248565b610326610311366004613033565b60986020526000908152604090205460ff1681565b6040519015158152602001610248565b609f5461032690600160401b900460ff1681565b610259610d88565b609d54610365906001600160a01b031681565b6040516001600160a01b039091168152602001610248565b61025961038b36600461315f565b6110b9565b60a05461023490600160781b90046001600160781b031681565b609e546103c490600160a01b90046001600160401b031681565b6040516001600160401b039091168152602001610248565b6102596111db565b609f546103c4906001600160401b031681565b609b546103c490600160a01b90046001600160401b031681565b61042461041f36600461324a565b6111ed565b60405163ffffffff9091168152602001610248565b61025961044736600461304f565b611227565b6033546001600160a01b0316610365565b60a054610234906001600160781b031681565b6099545b60405161ffff9091168152602001610248565b61025961165a565b609e54610365906001600160a01b031681565b6104746116dd565b6104246104b836600461324a565b6117f0565b6102346104cb366004613033565b611800565b609c54610365906001600160a01b031681565b610234611d60565b6104f3611d70565b604080516001600160781b03938416815292909116602083015201610248565b60a154610234906001600160781b031681565b60a15461047490600160781b900461ffff1681565b60a15461023490600160881b90046001600160781b031681565b609c5461042490600160a01b900463ffffffff1681565b609f5461023490600160581b90046001600160781b031681565b610259610594366004613033565b612039565b609b54610365906001600160a01b031681565b610424600281565b6102596105c23660046131eb565b6120af565b6033546001600160a01b03163314806105ea5750609e546001600160a01b031633145b61063b5760405162461bcd60e51b815260206004820152601860248201527f53484f56657374696e673a20756e617574686f72697a6564000000000000000060448201526064015b60405180910390fd5b609e54609d546040516370a0823160e01b81523060048201526106d2926001600160a01b039081169216906370a082319060240160206040518083038186803b15801561068757600080fd5b505afa15801561069b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bf9190613262565b609d546001600160a01b03169190612941565b565b6106dc612998565b609f54600160401b900460ff1661074a5760405162461bcd60e51b815260206004820152602c60248201527f53484f56657374696e673a2077686974656c697374696e67206e6f7420616c6c60448201526b6f77656420616e796d6f726560a01b6064820152608401610632565b876107975760405162461bcd60e51b815260206004820152601d60248201527f53484f56657374696e673a207a65726f206c656e6774682061727261790000006044820152606401610632565b8786146107b65760405162461bcd60e51b8152600401610632906133f2565b8784146107d55760405162461bcd60e51b8152600401610632906133f2565b8782146107f45760405162461bcd60e51b8152600401610632906133f2565b60008060005b8a811015610cd15760008c8c8381811061082457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108399190613033565b609c549091506001600160a01b0380831691161415610956578a8a8381811061087257634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108879190613223565b609f8054600b906108a9908490600160581b90046001600160781b0316613508565b92506101000a8154816001600160781b0302191690836001600160781b0316021790555061090a8b8b848181106108f057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109059190613223565b6129f2565b60a1805460119061092c908490600160881b90046001600160781b0316613508565b92506101000a8154816001600160781b0302191690836001600160781b0316021790555050610cbf565b6001600160a01b0381166000908152609760205260409020546001600160781b0316156109c55760405162461bcd60e51b815260206004820152601f60248201527f53484f56657374696e673a20616c72656164792077686974656c6973746564006044820152606401610632565b8a8a838181106109e557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109fa9190613223565b6001600160a01b038216600090815260976020526040902080546001600160781b0319166001600160781b0392909216919091179055888883818110610a5057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610a659190613223565b6001600160a01b038216600090815260976020526040902080546001600160781b0392909216600160781b026effffffffffffffffffffffffffffff60781b19909216919091179055868683818110610ace57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610ae391906131b3565b6001600160a01b0382166000908152609860205260409020805460ff19169115159190911790558a8a83818110610b2a57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610b3f9190613223565b610b499085613508565b9350888883818110610b6b57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610b809190613223565b610b8a9084613508565b92507f3a9b7a2dffb40f829e443936354abff0032a8bd6064e8abf40c7ff99914238808d8d84818110610bcd57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610be29190613033565b8c8c85818110610c0257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c179190613223565b8b8b86818110610c3757634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c4c9190613223565b8a8a87818110610c6c57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c8191906131b3565b604080516001600160a01b039590951685526001600160781b03938416602086015291909216908301521515606082015260800160405180910390a1505b80610cc981613673565b9150506107fa565b5081609f600b8282829054906101000a90046001600160781b0316610cf69190613508565b92506101000a8154816001600160781b0302191690836001600160781b031602179055508060a0600f8282829054906101000a90046001600160781b0316610d3e9190613508565b92506101000a8154816001600160781b0302191690836001600160781b031602179055508215610d7b57609f805468ff0000000000000000191690555b5050505050505050505050565b610d90612a20565b610d9861165a565b609e54600160a01b90046001600160401b03164210801590610dc55750609f546001600160401b03164211155b610e115760405162461bcd60e51b815260206004820152601c60248201527f53484f56657374696e673a206e6f20726566756e6420706572696f64000000006044820152606401610632565b3360008181526097602052604090208054600160f01b900461ffff1615610e705760405162461bcd60e51b815260206004820152601360248201527214d213d5995cdd1a5b99ce8818db185a5b5959606a1b6044820152606401610632565b600181015461ffff1615610ebf5760405162461bcd60e51b815260206004820152601660248201527514d213d5995cdd1a5b99ce88195b1a5b5a5b985d195960521b6044820152606401610632565b8054600160781b90046001600160781b0316610f1d5760405162461bcd60e51b815260206004820152601a60248201527f53484f56657374696e673a206e6f7420726566756e6461626c650000000000006044820152606401610632565b600181015462010000900460ff1615610f785760405162461bcd60e51b815260206004820152601c60248201527f53484f56657374696e673a20616c726561647920726566756e646564000000006044820152606401610632565b8054609e54609b546001600160781b03600160781b8404811693610faa936001600160a01b0393841693169116612941565b609d54610fca906001600160a01b0316846001600160781b038416612941565b815460a080546001600160781b0392831692600091610feb91859116613508565b92506101000a8154816001600160781b0302191690836001600160781b031602179055508060a160008282829054906101000a90046001600160781b03166110339190613508565b82546101009290920a6001600160781b038181021990931691831602179091556001840180546201000062ff000019909116179055604080516001600160a01b038716815291841660208301527fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d92500160405180910390a15050506106d26001606555565b6110c1612998565b801561111b5760405162461bcd60e51b815260206004820152602360248201527f53484f56657374696e673a206f6e6c7920756e626c6f636b696e6720616c6c6f6044820152621dd95960ea1b6064820152608401610632565b60005b8281101561119a57816098600086868581811061114b57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906111609190613033565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061119281613673565b91505061111e565b507f934de86aac2bd6f5a4967899f3a725630a82f782f5965e4eae50a454a953de4b8383836040516111ce939291906132e1565b60405180910390a1505050565b6111e3612998565b6106d26000612a81565b609981815481106111fd57600080fd5b9060005260206000209060089182820401919006600402915054906101000a900463ffffffff1681565b61122f612998565b61123761165a565b609f54600160481b900461ffff166112915760405162461bcd60e51b815260206004820152601d60248201527f53484f56657374696e673a206e6f20756e6c6f636b73207061737365640000006044820152606401610632565b609f546000906112ae90600190600160481b900461ffff166135d6565b609a549091506112c0906001906135f1565b8161ffff16106113255760405162461bcd60e51b815260206004820152602a60248201527f53484f56657374696e673a20656c696d696e6174696e6720696e20746865206c60448201526961737420756e6c6f636b60b01b6064820152608401610632565b60005b8281101561165457600084848381811061135257634e487b7160e01b600052603260045260246000fd5b90506020020160208101906113679190613033565b6001600160a01b038116600090815260976020908152604091829020825160a08101845281546001600160781b03808216808452600160781b830490911694830194909452600160f01b900461ffff9081169482019490945260019091015492831660608201526201000090920460ff16151560808301529192509061142f5760405162461bcd60e51b815260206004820152601b60248201527f53484f56657374696e673a206e6f742077686974656c697374656400000000006044820152606401610632565b8060800151156114785760405162461bcd60e51b815260206004820152601460248201527314d213d5995cdd1a5b99ce881c99599d5b99195960621b6044820152606401610632565b606081015161ffff16156114ce5760405162461bcd60e51b815260206004820152601e60248201527f53484f56657374696e673a20616c726561647920656c696d696e6174656400006044820152606401610632565b60006114dd82600001516129f2565b905060006115358260998861ffff168154811061150a57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff16612ad3565b90508160a160118282829054906101000a90046001600160781b031661155b9190613508565b92506101000a8154816001600160781b0302191690836001600160781b031602179055508060a260008282829054906101000a90046001600160781b03166115a39190613508565b92506101000a8154816001600160781b0302191690836001600160781b031602179055508560016115d49190613533565b6001600160a01b038516600081815260976020908152604091829020600101805461ffff191661ffff9586161790558151928352928916928201929092527f2e534232be2bba1dbb7d9f42a931f682e70335382d04258ae54c1e4f7f3fbbea910160405180910390a150505050808061164c90613673565b915050611328565b50505050565b60006116646116dd565b609f5490915061ffff600160481b909104811690821611156116da57609f80546affff0000000000000000001916600160481b61ffff8416908102919091179091556040519081527f51d949e894d194a06df7af6fb215f324ab4717f75f3b9efcb57210c3a68087259060200160405180910390a15b50565b609b54600090600160a01b90046001600160401b03164210156117425760405162461bcd60e51b815260206004820152601c60248201527f53484f56657374696e673a206265666f726520737461727454696d65000000006044820152606401610632565b609b5460009061176290600160a01b90046001600160401b0316426135f1565b609a54609f54600160481b900461ffff1693509091505b808361ffff161080156117d45750609a8361ffff16815481106117ac57634e487b7160e01b600052603260045260246000fd5b6000918252602090912060088204015460079091166004026101000a900463ffffffff168210155b156117eb57826117e381613651565b935050611779565b505090565b609a81815481106111fd57600080fd5b6001600160a01b03811660009081526097602052604081205482906001600160781b03166118705760405162461bcd60e51b815260206004820152601b60248201527f53484f56657374696e673a206e6f742077686974656c697374656400000000006044820152606401610632565b611878612a20565b61188061165a565b6001600160a01b038316600081815260976020908152604091829020825160a08101845281546001600160781b038082168352600160781b8204169382019390935261ffff600160f01b90930483169381019390935260010154908116606083015260ff62010000909104161515608082015290331461195457609f546001600160401b031642116119545760405162461bcd60e51b815260206004820152601960248201527f53484f56657374696e673a20726566756e6420706572696f64000000000000006044820152606401610632565b609f54600160481b900461ffff166119ae5760405162461bcd60e51b815260206004820152601d60248201527f53484f56657374696e673a206e6f20756e6c6f636b73207061737365640000006044820152606401610632565b609f54604082015161ffff600160481b9092048216911610611a125760405162461bcd60e51b815260206004820152601c60248201527f53484f56657374696e673a206e6f7468696e6720746f20636c61696d000000006044820152606401610632565b806080015115611a5b5760405162461bcd60e51b815260206004820152601460248201527314d213d5995cdd1a5b99ce881c99599d5b99195960621b6044820152606401610632565b6001600160a01b03841660009081526098602052604090205460ff1615611aba5760405162461bcd60e51b815260206004820152601360248201527214d213d5995cdd1a5b99ce88189b1bd8dad959606a1b6044820152606401610632565b609f54600090611ad790600190600160481b900461ffff166135d6565b606083015190915061ffff1615611b5b57816060015161ffff16826040015161ffff1610611b475760405162461bcd60e51b815260206004820152601c60248201527f53484f56657374696e673a206e6f7468696e6720746f20636c61696d000000006044820152606401610632565b60018260600151611b5891906135d6565b90505b600080836040015161ffff1611611b73576000611bcf565b609960018460400151611b8691906135d6565b61ffff1681548110611ba857634e487b7160e01b600052603260045260246000fd5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff165b9050611c3483600001518260998561ffff1681548110611bff57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff16611c2f9190613608565b612ad3565b9450611c3f856129f2565b9450611c4c826001613533565b61ffff90811660408086019182526001600160a01b03808a16600090815260976020908152929020875181549389015194518616600160f01b026001600160f01b036001600160781b03968716600160781b026001600160f01b031990961692871692909217949094171692909217825560608701516001909201805460808901511515620100000262ffffff199091169390951692909217939093179055609b54611cfd92169088908816612941565b6040805161ffff841681526001600160781b03871660208201526001600160a01b038816917fe53ee7234965d7ed82340b976c78e38c0fa06bb7ac6864bec5277059d4967b53910160405180910390a2505050611d5a6001606555565b50919050565b6000611d6b33611800565b905090565b600080611d7b612a20565b611d8361165a565b609f5460a154600160481b90910461ffff908116600160781b9092041610611ded5760405162461bcd60e51b815260206004820152601e60248201527f53484f56657374696e673a206e6f206665657320746f20636f6c6c65637400006044820152606401610632565b609f54600090611e0a90600190600160481b900461ffff166135d6565b60a154909150600090600160781b900461ffff16611e29576000611e8f565b60a154609990611e4690600190600160781b900461ffff166135d6565b61ffff1681548110611e6857634e487b7160e01b600052603260045260246000fd5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff165b60a054609f54919250600091611ee391611ebd916001600160781b0391821691600160581b909104166135ae565b8360998661ffff1681548110611bff57634e487b7160e01b600052603260045260246000fd5b9050611f0181609c60149054906101000a900463ffffffff16612ad3565b94506000611f4360a160119054906101000a90046001600160781b031660998661ffff168154811061150a57634e487b7160e01b600052603260045260246000fd5b60a254909150611f5c906001600160781b0316826135ae565b60a280546001600160781b0319166001600160781b03841617905594506000611f858688613508565b9050611f92856001613533565b60a1805461ffff92909216600160781b0261ffff60781b19909216919091179055609c54609b54611fd9916001600160a01b0391821691166001600160781b038416612941565b6040805161ffff871681526001600160781b03838116602083015288168183015290517fcadc637e639b10c483bc9665c0f04cdd10478b94d3c7afd157af7499e05cb5df9181900360600190a150505050506120356001606555565b9091565b612041612998565b6001600160a01b0381166120a65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610632565b6116da81612a81565b600054610100900460ff16158080156120cf5750600054600160ff909116105b806120e95750303b1580156120e9575060005460ff166001145b61214c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610632565b6000805460ff19166001179055801561216f576000805461ff0019166101001790555b612177612b03565b61217f612b32565b600061218e6020840184613033565b6001600160a01b031614156121f05760405162461bcd60e51b815260206004820152602260248201527f53484f56657374696e673a2073686f20746f6b656e207a65726f206164647265604482015261737360f01b6064820152608401610632565b60006121ff60208401846134c1565b90501161224e5760405162461bcd60e51b815260206004820181905260248201527f53484f56657374696e673a203020756e6c6f636b2070657263656e74616765736044820152606401610632565b61225b60208301836134c1565b905061226a60408401846134c1565b9050146122895760405162461bcd60e51b8152600401610632906133f2565b620f424061229d608084016060850161327a565b63ffffffff16111561230c5760405162461bcd60e51b815260206004820152603260248201527f53484f56657374696e673a2062617365206665652070657263656e74616765206044820152713120686967686572207468616e203130302560701b6064820152608401610632565b600061231e60a0840160808501613033565b6001600160a01b031614156123845760405162461bcd60e51b815260206004820152602660248201527f53484f56657374696e673a2066656520636f6c6c6563746f72207a65726f206160448201526564647265737360d01b6064820152608401610632565b4261239560c0840160a0850161329e565b6001600160401b0316116123fc5760405162461bcd60e51b815260206004820152602860248201527f53484f56657374696e673a2073746172742074696d65206d75737420626520696044820152676e2066757475726560c01b6064820152608401610632565b600061244561240e60208501856134c1565b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612b6192505050565b9050600061245961240e60408601866134c1565b9050620f424063ffffffff16826001845161247491906135f1565b8151811061249257634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff16146124fc5760405162461bcd60e51b815260206004820152602660248201527f53484f56657374696e673a20696e76616c696420756e6c6f636b2070657263656044820152656e746167657360d01b6064820152608401610632565b61250c60e0850160c08601613033565b6001600160a01b03166125226020860186613033565b6001600160a01b031614156125795760405162461bcd60e51b815260206004820152601760248201527f53484f56657374696e673a2073616d6520746f6b656e730000000000000000006044820152606401610632565b600061258b60e0860160c08701613033565b6001600160a01b03161461267d576125a960c0850160a0860161329e565b6001600160401b03166125c46101208601610100870161329e565b6001600160401b031610156125eb5760405162461bcd60e51b81526004016106329061336d565b6125fd6101208501610100860161329e565b6001600160401b03166126186101408601610120870161329e565b6001600160401b03161161263e5760405162461bcd60e51b815260040161063290613480565b6000612651610100860160e08701613033565b6001600160a01b031614156126785760405162461bcd60e51b8152600401610632906133b0565b612726565b61268f6101208501610100860161329e565b6001600160401b0316156126b55760405162461bcd60e51b81526004016106329061336d565b6126c76101408501610120860161329e565b6001600160401b0316156126ed5760405162461bcd60e51b815260040161063290613480565b6000612700610100860160e08701613033565b6001600160a01b0316146127265760405162461bcd60e51b8152600401610632906133b0565b6127336020850185613033565b609b80546001600160a01b0319166001600160a01b03929092169190911790558151612766906099906020850190612f26565b50805161277a90609a906020840190612f26565b5061278b608085016060860161327a565b609c805463ffffffff92909216600160a01b0263ffffffff60a01b199092169190911790556127c060a0850160808601613033565b609c80546001600160a01b0319166001600160a01b03929092169190911790556127f060c0850160a0860161329e565b609b80546001600160401b0392909216600160a01b0267ffffffffffffffff60a01b1990921691909117905561282c60e0850160c08601613033565b609d80546001600160a01b0319166001600160a01b039290921691909117905561285d610100850160e08601613033565b609e80546001600160a01b0319166001600160a01b039290921691909117905561288f6101208501610100860161329e565b609e80546001600160401b0392909216600160a01b0267ffffffffffffffff60a01b199092169190911790556128cd6101408501610120860161329e565b609f805468ffffffffffffffffff19166001600160401b039290921691909117600160401b1790555050801561293d576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612993908490612c85565b505050565b6033546001600160a01b031633146106d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610632565b6000612a1082609c60149054906101000a900463ffffffff16612ad3565b612a1a90836135ae565b92915050565b60026065541415612a735760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610632565b6002606555565b6001606555565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000620f4240612af263ffffffff84166001600160781b03861661358f565b612afc919061356f565b9392505050565b600054610100900460ff16612b2a5760405162461bcd60e51b815260040161063290613435565b6106d2612d57565b600054610100900460ff16612b595760405162461bcd60e51b815260040161063290613435565b6106d2612d7e565b80516060906000816001600160401b03811115612b8e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612bb7578160200160208202803683370190505b5090506000805b83811015612c7b578015612c015782612bd86001836135f1565b81518110612bf657634e487b7160e01b600052603260045260246000fd5b602002602001015191505b858181518110612c2157634e487b7160e01b600052603260045260246000fd5b602002602001015182612c349190613550565b838281518110612c5457634e487b7160e01b600052603260045260246000fd5b63ffffffff9092166020928302919091019091015280612c7381613673565b915050612bbe565b5090949350505050565b6000612cda826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612dae9092919063ffffffff16565b8051909150156129935780806020019051810190612cf891906131cf565b6129935760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610632565b600054610100900460ff16612a7a5760405162461bcd60e51b815260040161063290613435565b600054610100900460ff16612da55760405162461bcd60e51b815260040161063290613435565b6106d233612a81565b6060612dbd8484600085612dc5565b949350505050565b606082471015612e265760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610632565b843b612e745760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610632565b600080866001600160a01b03168587604051612e9091906132c5565b60006040518083038185875af1925050503d8060008114612ecd576040519150601f19603f3d011682016040523d82523d6000602084013e612ed2565b606091505b5091509150612ee2828286612eed565b979650505050505050565b60608315612efc575081612afc565b825115612f0c5782518084602001fd5b8160405162461bcd60e51b8152600401610632919061333a565b82805482825590600052602060002090600701600890048101928215612fc55791602002820160005b83821115612f9357835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302612f4f565b8015612fc35782816101000a81549063ffffffff0219169055600401602081600301049283019260010302612f93565b505b50612fd1929150612fd5565b5090565b5b80821115612fd15760008155600101612fd6565b60008083601f840112612ffb578182fd5b5081356001600160401b03811115613011578182fd5b6020830191508360208260051b850101111561302c57600080fd5b9250929050565b600060208284031215613044578081fd5b8135612afc816136a4565b60008060208385031215613061578081fd5b82356001600160401b03811115613076578182fd5b61308285828601612fea565b90969095509350505050565b600080600080600080600080600060a08a8c0312156130ab578485fd5b89356001600160401b03808211156130c1578687fd5b6130cd8d838e01612fea565b909b50995060208c01359150808211156130e5578687fd5b6130f18d838e01612fea565b909950975060408c0135915080821115613109578687fd5b6131158d838e01612fea565b909750955060608c013591508082111561312d578485fd5b5061313a8c828d01612fea565b90945092505060808a013561314e816136b9565b809150509295985092959850929598565b600080600060408486031215613173578283fd5b83356001600160401b03811115613188578384fd5b61319486828701612fea565b90945092505060208401356131a8816136b9565b809150509250925092565b6000602082840312156131c4578081fd5b8135612afc816136b9565b6000602082840312156131e0578081fd5b8151612afc816136b9565b6000602082840312156131fc578081fd5b81356001600160401b03811115613211578182fd5b82016101408185031215612afc578182fd5b600060208284031215613234578081fd5b81356001600160781b0381168114612afc578182fd5b60006020828403121561325b578081fd5b5035919050565b600060208284031215613273578081fd5b5051919050565b60006020828403121561328b578081fd5b813563ffffffff81168114612afc578182fd5b6000602082840312156132af578081fd5b81356001600160401b0381168114612afc578182fd5b600082516132d7818460208701613625565b9190910192915050565b6040808252810183905260008460608301825b86811015613324578235613307816136a4565b6001600160a01b03168252602092830192909101906001016132f4565b5080925050508215156020830152949350505050565b6020815260008251806020840152613359816040850160208701613625565b601f01601f19169190910160400192915050565b60208082526023908201527f53484f56657374696e673a20696e76616c696420726566756e64537461727454604082015262696d6560e81b606082015260800190565b60208082526022908201527f53484f56657374696e673a20696e76616c696420726566756e6452656365697660408201526132b960f11b606082015260800190565b60208082526023908201527f53484f56657374696e673a20646966666572656e74206172726179206c656e6760408201526274687360e81b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526021908201527f53484f56657374696e673a20696e76616c696420726566756e64456e6454696d6040820152606560f81b606082015260800190565b6000808335601e198436030181126134d7578283fd5b8301803591506001600160401b038211156134f0578283fd5b6020019150600581901b360382131561302c57600080fd5b60006001600160781b0380831681851680830382111561352a5761352a61368e565b01949350505050565b600061ffff80831681851680830382111561352a5761352a61368e565b600063ffffffff80831681851680830382111561352a5761352a61368e565b60008261358a57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156135a9576135a961368e565b500290565b60006001600160781b03838116908316818110156135ce576135ce61368e565b039392505050565b600061ffff838116908316818110156135ce576135ce61368e565b6000828210156136035761360361368e565b500390565b600063ffffffff838116908316818110156135ce576135ce61368e565b60005b83811015613640578181015183820152602001613628565b838111156116545750506000910152565b600061ffff808316818114156136695761366961368e565b6001019392505050565b60006000198214156136875761368761368e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146116da57600080fd5b80151581146116da57600080fdfea264697066735822122048d60f357c3e28c57b2552cdc94d01a5617f2b06fecedb271af1a5f812c9fac864736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c80639b442e3f11610125578063cd1e0355116100ad578063db81213a1161007c578063db81213a1461056c578063f2fde38b14610586578063f53014b414610599578063ffa1ad74146105ac578063ffec0fb5146105b457600080fd5b8063cd1e035514610513578063d1dfb8dc14610526578063d713c3041461053b578063da40ea1d1461055557600080fd5b8063ba93f699116100f4578063ba93f699146104aa578063c31c0018146104bd578063c415b95c146104d0578063c736e1ff146104e3578063c8796572146104eb57600080fd5b80639b442e3f14610470578063a2e6204514610487578063a92b51611461048f578063b28e20c0146104a257600080fd5b8063677375c3116101a857806378e979251161017757806378e97925146103f7578063798c87ce1461041157806388a60946146104395780638da5cb5b1461044c57806399230a031461045d57600080fd5b8063677375c3146103905780636aba899b146103aa578063715018a6146103dc57806373fddd16146103e457600080fd5b80633af2d5e7116101ef5780633af2d5e714610303578063464a59c714610336578063590e1ae31461034a5780635cb732be14610352578063604445fd1461037d57600080fd5b80630118528514610221578063063240441461025157806320b2ec121461025b5780632a8b279a1461026e575b600080fd5b60a254610234906001600160781b031681565b6040516001600160781b0390911681526020015b60405180910390f35b6102596105c7565b005b61025961026936600461308e565b6106d4565b6102c761027c366004613033565b609760205260009081526040902080546001909101546001600160781b0380831692600160781b81049091169161ffff600160f01b90920482169181169060ff620100009091041685565b604080516001600160781b03968716815295909416602086015261ffff928316938501939093521660608301521515608082015260a001610248565b610326610311366004613033565b60986020526000908152604090205460ff1681565b6040519015158152602001610248565b609f5461032690600160401b900460ff1681565b610259610d88565b609d54610365906001600160a01b031681565b6040516001600160a01b039091168152602001610248565b61025961038b36600461315f565b6110b9565b60a05461023490600160781b90046001600160781b031681565b609e546103c490600160a01b90046001600160401b031681565b6040516001600160401b039091168152602001610248565b6102596111db565b609f546103c4906001600160401b031681565b609b546103c490600160a01b90046001600160401b031681565b61042461041f36600461324a565b6111ed565b60405163ffffffff9091168152602001610248565b61025961044736600461304f565b611227565b6033546001600160a01b0316610365565b60a054610234906001600160781b031681565b6099545b60405161ffff9091168152602001610248565b61025961165a565b609e54610365906001600160a01b031681565b6104746116dd565b6104246104b836600461324a565b6117f0565b6102346104cb366004613033565b611800565b609c54610365906001600160a01b031681565b610234611d60565b6104f3611d70565b604080516001600160781b03938416815292909116602083015201610248565b60a154610234906001600160781b031681565b60a15461047490600160781b900461ffff1681565b60a15461023490600160881b90046001600160781b031681565b609c5461042490600160a01b900463ffffffff1681565b609f5461023490600160581b90046001600160781b031681565b610259610594366004613033565b612039565b609b54610365906001600160a01b031681565b610424600281565b6102596105c23660046131eb565b6120af565b6033546001600160a01b03163314806105ea5750609e546001600160a01b031633145b61063b5760405162461bcd60e51b815260206004820152601860248201527f53484f56657374696e673a20756e617574686f72697a6564000000000000000060448201526064015b60405180910390fd5b609e54609d546040516370a0823160e01b81523060048201526106d2926001600160a01b039081169216906370a082319060240160206040518083038186803b15801561068757600080fd5b505afa15801561069b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bf9190613262565b609d546001600160a01b03169190612941565b565b6106dc612998565b609f54600160401b900460ff1661074a5760405162461bcd60e51b815260206004820152602c60248201527f53484f56657374696e673a2077686974656c697374696e67206e6f7420616c6c60448201526b6f77656420616e796d6f726560a01b6064820152608401610632565b876107975760405162461bcd60e51b815260206004820152601d60248201527f53484f56657374696e673a207a65726f206c656e6774682061727261790000006044820152606401610632565b8786146107b65760405162461bcd60e51b8152600401610632906133f2565b8784146107d55760405162461bcd60e51b8152600401610632906133f2565b8782146107f45760405162461bcd60e51b8152600401610632906133f2565b60008060005b8a811015610cd15760008c8c8381811061082457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108399190613033565b609c549091506001600160a01b0380831691161415610956578a8a8381811061087257634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108879190613223565b609f8054600b906108a9908490600160581b90046001600160781b0316613508565b92506101000a8154816001600160781b0302191690836001600160781b0316021790555061090a8b8b848181106108f057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109059190613223565b6129f2565b60a1805460119061092c908490600160881b90046001600160781b0316613508565b92506101000a8154816001600160781b0302191690836001600160781b0316021790555050610cbf565b6001600160a01b0381166000908152609760205260409020546001600160781b0316156109c55760405162461bcd60e51b815260206004820152601f60248201527f53484f56657374696e673a20616c72656164792077686974656c6973746564006044820152606401610632565b8a8a838181106109e557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109fa9190613223565b6001600160a01b038216600090815260976020526040902080546001600160781b0319166001600160781b0392909216919091179055888883818110610a5057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610a659190613223565b6001600160a01b038216600090815260976020526040902080546001600160781b0392909216600160781b026effffffffffffffffffffffffffffff60781b19909216919091179055868683818110610ace57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610ae391906131b3565b6001600160a01b0382166000908152609860205260409020805460ff19169115159190911790558a8a83818110610b2a57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610b3f9190613223565b610b499085613508565b9350888883818110610b6b57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610b809190613223565b610b8a9084613508565b92507f3a9b7a2dffb40f829e443936354abff0032a8bd6064e8abf40c7ff99914238808d8d84818110610bcd57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610be29190613033565b8c8c85818110610c0257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c179190613223565b8b8b86818110610c3757634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c4c9190613223565b8a8a87818110610c6c57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c8191906131b3565b604080516001600160a01b039590951685526001600160781b03938416602086015291909216908301521515606082015260800160405180910390a1505b80610cc981613673565b9150506107fa565b5081609f600b8282829054906101000a90046001600160781b0316610cf69190613508565b92506101000a8154816001600160781b0302191690836001600160781b031602179055508060a0600f8282829054906101000a90046001600160781b0316610d3e9190613508565b92506101000a8154816001600160781b0302191690836001600160781b031602179055508215610d7b57609f805468ff0000000000000000191690555b5050505050505050505050565b610d90612a20565b610d9861165a565b609e54600160a01b90046001600160401b03164210801590610dc55750609f546001600160401b03164211155b610e115760405162461bcd60e51b815260206004820152601c60248201527f53484f56657374696e673a206e6f20726566756e6420706572696f64000000006044820152606401610632565b3360008181526097602052604090208054600160f01b900461ffff1615610e705760405162461bcd60e51b815260206004820152601360248201527214d213d5995cdd1a5b99ce8818db185a5b5959606a1b6044820152606401610632565b600181015461ffff1615610ebf5760405162461bcd60e51b815260206004820152601660248201527514d213d5995cdd1a5b99ce88195b1a5b5a5b985d195960521b6044820152606401610632565b8054600160781b90046001600160781b0316610f1d5760405162461bcd60e51b815260206004820152601a60248201527f53484f56657374696e673a206e6f7420726566756e6461626c650000000000006044820152606401610632565b600181015462010000900460ff1615610f785760405162461bcd60e51b815260206004820152601c60248201527f53484f56657374696e673a20616c726561647920726566756e646564000000006044820152606401610632565b8054609e54609b546001600160781b03600160781b8404811693610faa936001600160a01b0393841693169116612941565b609d54610fca906001600160a01b0316846001600160781b038416612941565b815460a080546001600160781b0392831692600091610feb91859116613508565b92506101000a8154816001600160781b0302191690836001600160781b031602179055508060a160008282829054906101000a90046001600160781b03166110339190613508565b82546101009290920a6001600160781b038181021990931691831602179091556001840180546201000062ff000019909116179055604080516001600160a01b038716815291841660208301527fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d92500160405180910390a15050506106d26001606555565b6110c1612998565b801561111b5760405162461bcd60e51b815260206004820152602360248201527f53484f56657374696e673a206f6e6c7920756e626c6f636b696e6720616c6c6f6044820152621dd95960ea1b6064820152608401610632565b60005b8281101561119a57816098600086868581811061114b57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906111609190613033565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061119281613673565b91505061111e565b507f934de86aac2bd6f5a4967899f3a725630a82f782f5965e4eae50a454a953de4b8383836040516111ce939291906132e1565b60405180910390a1505050565b6111e3612998565b6106d26000612a81565b609981815481106111fd57600080fd5b9060005260206000209060089182820401919006600402915054906101000a900463ffffffff1681565b61122f612998565b61123761165a565b609f54600160481b900461ffff166112915760405162461bcd60e51b815260206004820152601d60248201527f53484f56657374696e673a206e6f20756e6c6f636b73207061737365640000006044820152606401610632565b609f546000906112ae90600190600160481b900461ffff166135d6565b609a549091506112c0906001906135f1565b8161ffff16106113255760405162461bcd60e51b815260206004820152602a60248201527f53484f56657374696e673a20656c696d696e6174696e6720696e20746865206c60448201526961737420756e6c6f636b60b01b6064820152608401610632565b60005b8281101561165457600084848381811061135257634e487b7160e01b600052603260045260246000fd5b90506020020160208101906113679190613033565b6001600160a01b038116600090815260976020908152604091829020825160a08101845281546001600160781b03808216808452600160781b830490911694830194909452600160f01b900461ffff9081169482019490945260019091015492831660608201526201000090920460ff16151560808301529192509061142f5760405162461bcd60e51b815260206004820152601b60248201527f53484f56657374696e673a206e6f742077686974656c697374656400000000006044820152606401610632565b8060800151156114785760405162461bcd60e51b815260206004820152601460248201527314d213d5995cdd1a5b99ce881c99599d5b99195960621b6044820152606401610632565b606081015161ffff16156114ce5760405162461bcd60e51b815260206004820152601e60248201527f53484f56657374696e673a20616c726561647920656c696d696e6174656400006044820152606401610632565b60006114dd82600001516129f2565b905060006115358260998861ffff168154811061150a57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff16612ad3565b90508160a160118282829054906101000a90046001600160781b031661155b9190613508565b92506101000a8154816001600160781b0302191690836001600160781b031602179055508060a260008282829054906101000a90046001600160781b03166115a39190613508565b92506101000a8154816001600160781b0302191690836001600160781b031602179055508560016115d49190613533565b6001600160a01b038516600081815260976020908152604091829020600101805461ffff191661ffff9586161790558151928352928916928201929092527f2e534232be2bba1dbb7d9f42a931f682e70335382d04258ae54c1e4f7f3fbbea910160405180910390a150505050808061164c90613673565b915050611328565b50505050565b60006116646116dd565b609f5490915061ffff600160481b909104811690821611156116da57609f80546affff0000000000000000001916600160481b61ffff8416908102919091179091556040519081527f51d949e894d194a06df7af6fb215f324ab4717f75f3b9efcb57210c3a68087259060200160405180910390a15b50565b609b54600090600160a01b90046001600160401b03164210156117425760405162461bcd60e51b815260206004820152601c60248201527f53484f56657374696e673a206265666f726520737461727454696d65000000006044820152606401610632565b609b5460009061176290600160a01b90046001600160401b0316426135f1565b609a54609f54600160481b900461ffff1693509091505b808361ffff161080156117d45750609a8361ffff16815481106117ac57634e487b7160e01b600052603260045260246000fd5b6000918252602090912060088204015460079091166004026101000a900463ffffffff168210155b156117eb57826117e381613651565b935050611779565b505090565b609a81815481106111fd57600080fd5b6001600160a01b03811660009081526097602052604081205482906001600160781b03166118705760405162461bcd60e51b815260206004820152601b60248201527f53484f56657374696e673a206e6f742077686974656c697374656400000000006044820152606401610632565b611878612a20565b61188061165a565b6001600160a01b038316600081815260976020908152604091829020825160a08101845281546001600160781b038082168352600160781b8204169382019390935261ffff600160f01b90930483169381019390935260010154908116606083015260ff62010000909104161515608082015290331461195457609f546001600160401b031642116119545760405162461bcd60e51b815260206004820152601960248201527f53484f56657374696e673a20726566756e6420706572696f64000000000000006044820152606401610632565b609f54600160481b900461ffff166119ae5760405162461bcd60e51b815260206004820152601d60248201527f53484f56657374696e673a206e6f20756e6c6f636b73207061737365640000006044820152606401610632565b609f54604082015161ffff600160481b9092048216911610611a125760405162461bcd60e51b815260206004820152601c60248201527f53484f56657374696e673a206e6f7468696e6720746f20636c61696d000000006044820152606401610632565b806080015115611a5b5760405162461bcd60e51b815260206004820152601460248201527314d213d5995cdd1a5b99ce881c99599d5b99195960621b6044820152606401610632565b6001600160a01b03841660009081526098602052604090205460ff1615611aba5760405162461bcd60e51b815260206004820152601360248201527214d213d5995cdd1a5b99ce88189b1bd8dad959606a1b6044820152606401610632565b609f54600090611ad790600190600160481b900461ffff166135d6565b606083015190915061ffff1615611b5b57816060015161ffff16826040015161ffff1610611b475760405162461bcd60e51b815260206004820152601c60248201527f53484f56657374696e673a206e6f7468696e6720746f20636c61696d000000006044820152606401610632565b60018260600151611b5891906135d6565b90505b600080836040015161ffff1611611b73576000611bcf565b609960018460400151611b8691906135d6565b61ffff1681548110611ba857634e487b7160e01b600052603260045260246000fd5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff165b9050611c3483600001518260998561ffff1681548110611bff57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff16611c2f9190613608565b612ad3565b9450611c3f856129f2565b9450611c4c826001613533565b61ffff90811660408086019182526001600160a01b03808a16600090815260976020908152929020875181549389015194518616600160f01b026001600160f01b036001600160781b03968716600160781b026001600160f01b031990961692871692909217949094171692909217825560608701516001909201805460808901511515620100000262ffffff199091169390951692909217939093179055609b54611cfd92169088908816612941565b6040805161ffff841681526001600160781b03871660208201526001600160a01b038816917fe53ee7234965d7ed82340b976c78e38c0fa06bb7ac6864bec5277059d4967b53910160405180910390a2505050611d5a6001606555565b50919050565b6000611d6b33611800565b905090565b600080611d7b612a20565b611d8361165a565b609f5460a154600160481b90910461ffff908116600160781b9092041610611ded5760405162461bcd60e51b815260206004820152601e60248201527f53484f56657374696e673a206e6f206665657320746f20636f6c6c65637400006044820152606401610632565b609f54600090611e0a90600190600160481b900461ffff166135d6565b60a154909150600090600160781b900461ffff16611e29576000611e8f565b60a154609990611e4690600190600160781b900461ffff166135d6565b61ffff1681548110611e6857634e487b7160e01b600052603260045260246000fd5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff165b60a054609f54919250600091611ee391611ebd916001600160781b0391821691600160581b909104166135ae565b8360998661ffff1681548110611bff57634e487b7160e01b600052603260045260246000fd5b9050611f0181609c60149054906101000a900463ffffffff16612ad3565b94506000611f4360a160119054906101000a90046001600160781b031660998661ffff168154811061150a57634e487b7160e01b600052603260045260246000fd5b60a254909150611f5c906001600160781b0316826135ae565b60a280546001600160781b0319166001600160781b03841617905594506000611f858688613508565b9050611f92856001613533565b60a1805461ffff92909216600160781b0261ffff60781b19909216919091179055609c54609b54611fd9916001600160a01b0391821691166001600160781b038416612941565b6040805161ffff871681526001600160781b03838116602083015288168183015290517fcadc637e639b10c483bc9665c0f04cdd10478b94d3c7afd157af7499e05cb5df9181900360600190a150505050506120356001606555565b9091565b612041612998565b6001600160a01b0381166120a65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610632565b6116da81612a81565b600054610100900460ff16158080156120cf5750600054600160ff909116105b806120e95750303b1580156120e9575060005460ff166001145b61214c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610632565b6000805460ff19166001179055801561216f576000805461ff0019166101001790555b612177612b03565b61217f612b32565b600061218e6020840184613033565b6001600160a01b031614156121f05760405162461bcd60e51b815260206004820152602260248201527f53484f56657374696e673a2073686f20746f6b656e207a65726f206164647265604482015261737360f01b6064820152608401610632565b60006121ff60208401846134c1565b90501161224e5760405162461bcd60e51b815260206004820181905260248201527f53484f56657374696e673a203020756e6c6f636b2070657263656e74616765736044820152606401610632565b61225b60208301836134c1565b905061226a60408401846134c1565b9050146122895760405162461bcd60e51b8152600401610632906133f2565b620f424061229d608084016060850161327a565b63ffffffff16111561230c5760405162461bcd60e51b815260206004820152603260248201527f53484f56657374696e673a2062617365206665652070657263656e74616765206044820152713120686967686572207468616e203130302560701b6064820152608401610632565b600061231e60a0840160808501613033565b6001600160a01b031614156123845760405162461bcd60e51b815260206004820152602660248201527f53484f56657374696e673a2066656520636f6c6c6563746f72207a65726f206160448201526564647265737360d01b6064820152608401610632565b4261239560c0840160a0850161329e565b6001600160401b0316116123fc5760405162461bcd60e51b815260206004820152602860248201527f53484f56657374696e673a2073746172742074696d65206d75737420626520696044820152676e2066757475726560c01b6064820152608401610632565b600061244561240e60208501856134c1565b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612b6192505050565b9050600061245961240e60408601866134c1565b9050620f424063ffffffff16826001845161247491906135f1565b8151811061249257634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff16146124fc5760405162461bcd60e51b815260206004820152602660248201527f53484f56657374696e673a20696e76616c696420756e6c6f636b2070657263656044820152656e746167657360d01b6064820152608401610632565b61250c60e0850160c08601613033565b6001600160a01b03166125226020860186613033565b6001600160a01b031614156125795760405162461bcd60e51b815260206004820152601760248201527f53484f56657374696e673a2073616d6520746f6b656e730000000000000000006044820152606401610632565b600061258b60e0860160c08701613033565b6001600160a01b03161461267d576125a960c0850160a0860161329e565b6001600160401b03166125c46101208601610100870161329e565b6001600160401b031610156125eb5760405162461bcd60e51b81526004016106329061336d565b6125fd6101208501610100860161329e565b6001600160401b03166126186101408601610120870161329e565b6001600160401b03161161263e5760405162461bcd60e51b815260040161063290613480565b6000612651610100860160e08701613033565b6001600160a01b031614156126785760405162461bcd60e51b8152600401610632906133b0565b612726565b61268f6101208501610100860161329e565b6001600160401b0316156126b55760405162461bcd60e51b81526004016106329061336d565b6126c76101408501610120860161329e565b6001600160401b0316156126ed5760405162461bcd60e51b815260040161063290613480565b6000612700610100860160e08701613033565b6001600160a01b0316146127265760405162461bcd60e51b8152600401610632906133b0565b6127336020850185613033565b609b80546001600160a01b0319166001600160a01b03929092169190911790558151612766906099906020850190612f26565b50805161277a90609a906020840190612f26565b5061278b608085016060860161327a565b609c805463ffffffff92909216600160a01b0263ffffffff60a01b199092169190911790556127c060a0850160808601613033565b609c80546001600160a01b0319166001600160a01b03929092169190911790556127f060c0850160a0860161329e565b609b80546001600160401b0392909216600160a01b0267ffffffffffffffff60a01b1990921691909117905561282c60e0850160c08601613033565b609d80546001600160a01b0319166001600160a01b039290921691909117905561285d610100850160e08601613033565b609e80546001600160a01b0319166001600160a01b039290921691909117905561288f6101208501610100860161329e565b609e80546001600160401b0392909216600160a01b0267ffffffffffffffff60a01b199092169190911790556128cd6101408501610120860161329e565b609f805468ffffffffffffffffff19166001600160401b039290921691909117600160401b1790555050801561293d576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612993908490612c85565b505050565b6033546001600160a01b031633146106d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610632565b6000612a1082609c60149054906101000a900463ffffffff16612ad3565b612a1a90836135ae565b92915050565b60026065541415612a735760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610632565b6002606555565b6001606555565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000620f4240612af263ffffffff84166001600160781b03861661358f565b612afc919061356f565b9392505050565b600054610100900460ff16612b2a5760405162461bcd60e51b815260040161063290613435565b6106d2612d57565b600054610100900460ff16612b595760405162461bcd60e51b815260040161063290613435565b6106d2612d7e565b80516060906000816001600160401b03811115612b8e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612bb7578160200160208202803683370190505b5090506000805b83811015612c7b578015612c015782612bd86001836135f1565b81518110612bf657634e487b7160e01b600052603260045260246000fd5b602002602001015191505b858181518110612c2157634e487b7160e01b600052603260045260246000fd5b602002602001015182612c349190613550565b838281518110612c5457634e487b7160e01b600052603260045260246000fd5b63ffffffff9092166020928302919091019091015280612c7381613673565b915050612bbe565b5090949350505050565b6000612cda826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612dae9092919063ffffffff16565b8051909150156129935780806020019051810190612cf891906131cf565b6129935760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610632565b600054610100900460ff16612a7a5760405162461bcd60e51b815260040161063290613435565b600054610100900460ff16612da55760405162461bcd60e51b815260040161063290613435565b6106d233612a81565b6060612dbd8484600085612dc5565b949350505050565b606082471015612e265760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610632565b843b612e745760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610632565b600080866001600160a01b03168587604051612e9091906132c5565b60006040518083038185875af1925050503d8060008114612ecd576040519150601f19603f3d011682016040523d82523d6000602084013e612ed2565b606091505b5091509150612ee2828286612eed565b979650505050505050565b60608315612efc575081612afc565b825115612f0c5782518084602001fd5b8160405162461bcd60e51b8152600401610632919061333a565b82805482825590600052602060002090600701600890048101928215612fc55791602002820160005b83821115612f9357835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302612f4f565b8015612fc35782816101000a81549063ffffffff0219169055600401602081600301049283019260010302612f93565b505b50612fd1929150612fd5565b5090565b5b80821115612fd15760008155600101612fd6565b60008083601f840112612ffb578182fd5b5081356001600160401b03811115613011578182fd5b6020830191508360208260051b850101111561302c57600080fd5b9250929050565b600060208284031215613044578081fd5b8135612afc816136a4565b60008060208385031215613061578081fd5b82356001600160401b03811115613076578182fd5b61308285828601612fea565b90969095509350505050565b600080600080600080600080600060a08a8c0312156130ab578485fd5b89356001600160401b03808211156130c1578687fd5b6130cd8d838e01612fea565b909b50995060208c01359150808211156130e5578687fd5b6130f18d838e01612fea565b909950975060408c0135915080821115613109578687fd5b6131158d838e01612fea565b909750955060608c013591508082111561312d578485fd5b5061313a8c828d01612fea565b90945092505060808a013561314e816136b9565b809150509295985092959850929598565b600080600060408486031215613173578283fd5b83356001600160401b03811115613188578384fd5b61319486828701612fea565b90945092505060208401356131a8816136b9565b809150509250925092565b6000602082840312156131c4578081fd5b8135612afc816136b9565b6000602082840312156131e0578081fd5b8151612afc816136b9565b6000602082840312156131fc578081fd5b81356001600160401b03811115613211578182fd5b82016101408185031215612afc578182fd5b600060208284031215613234578081fd5b81356001600160781b0381168114612afc578182fd5b60006020828403121561325b578081fd5b5035919050565b600060208284031215613273578081fd5b5051919050565b60006020828403121561328b578081fd5b813563ffffffff81168114612afc578182fd5b6000602082840312156132af578081fd5b81356001600160401b0381168114612afc578182fd5b600082516132d7818460208701613625565b9190910192915050565b6040808252810183905260008460608301825b86811015613324578235613307816136a4565b6001600160a01b03168252602092830192909101906001016132f4565b5080925050508215156020830152949350505050565b6020815260008251806020840152613359816040850160208701613625565b601f01601f19169190910160400192915050565b60208082526023908201527f53484f56657374696e673a20696e76616c696420726566756e64537461727454604082015262696d6560e81b606082015260800190565b60208082526022908201527f53484f56657374696e673a20696e76616c696420726566756e6452656365697660408201526132b960f11b606082015260800190565b60208082526023908201527f53484f56657374696e673a20646966666572656e74206172726179206c656e6760408201526274687360e81b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526021908201527f53484f56657374696e673a20696e76616c696420726566756e64456e6454696d6040820152606560f81b606082015260800190565b6000808335601e198436030181126134d7578283fd5b8301803591506001600160401b038211156134f0578283fd5b6020019150600581901b360382131561302c57600080fd5b60006001600160781b0380831681851680830382111561352a5761352a61368e565b01949350505050565b600061ffff80831681851680830382111561352a5761352a61368e565b600063ffffffff80831681851680830382111561352a5761352a61368e565b60008261358a57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156135a9576135a961368e565b500290565b60006001600160781b03838116908316818110156135ce576135ce61368e565b039392505050565b600061ffff838116908316818110156135ce576135ce61368e565b6000828210156136035761360361368e565b500390565b600063ffffffff838116908316818110156135ce576135ce61368e565b60005b83811015613640578181015183820152602001613628565b838111156116545750506000910152565b600061ffff808316818114156136695761366961368e565b6001019392505050565b60006000198214156136875761368761368e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146116da57600080fd5b80151581146116da57600080fdfea264697066735822122048d60f357c3e28c57b2552cdc94d01a5617f2b06fecedb271af1a5f812c9fac864736f6c63430008040033
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 ]
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.