Overview
ETH Balance
ETH Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 128947420 | 342 days ago | IN | 0 ETH | 0.00000181756 |
View more zero value Internal Transactions in Advanced View mode
Cross-Chain Transactions
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "../utils/proxy/solidity-0.8.0/ProxyOwned.sol";
import "../utils/proxy/solidity-0.8.0/ProxyReentrancyGuard.sol";
import "../utils/proxy/solidity-0.8.0/ProxyPausable.sol";
contract VestingEscrowCC is Initializable, ProxyReentrancyGuard, ProxyOwned, ProxyPausable {
using SafeMathUpgradeable for uint;
using SafeERC20Upgradeable for IERC20Upgradeable;
struct LockedEntry {
uint timestamp;
uint amount;
}
address public token;
mapping(address => uint) public startTime;
mapping(address => uint) public endTime;
mapping(address => uint) public initialLocked;
mapping(address => uint) public totalClaimed;
mapping(address => bool) public disabled;
mapping(address => uint) public pausedAt;
uint public initialLockedSupply;
uint public vestingPeriod;
address[] public recipients;
function initialize(
address _owner,
address _token,
uint _vestingPeriod
) public initializer {
setOwner(_owner);
initNonReentrant();
token = _token;
vestingPeriod = _vestingPeriod;
}
function fund(
address _recipient,
uint _amount,
uint _startTime
) external onlyOwner {
require(_recipient != address(0), "Invalid address");
if (initialLocked[_recipient] == 0) {
recipients.push(_recipient);
startTime[_recipient] = _startTime;
endTime[_recipient] = _startTime + vestingPeriod;
}
initialLocked[_recipient] = initialLocked[_recipient] + _amount;
initialLockedSupply = initialLockedSupply + _amount;
emit Fund(_recipient, _amount);
}
function increaseAllocation(address _recipient, uint _amount) external onlyOwner {
require(initialLocked[_recipient] > 0, "Invalid recipient");
initialLocked[_recipient] = initialLocked[_recipient] + _amount;
initialLockedSupply = initialLockedSupply + _amount;
emit AllocationIncreased(_recipient, _amount);
}
function decreaseAllocation(address _recipient, uint _amount) external onlyOwner {
require(initialLocked[_recipient] > 0, "Invalid recipient");
require(initialLocked[_recipient] - balanceOf(_recipient) > _amount, "Invalid amount");
initialLocked[_recipient] = initialLocked[_recipient] - _amount;
initialLockedSupply = initialLockedSupply - _amount;
emit AllocationDecreased(_recipient, _amount);
}
function _totalVestedOf(address _recipient, uint _time) internal view returns (uint) {
uint start = startTime[_recipient];
uint end = endTime[_recipient];
uint locked = initialLocked[_recipient];
if (_time < start) return 0;
return MathUpgradeable.min((locked * (_time - start)) / (end - start), locked);
}
function _totalVested() internal view returns (uint totalVested) {
for (uint i = 0; i < recipients.length; i++) {
totalVested += _totalVestedOf(recipients[i], block.timestamp);
}
}
function vestedSupply() public view returns (uint) {
return _totalVested();
}
function vestedOf(address _recipient) public view returns (uint) {
return _totalVestedOf(_recipient, block.timestamp);
}
function lockedSupply() public view returns (uint) {
return initialLockedSupply.sub(_totalVested());
}
function balanceOf(address _recipient) public view returns (uint) {
uint timestamp = pausedAt[_recipient];
if (timestamp == 0) {
timestamp = block.timestamp;
}
return _totalVestedOf(_recipient, timestamp) - totalClaimed[_recipient];
}
function lockedOf(address _recipient) public view returns (uint) {
return initialLocked[_recipient] - _totalVestedOf(_recipient, block.timestamp);
}
function claim() external nonReentrant notPaused {
require(disabled[msg.sender] == false, "Account disabled");
uint timestamp = pausedAt[msg.sender];
if (timestamp == 0) {
timestamp = block.timestamp;
}
uint claimable = _totalVestedOf(msg.sender, timestamp) - totalClaimed[msg.sender];
require(claimable > 0, "Nothing to claim");
IERC20Upgradeable(token).safeTransfer(msg.sender, claimable);
totalClaimed[msg.sender] = totalClaimed[msg.sender] + claimable;
emit Claim(msg.sender, claimable);
}
function partialClaim(uint amount) external nonReentrant notPaused {
require(disabled[msg.sender] == false, "Account disabled");
uint timestamp = pausedAt[msg.sender];
if (timestamp == 0) {
timestamp = block.timestamp;
}
uint claimable = _totalVestedOf(msg.sender, timestamp) - totalClaimed[msg.sender];
require(claimable >= amount, "Amount exceeds claimable value");
IERC20Upgradeable(token).safeTransfer(msg.sender, amount);
totalClaimed[msg.sender] = totalClaimed[msg.sender] + amount;
emit PartialClaim(msg.sender, amount);
}
function pauseClaim(address _recipient) external onlyOwner {
pausedAt[_recipient] = block.timestamp;
emit ClaimPaused(_recipient);
}
function unpauseClaim(address _recipient) external onlyOwner {
pausedAt[_recipient] = 0;
emit ClaimUnpaused(_recipient);
}
function disableClaim(address _recipient) external onlyOwner {
disabled[_recipient] = true;
emit ClaimDisabled(_recipient);
}
function enableClaim(address _recipient) external onlyOwner {
disabled[_recipient] = false;
emit ClaimEnabled(_recipient);
}
function changeWallet(address _oldAddress, address _newAddress) external onlyOwner {
require(initialLocked[_oldAddress] > 0, "Invalid recipient");
require(initialLocked[_newAddress] == 0, "Address is already a recipient");
startTime[_newAddress] = startTime[_oldAddress];
startTime[_oldAddress] = 0;
endTime[_newAddress] = endTime[_oldAddress];
endTime[_oldAddress] = 0;
initialLocked[_newAddress] = initialLocked[_oldAddress];
initialLocked[_oldAddress] = 0;
totalClaimed[_newAddress] = totalClaimed[_oldAddress];
totalClaimed[_oldAddress] = 0;
emit WalletChanged(_oldAddress, _newAddress);
}
function setStartTime(address _recipient, uint _startTime) external onlyOwner {
require(_startTime < endTime[_recipient], "End time must be greater than start time");
startTime[_recipient] = _startTime;
emit StartTimeChanged(_recipient, _startTime);
}
function setEndTime(address _recipient, uint _endTime) external onlyOwner {
require(_endTime >= block.timestamp, "End time must be in future");
endTime[_recipient] = _endTime;
emit EndTimeChanged(_recipient, _endTime);
}
function setToken(address _token) external onlyOwner {
require(_token != address(0), "Invalid address");
token = _token;
emit TokenChanged(_token);
}
function setVestingPeriod(uint _vestingPeriod) external onlyOwner {
vestingPeriod = _vestingPeriod;
emit VestingPeriodChanged(_vestingPeriod);
}
event Fund(address _recipient, uint _amount);
event AllocationIncreased(address _recipient, uint _amount);
event AllocationDecreased(address _recipient, uint _amount);
event Claim(address _address, uint _amount);
event PartialClaim(address _address, uint _amount);
event StartTimeChanged(address _recipient, uint _startTime);
event EndTimeChanged(address _recipient, uint _endTime);
event TokenChanged(address _token);
event ClaimDisabled(address _recipient);
event ClaimEnabled(address _recipient);
event ClaimPaused(address _recipient);
event ClaimUnpaused(address _recipient);
event WalletChanged(address _oldAddress, address _newAddress);
event VestingPeriodChanged(uint _vestingPeriod);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20Upgradeable.sol";
import "../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable {
using AddressUpgradeable for address;
function safeTransfer(
IERC20Upgradeable token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20Upgradeable 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(
IERC20Upgradeable 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(
IERC20Upgradeable 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(
IERC20Upgradeable 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(IERC20Upgradeable 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.1 (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library MathUpgradeable {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a / b + (a % b == 0 ? 0 : 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)
pragma solidity ^0.8.0;
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 a proxied contract can't have 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.
*
* 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 initialize the implementation contract, you can either invoke the
* initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() initializer {}
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Modifier to protect an initializer function from being invoked twice.
*/
modifier initializer() {
// If the contract is initializing we ignore whether _initialized is set in order to support multiple
// inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
// contract may have been reentered.
require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializing;
if (isTopLevelCall) {
_initializing = true;
_initialized = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
}
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} modifier, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
function _isConstructor() private view returns (bool) {
return !AddressUpgradeable.isContract(address(this));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMathUpgradeable {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @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
pragma solidity ^0.8.0;
// Clone of syntetix contract without constructor
contract ProxyOwned {
address public owner;
address public nominatedOwner;
bool private _initialized;
bool private _transferredAtInit;
function setOwner(address _owner) public {
require(_owner != address(0), "Owner address cannot be 0");
require(!_initialized, "Already initialized, use nominateNewOwner");
_initialized = true;
owner = _owner;
emit OwnerChanged(address(0), _owner);
}
function nominateNewOwner(address _owner) external onlyOwner {
nominatedOwner = _owner;
emit OwnerNominated(_owner);
}
function acceptOwnership() external {
require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
emit OwnerChanged(owner, nominatedOwner);
owner = nominatedOwner;
nominatedOwner = address(0);
}
function transferOwnershipAtInit(address proxyAddress) external onlyOwner {
require(proxyAddress != address(0), "Invalid address");
require(!_transferredAtInit, "Already transferred");
owner = proxyAddress;
_transferredAtInit = true;
emit OwnerChanged(owner, proxyAddress);
}
modifier onlyOwner {
_onlyOwner();
_;
}
function _onlyOwner() private view {
require(msg.sender == owner, "Only the contract owner may perform this action");
}
event OwnerNominated(address newOwner);
event OwnerChanged(address oldOwner, address newOwner);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier
* available, which can be aplied 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.
*/
contract ProxyReentrancyGuard {
/// @dev counter to allow mutex lock with only one SSTORE operation
uint256 private _guardCounter;
bool private _initialized;
function initNonReentrant() public {
require(!_initialized, "Already initialized");
_initialized = true;
_guardCounter = 1;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_guardCounter += 1;
uint256 localCounter = _guardCounter;
_;
require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Inheritance
import "./ProxyOwned.sol";
// Clone of syntetix contract without constructor
contract ProxyPausable is ProxyOwned {
uint public lastPauseTime;
bool public paused;
/**
* @notice Change the paused state of the contract
* @dev Only the contract owner may call this.
*/
function setPaused(bool _paused) external onlyOwner {
// Ensure we're actually changing the state before we do anything
if (_paused == paused) {
return;
}
// Set our paused state.
paused = _paused;
// If applicable, set the last pause time.
if (paused) {
lastPauseTime = block.timestamp;
}
// Let everyone know that our pause state has changed.
emit PauseChanged(paused);
}
event PauseChanged(bool isPaused);
modifier notPaused {
require(!paused, "This action cannot be performed while the contract is paused");
_;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @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
* ====
*/
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 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":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"AllocationDecreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"AllocationIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_recipient","type":"address"}],"name":"ClaimDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_recipient","type":"address"}],"name":"ClaimEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_recipient","type":"address"}],"name":"ClaimPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_recipient","type":"address"}],"name":"ClaimUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"EndTimeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Fund","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"PartialClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"StartTimeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_token","type":"address"}],"name":"TokenChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_vestingPeriod","type":"uint256"}],"name":"VestingPeriodChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_newAddress","type":"address"}],"name":"WalletChanged","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_oldAddress","type":"address"},{"internalType":"address","name":"_newAddress","type":"address"}],"name":"changeWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"decreaseAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"disableClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"disabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"enableClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"fund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"increaseAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initNonReentrant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"initialLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialLockedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_vestingPeriod","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"lockedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"partialClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"pauseClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pausedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"recipients","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vestingPeriod","type":"uint256"}],"name":"setVestingPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"transferOwnershipAtInit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"unpauseClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"vestedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50611f6b806100206000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c806391b4ded91161013b578063c3b83f5f116100b8578063d9844dc01161007c578063d9844dc014610527578063e084da531461052f578063ebc7977214610542578063ef5d9ae81461054a578063fc0c546a1461056a57600080fd5b8063c3b83f5f146104d3578063c66d4a1d146104e6578063ca5c7b91146104f9578063d1bc76a114610501578063d684395d1461051457600080fd5b8063a5f1e282116100ff578063a5f1e28214610457578063a766a6e31461046a578063b27f74b31461048a578063b51c2de0146104ad578063c2e6fdad146104c057600080fd5b806391b4ded914610402578063936bf9781461040b578063944771041461041e57806394e730b414610431578063994c7ec61461044457600080fd5b80634e71d92d116101c957806370a082311161018d57806370a08231146103bd5780637313ee5a146103d057806379ba5097146103d95780637d086b29146103e15780638da5cb5b146103ea57600080fd5b80634e71d92d1461033a57806353a47bb7146103425780635c975abb1461036d57806366b87b2a1461038a5780636e1dc66e1461039d57600080fd5b80631627540c116102105780631627540c146102ce57806316c38b3c146102e15780631794bb3c146102f457806340bee0ed146103075780634aefdccd1461031a57600080fd5b8063099d695f1461024d5780630af6ce851461028057806313af403514610295578063144fa6d7146102a8578063158a774d146102bb575b600080fd5b61026d61025b366004611c2a565b60086020526000908152604090205481565b6040519081526020015b60405180910390f35b61029361028e366004611cda565b610582565b005b6102936102a3366004611c2a565b6106ec565b6102936102b6366004611c2a565b610827565b6102936102c9366004611cb1565b6108ab565b6102936102dc366004611c2a565b6109e8565b6102936102ef366004611d0c565b610a3e565b610293610302366004611c76565b610ab4565b610293610315366004611d44565b610ba6565b61026d610328366004611c2a565b60076020526000908152604090205481565b610293610be3565b600354610355906001600160a01b031681565b6040516001600160a01b039091168152602001610277565b60055461037a9060ff1681565b6040519015158152602001610277565b610293610398366004611c44565b610dcd565b61026d6103ab366004611c2a565b60066020526000908152604090205481565b61026d6103cb366004611c2a565b610f17565b61026d600d5481565b610293610f6c565b61026d600c5481565b6002546103559061010090046001600160a01b031681565b61026d60045481565b610293610419366004611cb1565b611066565b61026d61042c366004611c2a565b611130565b61029361043f366004611c2a565b611142565b610293610452366004611c2a565b61119e565b61026d610465366004611c2a565b6111f2565b61026d610478366004611c2a565b600b6020526000908152604090205481565b61037a610498366004611c2a565b600a6020526000908152604090205460ff1681565b6102936104bb366004611d44565b611221565b6102936104ce366004611cb1565b61141c565b6102936104e1366004611c2a565b6114c5565b6102936104f4366004611c2a565b6115ba565b61026d611613565b61035561050f366004611d44565b61162e565b610293610522366004611cb1565b611658565b61026d611729565b61029361053d366004611c2a565b611733565b610293611787565b61026d610558366004611c2a565b60096020526000908152604090205481565b6005546103559061010090046001600160a01b031681565b61058a6117e4565b6001600160a01b0383166105b95760405162461bcd60e51b81526004016105b090611dab565b60405180910390fd5b6001600160a01b03831660009081526008602052604090205461065757600e8054600181019091557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319166001600160a01b0385169081179091556000908152600660205260409020819055600d5461063d9082611e5c565b6001600160a01b0384166000908152600760205260409020555b6001600160a01b03831660009081526008602052604090205461067b908390611e5c565b6001600160a01b038416600090815260086020526040902055600c546106a2908390611e5c565b600c55604080516001600160a01b0385168152602081018490527fda8220a878ff7a89474ccffdaa31ea1ed1ffbb0207d5051afccc4fbaf81f9bcd910160405180910390a1505050565b6001600160a01b0381166107425760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064016105b0565b600354600160a01b900460ff16156107ae5760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b60648201526084016105b0565b6003805460ff60a01b1916600160a01b179055600280546001600160a01b0383166101008102610100600160a81b031990921691909117909155604080516000815260208101929092527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b61082f6117e4565b6001600160a01b0381166108555760405162461bcd60e51b81526004016105b090611dab565b60058054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f5d108ca248943e98e1886bbc2c38beda701271994a14354258a11692b81b73cf9060200161081c565b6108b36117e4565b6001600160a01b0382166000908152600860205260409020546108e85760405162461bcd60e51b81526004016105b090611dd4565b806108f283610f17565b6001600160a01b0384166000908152600860205260409020546109159190611eb3565b116109535760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016105b0565b6001600160a01b038216600090815260086020526040902054610977908290611eb3565b6001600160a01b038316600090815260086020526040902055600c5461099e908290611eb3565b600c55604080516001600160a01b0384168152602081018390527f7ccab3314935ca1f84a73cefd1890ed82de2f1af692803e54bef5c4ad397404091015b60405180910390a15050565b6109f06117e4565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200161081c565b610a466117e4565b60055460ff1615158115151415610a5a5750565b6005805460ff191682151590811790915560ff1615610a7857426004555b60055460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59060200161081c565b50565b600054610100900460ff16610acf5760005460ff1615610ad3565b303b155b610b365760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016105b0565b600054610100900460ff16158015610b58576000805461ffff19166101011790555b610b61846106ec565b610b69611787565b60058054610100600160a81b0319166101006001600160a01b03861602179055600d8290558015610ba0576000805461ff00191690555b50505050565b610bae6117e4565b600d8190556040518181527f2f847163bc3888f61ddc9b405dc655d9cc509f5518194a06263f0ad3c090df969060200161081c565b6001806000828254610bf59190611e5c565b909155505060015460055460ff1615610c205760405162461bcd60e51b81526004016105b090611dff565b336000908152600a602052604090205460ff1615610c735760405162461bcd60e51b815260206004820152601060248201526f1058d8dbdd5b9d08191a5cd8589b195960821b60448201526064016105b0565b336000908152600b602052604090205480610c8b5750425b336000818152600960205260408120549091610ca7908461185d565b610cb19190611eb3565b905060008111610cf65760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b60448201526064016105b0565b600554610d129061010090046001600160a01b031633836118dc565b33600090815260096020526040902054610d2d908290611e5c565b336000818152600960209081526040918290209390935580519182529181018390527f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4910160405180910390a150506001548114610ab15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b0565b610dd56117e4565b6001600160a01b038216600090815260086020526040902054610e0a5760405162461bcd60e51b81526004016105b090611dd4565b6001600160a01b03811660009081526008602052604090205415610e705760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320697320616c7265616479206120726563697069656e74000060448201526064016105b0565b6001600160a01b0382811660008181526006602090815260408083208054958716808552828520969096558484528390556007825280832080548685528285205584845283905560088252808320805486855282852055848452839055600982528083208054868552828520558484529290925581519283528201929092527f64cbbd34f3faebfd04eff088ae5832f6d254dbb81820b0055e9d85c534aa700d91016109dc565b6001600160a01b0381166000908152600b602052604081205480610f385750425b6001600160a01b038316600090815260096020526040902054610f5b848361185d565b610f659190611eb3565b9392505050565b6003546001600160a01b03163314610fe45760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b60648201526084016105b0565b600254600354604080516101009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a16003805460028054610100600160a81b0319166101006001600160a01b038416021790556001600160a01b0319169055565b61106e6117e4565b6001600160a01b0382166000908152600860205260409020546110a35760405162461bcd60e51b81526004016105b090611dd4565b6001600160a01b0382166000908152600860205260409020546110c7908290611e5c565b6001600160a01b038316600090815260086020526040902055600c546110ee908290611e5c565b600c55604080516001600160a01b0384168152602081018390527fcddfbeca0b87c7d6c37255d733eb9d5ec52b4513bcd358b48c9390a12b25cf9491016109dc565b600061113c824261185d565b92915050565b61114a6117e4565b6001600160a01b0381166000818152600a6020908152604091829020805460ff1916600117905590519182527f9868ea5629b5bfa1be72fddfa5cb8b2328a007daacd59db81ef6dc197e871238910161081c565b6111a66117e4565b6001600160a01b0381166000818152600b602090815260408083209290925590519182527f283a148c0482d064fbf794e0d297192b1854c7edf96c8397dbc1ebd950f232b1910161081c565b60006111fe824261185d565b6001600160a01b03831660009081526008602052604090205461113c9190611eb3565b60018060008282546112339190611e5c565b909155505060015460055460ff161561125e5760405162461bcd60e51b81526004016105b090611dff565b336000908152600a602052604090205460ff16156112b15760405162461bcd60e51b815260206004820152601060248201526f1058d8dbdd5b9d08191a5cd8589b195960821b60448201526064016105b0565b336000908152600b6020526040902054806112c95750425b3360008181526009602052604081205490916112e5908461185d565b6112ef9190611eb3565b9050838110156113415760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206578636565647320636c61696d61626c652076616c7565000060448201526064016105b0565b60055461135d9061010090046001600160a01b031633866118dc565b33600090815260096020526040902054611378908590611e5c565b336000818152600960209081526040918290209390935580519182529181018690527f5bf4ffbba2c193e74d733f69408011d333232e84b98a68ecb638621dab65fff5910160405180910390a1505060015481146114185760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b0565b5050565b6114246117e4565b428110156114745760405162461bcd60e51b815260206004820152601a60248201527f456e642074696d65206d75737420626520696e2066757475726500000000000060448201526064016105b0565b6001600160a01b038216600081815260076020908152604091829020849055815192835282018390527fd5891347aff183508ba2deffbe6ffc2875d2863fbc5addb55e550c0057a6113d91016109dc565b6114cd6117e4565b6001600160a01b0381166114f35760405162461bcd60e51b81526004016105b090611dab565b600354600160a81b900460ff16156115435760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b60448201526064016105b0565b600280546001600160a01b03838116610100818102610100600160a81b031990941693909317938490556003805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910161081c565b6115c26117e4565b6001600160a01b0381166000818152600a6020908152604091829020805460ff1916905590519182527fd450b62d328b3352ec2a3c4b949c1ed5200fa8a841b5bfbbe831d64ce1c95c34910161081c565b6000611629611620611933565b600c54906119a2565b905090565b600e818154811061163e57600080fd5b6000918252602090912001546001600160a01b0316905081565b6116606117e4565b6001600160a01b03821660009081526007602052604090205481106116d85760405162461bcd60e51b815260206004820152602860248201527f456e642074696d65206d7573742062652067726561746572207468616e2073746044820152676172742074696d6560c01b60648201526084016105b0565b6001600160a01b038216600081815260066020908152604091829020849055815192835282018390527fa02e309294e3ce8733291086b5c5c338afd9370defd51c0cb104ffc029ece35991016109dc565b6000611629611933565b61173b6117e4565b6001600160a01b0381166000818152600b602090815260409182902042905590519182527fcfe438f248d3757132817fd95e4dd5bede068f8f6db5595c5ecb816b7cca1c7e910161081c565b60025460ff16156117d05760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016105b0565b6002805460ff191660019081179091558055565b60025461010090046001600160a01b0316331461185b5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b60648201526084016105b0565b565b6001600160a01b0382166000908152600660209081526040808320546007835281842054600890935290832054909190828510156118a1576000935050505061113c565b6118d26118ae8484611eb3565b6118b88588611eb3565b6118c29084611e94565b6118cc9190611e74565b826119ae565b9695505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261192e9084906119c4565b505050565b6000805b600e5481101561199e57611980600e828154811061196557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03164261185d565b61198a9083611e5c565b91508061199681611ef6565b915050611937565b5090565b6000610f658284611eb3565b60008183106119bd5781610f65565b5090919050565b6000611a19826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a969092919063ffffffff16565b80519091501561192e5780806020019051810190611a379190611d28565b61192e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105b0565b6060611aa58484600085611aad565b949350505050565b606082471015611b0e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105b0565b843b611b5c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105b0565b600080866001600160a01b03168587604051611b789190611d5c565b60006040518083038185875af1925050503d8060008114611bb5576040519150601f19603f3d011682016040523d82523d6000602084013e611bba565b606091505b5091509150611bca828286611bd5565b979650505050505050565b60608315611be4575081610f65565b825115611bf45782518084602001fd5b8160405162461bcd60e51b81526004016105b09190611d78565b80356001600160a01b0381168114611c2557600080fd5b919050565b600060208284031215611c3b578081fd5b610f6582611c0e565b60008060408385031215611c56578081fd5b611c5f83611c0e565b9150611c6d60208401611c0e565b90509250929050565b600080600060608486031215611c8a578081fd5b611c9384611c0e565b9250611ca160208501611c0e565b9150604084013590509250925092565b60008060408385031215611cc3578182fd5b611ccc83611c0e565b946020939093013593505050565b600080600060608486031215611cee578283fd5b611cf784611c0e565b95602085013595506040909401359392505050565b600060208284031215611d1d578081fd5b8135610f6581611f27565b600060208284031215611d39578081fd5b8151610f6581611f27565b600060208284031215611d55578081fd5b5035919050565b60008251611d6e818460208701611eca565b9190910192915050565b6020815260008251806020840152611d97816040850160208701611eca565b601f01601f19169190910160400192915050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b602080825260119082015270125b9d985b1a59081c9958da5c1a595b9d607a1b604082015260600190565b6020808252603c908201527f5468697320616374696f6e2063616e6e6f7420626520706572666f726d65642060408201527f7768696c652074686520636f6e74726163742069732070617573656400000000606082015260800190565b60008219821115611e6f57611e6f611f11565b500190565b600082611e8f57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611eae57611eae611f11565b500290565b600082821015611ec557611ec5611f11565b500390565b60005b83811015611ee5578181015183820152602001611ecd565b83811115610ba05750506000910152565b6000600019821415611f0a57611f0a611f11565b5060010190565b634e487b7160e01b600052601160045260246000fd5b8015158114610ab157600080fdfea264697066735822122012a2b5e8e9fa0373db3306fc3ab8a8e23e1d6727550c8d0e29d0f03c42d70a6d64736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102485760003560e01c806391b4ded91161013b578063c3b83f5f116100b8578063d9844dc01161007c578063d9844dc014610527578063e084da531461052f578063ebc7977214610542578063ef5d9ae81461054a578063fc0c546a1461056a57600080fd5b8063c3b83f5f146104d3578063c66d4a1d146104e6578063ca5c7b91146104f9578063d1bc76a114610501578063d684395d1461051457600080fd5b8063a5f1e282116100ff578063a5f1e28214610457578063a766a6e31461046a578063b27f74b31461048a578063b51c2de0146104ad578063c2e6fdad146104c057600080fd5b806391b4ded914610402578063936bf9781461040b578063944771041461041e57806394e730b414610431578063994c7ec61461044457600080fd5b80634e71d92d116101c957806370a082311161018d57806370a08231146103bd5780637313ee5a146103d057806379ba5097146103d95780637d086b29146103e15780638da5cb5b146103ea57600080fd5b80634e71d92d1461033a57806353a47bb7146103425780635c975abb1461036d57806366b87b2a1461038a5780636e1dc66e1461039d57600080fd5b80631627540c116102105780631627540c146102ce57806316c38b3c146102e15780631794bb3c146102f457806340bee0ed146103075780634aefdccd1461031a57600080fd5b8063099d695f1461024d5780630af6ce851461028057806313af403514610295578063144fa6d7146102a8578063158a774d146102bb575b600080fd5b61026d61025b366004611c2a565b60086020526000908152604090205481565b6040519081526020015b60405180910390f35b61029361028e366004611cda565b610582565b005b6102936102a3366004611c2a565b6106ec565b6102936102b6366004611c2a565b610827565b6102936102c9366004611cb1565b6108ab565b6102936102dc366004611c2a565b6109e8565b6102936102ef366004611d0c565b610a3e565b610293610302366004611c76565b610ab4565b610293610315366004611d44565b610ba6565b61026d610328366004611c2a565b60076020526000908152604090205481565b610293610be3565b600354610355906001600160a01b031681565b6040516001600160a01b039091168152602001610277565b60055461037a9060ff1681565b6040519015158152602001610277565b610293610398366004611c44565b610dcd565b61026d6103ab366004611c2a565b60066020526000908152604090205481565b61026d6103cb366004611c2a565b610f17565b61026d600d5481565b610293610f6c565b61026d600c5481565b6002546103559061010090046001600160a01b031681565b61026d60045481565b610293610419366004611cb1565b611066565b61026d61042c366004611c2a565b611130565b61029361043f366004611c2a565b611142565b610293610452366004611c2a565b61119e565b61026d610465366004611c2a565b6111f2565b61026d610478366004611c2a565b600b6020526000908152604090205481565b61037a610498366004611c2a565b600a6020526000908152604090205460ff1681565b6102936104bb366004611d44565b611221565b6102936104ce366004611cb1565b61141c565b6102936104e1366004611c2a565b6114c5565b6102936104f4366004611c2a565b6115ba565b61026d611613565b61035561050f366004611d44565b61162e565b610293610522366004611cb1565b611658565b61026d611729565b61029361053d366004611c2a565b611733565b610293611787565b61026d610558366004611c2a565b60096020526000908152604090205481565b6005546103559061010090046001600160a01b031681565b61058a6117e4565b6001600160a01b0383166105b95760405162461bcd60e51b81526004016105b090611dab565b60405180910390fd5b6001600160a01b03831660009081526008602052604090205461065757600e8054600181019091557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319166001600160a01b0385169081179091556000908152600660205260409020819055600d5461063d9082611e5c565b6001600160a01b0384166000908152600760205260409020555b6001600160a01b03831660009081526008602052604090205461067b908390611e5c565b6001600160a01b038416600090815260086020526040902055600c546106a2908390611e5c565b600c55604080516001600160a01b0385168152602081018490527fda8220a878ff7a89474ccffdaa31ea1ed1ffbb0207d5051afccc4fbaf81f9bcd910160405180910390a1505050565b6001600160a01b0381166107425760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064016105b0565b600354600160a01b900460ff16156107ae5760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b60648201526084016105b0565b6003805460ff60a01b1916600160a01b179055600280546001600160a01b0383166101008102610100600160a81b031990921691909117909155604080516000815260208101929092527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b61082f6117e4565b6001600160a01b0381166108555760405162461bcd60e51b81526004016105b090611dab565b60058054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f5d108ca248943e98e1886bbc2c38beda701271994a14354258a11692b81b73cf9060200161081c565b6108b36117e4565b6001600160a01b0382166000908152600860205260409020546108e85760405162461bcd60e51b81526004016105b090611dd4565b806108f283610f17565b6001600160a01b0384166000908152600860205260409020546109159190611eb3565b116109535760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016105b0565b6001600160a01b038216600090815260086020526040902054610977908290611eb3565b6001600160a01b038316600090815260086020526040902055600c5461099e908290611eb3565b600c55604080516001600160a01b0384168152602081018390527f7ccab3314935ca1f84a73cefd1890ed82de2f1af692803e54bef5c4ad397404091015b60405180910390a15050565b6109f06117e4565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200161081c565b610a466117e4565b60055460ff1615158115151415610a5a5750565b6005805460ff191682151590811790915560ff1615610a7857426004555b60055460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59060200161081c565b50565b600054610100900460ff16610acf5760005460ff1615610ad3565b303b155b610b365760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016105b0565b600054610100900460ff16158015610b58576000805461ffff19166101011790555b610b61846106ec565b610b69611787565b60058054610100600160a81b0319166101006001600160a01b03861602179055600d8290558015610ba0576000805461ff00191690555b50505050565b610bae6117e4565b600d8190556040518181527f2f847163bc3888f61ddc9b405dc655d9cc509f5518194a06263f0ad3c090df969060200161081c565b6001806000828254610bf59190611e5c565b909155505060015460055460ff1615610c205760405162461bcd60e51b81526004016105b090611dff565b336000908152600a602052604090205460ff1615610c735760405162461bcd60e51b815260206004820152601060248201526f1058d8dbdd5b9d08191a5cd8589b195960821b60448201526064016105b0565b336000908152600b602052604090205480610c8b5750425b336000818152600960205260408120549091610ca7908461185d565b610cb19190611eb3565b905060008111610cf65760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b60448201526064016105b0565b600554610d129061010090046001600160a01b031633836118dc565b33600090815260096020526040902054610d2d908290611e5c565b336000818152600960209081526040918290209390935580519182529181018390527f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4910160405180910390a150506001548114610ab15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b0565b610dd56117e4565b6001600160a01b038216600090815260086020526040902054610e0a5760405162461bcd60e51b81526004016105b090611dd4565b6001600160a01b03811660009081526008602052604090205415610e705760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320697320616c7265616479206120726563697069656e74000060448201526064016105b0565b6001600160a01b0382811660008181526006602090815260408083208054958716808552828520969096558484528390556007825280832080548685528285205584845283905560088252808320805486855282852055848452839055600982528083208054868552828520558484529290925581519283528201929092527f64cbbd34f3faebfd04eff088ae5832f6d254dbb81820b0055e9d85c534aa700d91016109dc565b6001600160a01b0381166000908152600b602052604081205480610f385750425b6001600160a01b038316600090815260096020526040902054610f5b848361185d565b610f659190611eb3565b9392505050565b6003546001600160a01b03163314610fe45760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b60648201526084016105b0565b600254600354604080516101009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a16003805460028054610100600160a81b0319166101006001600160a01b038416021790556001600160a01b0319169055565b61106e6117e4565b6001600160a01b0382166000908152600860205260409020546110a35760405162461bcd60e51b81526004016105b090611dd4565b6001600160a01b0382166000908152600860205260409020546110c7908290611e5c565b6001600160a01b038316600090815260086020526040902055600c546110ee908290611e5c565b600c55604080516001600160a01b0384168152602081018390527fcddfbeca0b87c7d6c37255d733eb9d5ec52b4513bcd358b48c9390a12b25cf9491016109dc565b600061113c824261185d565b92915050565b61114a6117e4565b6001600160a01b0381166000818152600a6020908152604091829020805460ff1916600117905590519182527f9868ea5629b5bfa1be72fddfa5cb8b2328a007daacd59db81ef6dc197e871238910161081c565b6111a66117e4565b6001600160a01b0381166000818152600b602090815260408083209290925590519182527f283a148c0482d064fbf794e0d297192b1854c7edf96c8397dbc1ebd950f232b1910161081c565b60006111fe824261185d565b6001600160a01b03831660009081526008602052604090205461113c9190611eb3565b60018060008282546112339190611e5c565b909155505060015460055460ff161561125e5760405162461bcd60e51b81526004016105b090611dff565b336000908152600a602052604090205460ff16156112b15760405162461bcd60e51b815260206004820152601060248201526f1058d8dbdd5b9d08191a5cd8589b195960821b60448201526064016105b0565b336000908152600b6020526040902054806112c95750425b3360008181526009602052604081205490916112e5908461185d565b6112ef9190611eb3565b9050838110156113415760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206578636565647320636c61696d61626c652076616c7565000060448201526064016105b0565b60055461135d9061010090046001600160a01b031633866118dc565b33600090815260096020526040902054611378908590611e5c565b336000818152600960209081526040918290209390935580519182529181018690527f5bf4ffbba2c193e74d733f69408011d333232e84b98a68ecb638621dab65fff5910160405180910390a1505060015481146114185760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b0565b5050565b6114246117e4565b428110156114745760405162461bcd60e51b815260206004820152601a60248201527f456e642074696d65206d75737420626520696e2066757475726500000000000060448201526064016105b0565b6001600160a01b038216600081815260076020908152604091829020849055815192835282018390527fd5891347aff183508ba2deffbe6ffc2875d2863fbc5addb55e550c0057a6113d91016109dc565b6114cd6117e4565b6001600160a01b0381166114f35760405162461bcd60e51b81526004016105b090611dab565b600354600160a81b900460ff16156115435760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b60448201526064016105b0565b600280546001600160a01b03838116610100818102610100600160a81b031990941693909317938490556003805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910161081c565b6115c26117e4565b6001600160a01b0381166000818152600a6020908152604091829020805460ff1916905590519182527fd450b62d328b3352ec2a3c4b949c1ed5200fa8a841b5bfbbe831d64ce1c95c34910161081c565b6000611629611620611933565b600c54906119a2565b905090565b600e818154811061163e57600080fd5b6000918252602090912001546001600160a01b0316905081565b6116606117e4565b6001600160a01b03821660009081526007602052604090205481106116d85760405162461bcd60e51b815260206004820152602860248201527f456e642074696d65206d7573742062652067726561746572207468616e2073746044820152676172742074696d6560c01b60648201526084016105b0565b6001600160a01b038216600081815260066020908152604091829020849055815192835282018390527fa02e309294e3ce8733291086b5c5c338afd9370defd51c0cb104ffc029ece35991016109dc565b6000611629611933565b61173b6117e4565b6001600160a01b0381166000818152600b602090815260409182902042905590519182527fcfe438f248d3757132817fd95e4dd5bede068f8f6db5595c5ecb816b7cca1c7e910161081c565b60025460ff16156117d05760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016105b0565b6002805460ff191660019081179091558055565b60025461010090046001600160a01b0316331461185b5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b60648201526084016105b0565b565b6001600160a01b0382166000908152600660209081526040808320546007835281842054600890935290832054909190828510156118a1576000935050505061113c565b6118d26118ae8484611eb3565b6118b88588611eb3565b6118c29084611e94565b6118cc9190611e74565b826119ae565b9695505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261192e9084906119c4565b505050565b6000805b600e5481101561199e57611980600e828154811061196557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03164261185d565b61198a9083611e5c565b91508061199681611ef6565b915050611937565b5090565b6000610f658284611eb3565b60008183106119bd5781610f65565b5090919050565b6000611a19826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a969092919063ffffffff16565b80519091501561192e5780806020019051810190611a379190611d28565b61192e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105b0565b6060611aa58484600085611aad565b949350505050565b606082471015611b0e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105b0565b843b611b5c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105b0565b600080866001600160a01b03168587604051611b789190611d5c565b60006040518083038185875af1925050503d8060008114611bb5576040519150601f19603f3d011682016040523d82523d6000602084013e611bba565b606091505b5091509150611bca828286611bd5565b979650505050505050565b60608315611be4575081610f65565b825115611bf45782518084602001fd5b8160405162461bcd60e51b81526004016105b09190611d78565b80356001600160a01b0381168114611c2557600080fd5b919050565b600060208284031215611c3b578081fd5b610f6582611c0e565b60008060408385031215611c56578081fd5b611c5f83611c0e565b9150611c6d60208401611c0e565b90509250929050565b600080600060608486031215611c8a578081fd5b611c9384611c0e565b9250611ca160208501611c0e565b9150604084013590509250925092565b60008060408385031215611cc3578182fd5b611ccc83611c0e565b946020939093013593505050565b600080600060608486031215611cee578283fd5b611cf784611c0e565b95602085013595506040909401359392505050565b600060208284031215611d1d578081fd5b8135610f6581611f27565b600060208284031215611d39578081fd5b8151610f6581611f27565b600060208284031215611d55578081fd5b5035919050565b60008251611d6e818460208701611eca565b9190910192915050565b6020815260008251806020840152611d97816040850160208701611eca565b601f01601f19169190910160400192915050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b602080825260119082015270125b9d985b1a59081c9958da5c1a595b9d607a1b604082015260600190565b6020808252603c908201527f5468697320616374696f6e2063616e6e6f7420626520706572666f726d65642060408201527f7768696c652074686520636f6e74726163742069732070617573656400000000606082015260800190565b60008219821115611e6f57611e6f611f11565b500190565b600082611e8f57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611eae57611eae611f11565b500290565b600082821015611ec557611ec5611f11565b500390565b60005b83811015611ee5578181015183820152602001611ecd565b83811115610ba05750506000910152565b6000600019821415611f0a57611f0a611f11565b5060010190565b634e487b7160e01b600052601160045260246000fd5b8015158114610ab157600080fdfea264697066735822122012a2b5e8e9fa0373db3306fc3ab8a8e23e1d6727550c8d0e29d0f03c42d70a6d64736f6c63430008040033
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.