Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
VestingEscrowProxy
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.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 VestingEscrowProxy is Initializable, ProxyReentrancyGuard, ProxyOwned, ProxyPausable { using SafeMathUpgradeable for uint; using SafeERC20Upgradeable for IERC20Upgradeable; address public token; uint256 public startTime; uint256 public endTime; mapping(address => uint256) public initialLocked; mapping(address => uint256) public totalClaimed; uint256 public initialLockedSupply; function initialize( address _owner, address _token, uint256 _startTime, uint256 _endTime ) public initializer { setOwner(_owner); initNonReentrant(); require(_startTime >= block.timestamp, "Start time must be in future"); require(_endTime > _startTime, "End time must be greater than start time"); token = _token; startTime = _startTime; endTime = _endTime; } function fund(address[] calldata _recipients, uint256[] calldata _amounts) external onlyOwner { uint256 _totalAmount = 0; for (uint256 index = 0; index < _recipients.length; index++) { uint256 amount = _amounts[index]; address recipient = _recipients[index]; if (recipient == address(0)) { break; } _totalAmount = _totalAmount.add(amount); initialLocked[recipient] = initialLocked[recipient].add(amount); emit Fund(recipient, amount); } initialLockedSupply = initialLockedSupply.add(_totalAmount); } function _totalVestedOf(address _recipient, uint256 _time) internal view returns (uint256) { uint256 start = startTime; uint256 end = endTime; uint256 locked = initialLocked[_recipient]; if (_time < start) return 0; return MathUpgradeable.min(locked.mul(_time.sub(start)).div(end.sub(start)), locked); } function _totalVested() internal view returns (uint256) { uint256 start = startTime; uint256 end = endTime; uint256 locked = initialLockedSupply; if (block.timestamp < start) { return 0; } return MathUpgradeable.min(locked.mul(block.timestamp.sub(start)).div(end.sub(start)), locked); } function vestedSupply() public view returns (uint256) { return _totalVested(); } function vestedOf(address _recipient) public view returns (uint256) { return _totalVestedOf(_recipient, block.timestamp); } function lockedSupply() public view returns (uint256) { return initialLockedSupply.sub(_totalVested()); } function balanceOf(address _recipient) public view returns (uint256) { return _totalVestedOf(_recipient, block.timestamp).sub(totalClaimed[_recipient]); } function lockedOf(address _recipient) public view returns (uint256) { return initialLocked[_recipient].sub(_totalVestedOf(_recipient, block.timestamp)); } function claim() external nonReentrant notPaused { uint256 claimable = balanceOf(msg.sender); require(claimable > 0, "nothing to claim"); totalClaimed[msg.sender] = totalClaimed[msg.sender].add(claimable); IERC20Upgradeable(token).safeTransfer(msg.sender, claimable); emit Claim(msg.sender, claimable); } function setStartTime(uint256 _startTime) external onlyOwner { startTime = _startTime; } function setEndTime(uint256 _endTime) external onlyOwner { endTime = _endTime; } function setToken(address _token) external onlyOwner { token = _token; } event Fund(address indexed _recipient, uint256 _amount); event Claim(address indexed _address, uint256 _amount); }
// 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":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"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":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","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":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"fund","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":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","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":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"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":[],"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":"vestedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611497806100206000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80637d086b29116100f9578063ca5c7b9111610097578063eb990c5911610071578063eb990c5914610358578063ebc797721461036b578063ef5d9ae814610373578063fc0c546a1461039357600080fd5b8063ca5c7b9114610335578063ccb98ffc1461033d578063d9844dc01461035057600080fd5b806394477104116100d357806394477104146102e9578063a5f1e282146102fc578063b1e56f6b1461030f578063c3b83f5f1461032257600080fd5b80637d086b29146102bf5780638da5cb5b146102c857806391b4ded9146102e057600080fd5b80633e0a322d116101665780635c975abb116101405780635c975abb1461027e57806370a082311461029b57806378e97925146102ae57806379ba5097146102b757600080fd5b80633e0a322d146102385780634e71d92d1461024b57806353a47bb71461025357600080fd5b8063099d695f146101ae57806313af4035146101e1578063144fa6d7146101f65780631627540c1461020957806316c38b3c1461021c5780633197cbb61461022f575b600080fd5b6101ce6101bc366004611221565b60086020526000908152604090205481565b6040519081526020015b60405180910390f35b6101f46101ef366004611221565b6103ab565b005b6101f4610204366004611221565b6104eb565b6101f4610217366004611221565b61051b565b6101f461022a3660046112e5565b610571565b6101ce60075481565b6101f461024636600461131d565b6105e7565b6101f46105f4565b600354610266906001600160a01b031681565b6040516001600160a01b0390911681526020016101d8565b60055461028b9060ff1681565b60405190151581526020016101d8565b6101ce6102a9366004611221565b6107a8565b6101ce60065481565b6101f46107db565b6101ce600a5481565b6002546102669061010090046001600160a01b031681565b6101ce60045481565b6101ce6102f7366004611221565b6108d5565b6101ce61030a366004611221565b6108e1565b6101f461031d36600461127c565b61090f565b6101f4610330366004611221565b610a50565b6101ce610b67565b6101f461034b36600461131d565b610b82565b6101ce610b8f565b6101f461036636600461123b565b610b99565b6101f4610d41565b6101ce610381366004611221565b60096020526000908152604090205481565b6005546102669061010090046001600160a01b031681565b6001600160a01b0381166104065760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600354600160a01b900460ff16156104725760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b60648201526084016103fd565b6003805460ff60a01b1916600160a01b179055600280546001600160a01b0383166101008102610100600160a81b031990921691909117909155604080516000815260208101929092527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b6104f3610d9e565b600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b610523610d9e565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016104e0565b610579610d9e565b60055460ff161515811515141561058d5750565b6005805460ff191682151590811790915560ff16156105ab57426004555b60055460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5906020016104e0565b50565b6105ef610d9e565b600655565b60018060008282546106069190611384565b909155505060015460055460ff16156106875760405162461bcd60e51b815260206004820152603c60248201527f5468697320616374696f6e2063616e6e6f7420626520706572666f726d65642060448201527f7768696c652074686520636f6e7472616374206973207061757365640000000060648201526084016103fd565b6000610692336107a8565b9050600081116106d75760405162461bcd60e51b815260206004820152601060248201526f6e6f7468696e6720746f20636c61696d60801b60448201526064016103fd565b336000908152600960205260409020546106f19082610e17565b33600081815260096020526040902091909155600554610721916101009091046001600160a01b03169083610e2a565b60405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a25060015481146105e45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103fd565b6001600160a01b0381166000908152600960205260408120546107d5906107cf8442610e81565b90610ef2565b92915050565b6003546001600160a01b031633146108535760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b60648201526084016103fd565b600254600354604080516101009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a16003805460028054610100600160a81b0319166101006001600160a01b038416021790556001600160a01b0319169055565b60006107d58242610e81565b60006107d56108f08342610e81565b6001600160a01b03841660009081526008602052604090205490610ef2565b610917610d9e565b6000805b84811015610a3857600084848381811061094557634e487b7160e01b600052603260045260246000fd5b905060200201359050600087878481811061097057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109859190611221565b90506001600160a01b03811661099c575050610a38565b6109a68483610e17565b6001600160a01b0382166000908152600860205260409020549094506109cc9083610e17565b6001600160a01b038216600081815260086020526040908190209290925590517fda8220a878ff7a89474ccffdaa31ea1ed1ffbb0207d5051afccc4fbaf81f9bcd90610a1b9085815260200190565b60405180910390a250508080610a3090611422565b91505061091b565b50600a54610a469082610e17565b600a555050505050565b610a58610d9e565b6001600160a01b038116610aa05760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016103fd565b600354600160a81b900460ff1615610af05760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b60448201526064016103fd565b600280546001600160a01b03838116610100818102610100600160a81b031990941693909317938490556003805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016104e0565b6000610b7d610b74610efe565b600a5490610ef2565b905090565b610b8a610d9e565b600755565b6000610b7d610efe565b600054610100900460ff16610bb45760005460ff1615610bb8565b303b155b610c1b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103fd565b600054610100900460ff16158015610c3d576000805461ffff19166101011790555b610c46856103ab565b610c4e610d41565b42831015610c9e5760405162461bcd60e51b815260206004820152601c60248201527f53746172742074696d65206d75737420626520696e206675747572650000000060448201526064016103fd565b828211610cfe5760405162461bcd60e51b815260206004820152602860248201527f456e642074696d65206d7573742062652067726561746572207468616e2073746044820152676172742074696d6560c01b60648201526084016103fd565b60058054610100600160a81b0319166101006001600160a01b03871602179055600683905560078290558015610d3a576000805461ff00191690555b5050505050565b60025460ff1615610d8a5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016103fd565b6002805460ff191660019081179091558055565b60025461010090046001600160a01b03163314610e155760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b60648201526084016103fd565b565b6000610e238284611384565b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610e7c908490610f43565b505050565b6006546007546001600160a01b0384166000908152600860205260408120549092919082851015610eb857600093505050506107d5565b610ee8610ee2610ec88486610ef2565b610edc610ed58988610ef2565b8590611015565b90611021565b8261102d565b9695505050505050565b6000610e2382846113db565b600654600754600a54600092919042831115610f1e576000935050505090565b610f3b610ee2610f2e8486610ef2565b610edc610ed54288610ef2565b935050505090565b6000610f98826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110439092919063ffffffff16565b805190915015610e7c5780806020019051810190610fb69190611301565b610e7c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103fd565b6000610e2382846113bc565b6000610e23828461139c565b600081831061103c5781610e23565b5090919050565b6060611052848460008561105a565b949350505050565b6060824710156110bb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103fd565b843b6111095760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103fd565b600080866001600160a01b031685876040516111259190611335565b60006040518083038185875af1925050503d8060008114611162576040519150601f19603f3d011682016040523d82523d6000602084013e611167565b606091505b5091509150611177828286611182565b979650505050505050565b60608315611191575081610e23565b8251156111a15782518084602001fd5b8160405162461bcd60e51b81526004016103fd9190611351565b80356001600160a01b03811681146111d257600080fd5b919050565b60008083601f8401126111e8578182fd5b50813567ffffffffffffffff8111156111ff578182fd5b6020830191508360208260051b850101111561121a57600080fd5b9250929050565b600060208284031215611232578081fd5b610e23826111bb565b60008060008060808587031215611250578283fd5b611259856111bb565b9350611267602086016111bb565b93969395505050506040820135916060013590565b60008060008060408587031215611291578384fd5b843567ffffffffffffffff808211156112a8578586fd5b6112b4888389016111d7565b909650945060208701359150808211156112cc578384fd5b506112d9878288016111d7565b95989497509550505050565b6000602082840312156112f6578081fd5b8135610e2381611453565b600060208284031215611312578081fd5b8151610e2381611453565b60006020828403121561132e578081fd5b5035919050565b600082516113478184602087016113f2565b9190910192915050565b60208152600082518060208401526113708160408501602087016113f2565b601f01601f19169190910160400192915050565b600082198211156113975761139761143d565b500190565b6000826113b757634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156113d6576113d661143d565b500290565b6000828210156113ed576113ed61143d565b500390565b60005b8381101561140d5781810151838201526020016113f5565b8381111561141c576000848401525b50505050565b60006000198214156114365761143661143d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b80151581146105e457600080fdfea26469706673582212201e97c98ee724cb067e37b3b4e97ca4f02fc12ea31ced5e06c4b661362715530764736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80637d086b29116100f9578063ca5c7b9111610097578063eb990c5911610071578063eb990c5914610358578063ebc797721461036b578063ef5d9ae814610373578063fc0c546a1461039357600080fd5b8063ca5c7b9114610335578063ccb98ffc1461033d578063d9844dc01461035057600080fd5b806394477104116100d357806394477104146102e9578063a5f1e282146102fc578063b1e56f6b1461030f578063c3b83f5f1461032257600080fd5b80637d086b29146102bf5780638da5cb5b146102c857806391b4ded9146102e057600080fd5b80633e0a322d116101665780635c975abb116101405780635c975abb1461027e57806370a082311461029b57806378e97925146102ae57806379ba5097146102b757600080fd5b80633e0a322d146102385780634e71d92d1461024b57806353a47bb71461025357600080fd5b8063099d695f146101ae57806313af4035146101e1578063144fa6d7146101f65780631627540c1461020957806316c38b3c1461021c5780633197cbb61461022f575b600080fd5b6101ce6101bc366004611221565b60086020526000908152604090205481565b6040519081526020015b60405180910390f35b6101f46101ef366004611221565b6103ab565b005b6101f4610204366004611221565b6104eb565b6101f4610217366004611221565b61051b565b6101f461022a3660046112e5565b610571565b6101ce60075481565b6101f461024636600461131d565b6105e7565b6101f46105f4565b600354610266906001600160a01b031681565b6040516001600160a01b0390911681526020016101d8565b60055461028b9060ff1681565b60405190151581526020016101d8565b6101ce6102a9366004611221565b6107a8565b6101ce60065481565b6101f46107db565b6101ce600a5481565b6002546102669061010090046001600160a01b031681565b6101ce60045481565b6101ce6102f7366004611221565b6108d5565b6101ce61030a366004611221565b6108e1565b6101f461031d36600461127c565b61090f565b6101f4610330366004611221565b610a50565b6101ce610b67565b6101f461034b36600461131d565b610b82565b6101ce610b8f565b6101f461036636600461123b565b610b99565b6101f4610d41565b6101ce610381366004611221565b60096020526000908152604090205481565b6005546102669061010090046001600160a01b031681565b6001600160a01b0381166104065760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600354600160a01b900460ff16156104725760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b60648201526084016103fd565b6003805460ff60a01b1916600160a01b179055600280546001600160a01b0383166101008102610100600160a81b031990921691909117909155604080516000815260208101929092527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b6104f3610d9e565b600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b610523610d9e565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016104e0565b610579610d9e565b60055460ff161515811515141561058d5750565b6005805460ff191682151590811790915560ff16156105ab57426004555b60055460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5906020016104e0565b50565b6105ef610d9e565b600655565b60018060008282546106069190611384565b909155505060015460055460ff16156106875760405162461bcd60e51b815260206004820152603c60248201527f5468697320616374696f6e2063616e6e6f7420626520706572666f726d65642060448201527f7768696c652074686520636f6e7472616374206973207061757365640000000060648201526084016103fd565b6000610692336107a8565b9050600081116106d75760405162461bcd60e51b815260206004820152601060248201526f6e6f7468696e6720746f20636c61696d60801b60448201526064016103fd565b336000908152600960205260409020546106f19082610e17565b33600081815260096020526040902091909155600554610721916101009091046001600160a01b03169083610e2a565b60405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a25060015481146105e45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103fd565b6001600160a01b0381166000908152600960205260408120546107d5906107cf8442610e81565b90610ef2565b92915050565b6003546001600160a01b031633146108535760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b60648201526084016103fd565b600254600354604080516101009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a16003805460028054610100600160a81b0319166101006001600160a01b038416021790556001600160a01b0319169055565b60006107d58242610e81565b60006107d56108f08342610e81565b6001600160a01b03841660009081526008602052604090205490610ef2565b610917610d9e565b6000805b84811015610a3857600084848381811061094557634e487b7160e01b600052603260045260246000fd5b905060200201359050600087878481811061097057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109859190611221565b90506001600160a01b03811661099c575050610a38565b6109a68483610e17565b6001600160a01b0382166000908152600860205260409020549094506109cc9083610e17565b6001600160a01b038216600081815260086020526040908190209290925590517fda8220a878ff7a89474ccffdaa31ea1ed1ffbb0207d5051afccc4fbaf81f9bcd90610a1b9085815260200190565b60405180910390a250508080610a3090611422565b91505061091b565b50600a54610a469082610e17565b600a555050505050565b610a58610d9e565b6001600160a01b038116610aa05760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016103fd565b600354600160a81b900460ff1615610af05760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b60448201526064016103fd565b600280546001600160a01b03838116610100818102610100600160a81b031990941693909317938490556003805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016104e0565b6000610b7d610b74610efe565b600a5490610ef2565b905090565b610b8a610d9e565b600755565b6000610b7d610efe565b600054610100900460ff16610bb45760005460ff1615610bb8565b303b155b610c1b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103fd565b600054610100900460ff16158015610c3d576000805461ffff19166101011790555b610c46856103ab565b610c4e610d41565b42831015610c9e5760405162461bcd60e51b815260206004820152601c60248201527f53746172742074696d65206d75737420626520696e206675747572650000000060448201526064016103fd565b828211610cfe5760405162461bcd60e51b815260206004820152602860248201527f456e642074696d65206d7573742062652067726561746572207468616e2073746044820152676172742074696d6560c01b60648201526084016103fd565b60058054610100600160a81b0319166101006001600160a01b03871602179055600683905560078290558015610d3a576000805461ff00191690555b5050505050565b60025460ff1615610d8a5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016103fd565b6002805460ff191660019081179091558055565b60025461010090046001600160a01b03163314610e155760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b60648201526084016103fd565b565b6000610e238284611384565b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610e7c908490610f43565b505050565b6006546007546001600160a01b0384166000908152600860205260408120549092919082851015610eb857600093505050506107d5565b610ee8610ee2610ec88486610ef2565b610edc610ed58988610ef2565b8590611015565b90611021565b8261102d565b9695505050505050565b6000610e2382846113db565b600654600754600a54600092919042831115610f1e576000935050505090565b610f3b610ee2610f2e8486610ef2565b610edc610ed54288610ef2565b935050505090565b6000610f98826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110439092919063ffffffff16565b805190915015610e7c5780806020019051810190610fb69190611301565b610e7c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103fd565b6000610e2382846113bc565b6000610e23828461139c565b600081831061103c5781610e23565b5090919050565b6060611052848460008561105a565b949350505050565b6060824710156110bb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103fd565b843b6111095760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103fd565b600080866001600160a01b031685876040516111259190611335565b60006040518083038185875af1925050503d8060008114611162576040519150601f19603f3d011682016040523d82523d6000602084013e611167565b606091505b5091509150611177828286611182565b979650505050505050565b60608315611191575081610e23565b8251156111a15782518084602001fd5b8160405162461bcd60e51b81526004016103fd9190611351565b80356001600160a01b03811681146111d257600080fd5b919050565b60008083601f8401126111e8578182fd5b50813567ffffffffffffffff8111156111ff578182fd5b6020830191508360208260051b850101111561121a57600080fd5b9250929050565b600060208284031215611232578081fd5b610e23826111bb565b60008060008060808587031215611250578283fd5b611259856111bb565b9350611267602086016111bb565b93969395505050506040820135916060013590565b60008060008060408587031215611291578384fd5b843567ffffffffffffffff808211156112a8578586fd5b6112b4888389016111d7565b909650945060208701359150808211156112cc578384fd5b506112d9878288016111d7565b95989497509550505050565b6000602082840312156112f6578081fd5b8135610e2381611453565b600060208284031215611312578081fd5b8151610e2381611453565b60006020828403121561132e578081fd5b5035919050565b600082516113478184602087016113f2565b9190910192915050565b60208152600082518060208401526113708160408501602087016113f2565b601f01601f19169190910160400192915050565b600082198211156113975761139761143d565b500190565b6000826113b757634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156113d6576113d661143d565b500290565b6000828210156113ed576113ed61143d565b500390565b60005b8381101561140d5781810151838201526020016113f5565b8381111561141c576000848401525b50505050565b60006000198214156114365761143661143d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b80151581146105e457600080fdfea26469706673582212201e97c98ee724cb067e37b3b4e97ca4f02fc12ea31ced5e06c4b661362715530764736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.