More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 914 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 18872259 | 336 days ago | IN | 0 ETH | 0.00055022 | ||||
Claim | 18872256 | 336 days ago | IN | 0 ETH | 0.00133333 | ||||
Claim | 17048773 | 592 days ago | IN | 0 ETH | 0.00167952 | ||||
Claim | 16878011 | 616 days ago | IN | 0 ETH | 0.00133362 | ||||
Claim | 16556602 | 661 days ago | IN | 0 ETH | 0.00170632 | ||||
Claim | 15976557 | 742 days ago | IN | 0 ETH | 0.00125611 | ||||
Claim | 15652450 | 788 days ago | IN | 0 ETH | 0.00038127 | ||||
Claim | 15651966 | 788 days ago | IN | 0 ETH | 0.00041648 | ||||
Claim | 15638996 | 790 days ago | IN | 0 ETH | 0.00069945 | ||||
Claim | 15531725 | 805 days ago | IN | 0 ETH | 0.00069528 | ||||
Claim | 15531698 | 805 days ago | IN | 0 ETH | 0.00029713 | ||||
Claim | 15531698 | 805 days ago | IN | 0 ETH | 0.00072777 | ||||
Claim | 15508070 | 809 days ago | IN | 0 ETH | 0.00055718 | ||||
Claim | 15493996 | 811 days ago | IN | 0 ETH | 0.00027031 | ||||
Claim | 15493996 | 811 days ago | IN | 0 ETH | 0.0006174 | ||||
Claim | 15477454 | 814 days ago | IN | 0 ETH | 0.00036819 | ||||
Claim | 15466740 | 815 days ago | IN | 0 ETH | 0.00043102 | ||||
Claim | 15455524 | 817 days ago | IN | 0 ETH | 0.00099166 | ||||
Claim | 15453151 | 818 days ago | IN | 0 ETH | 0.00157436 | ||||
Claim | 15385594 | 828 days ago | IN | 0 ETH | 0.00059409 | ||||
Claim | 15372254 | 830 days ago | IN | 0 ETH | 0.00122526 | ||||
Claim | 15354547 | 833 days ago | IN | 0 ETH | 0.00107509 | ||||
Claim | 15354399 | 833 days ago | IN | 0 ETH | 0.00143109 | ||||
Claim | 15352103 | 834 days ago | IN | 0 ETH | 0.00090505 | ||||
Claim | 15351452 | 834 days ago | IN | 0 ETH | 0.00020846 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | ||||
---|---|---|---|---|---|---|---|
18872256 | 336 days ago | 0 ETH | |||||
18872256 | 336 days ago | 0 ETH | |||||
17048773 | 592 days ago | 0 ETH | |||||
17048773 | 592 days ago | 0 ETH | |||||
16878011 | 616 days ago | 0 ETH | |||||
16878011 | 616 days ago | 0 ETH | |||||
16556602 | 661 days ago | 0 ETH | |||||
16556602 | 661 days ago | 0 ETH | |||||
15976557 | 742 days ago | 0 ETH | |||||
15976557 | 742 days ago | 0 ETH | |||||
15652450 | 788 days ago | 0 ETH | |||||
15652450 | 788 days ago | 0 ETH | |||||
15651966 | 788 days ago | 0 ETH | |||||
15651966 | 788 days ago | 0 ETH | |||||
15638996 | 790 days ago | 0 ETH | |||||
15638996 | 790 days ago | 0 ETH | |||||
15531725 | 805 days ago | 0 ETH | |||||
15531725 | 805 days ago | 0 ETH | |||||
15531698 | 805 days ago | 0 ETH | |||||
15531698 | 805 days ago | 0 ETH | |||||
15508070 | 809 days ago | 0 ETH | |||||
15508070 | 809 days ago | 0 ETH | |||||
15493996 | 811 days ago | 0 ETH | |||||
15493996 | 811 days ago | 0 ETH | |||||
15477454 | 814 days ago | 0 ETH |
Loading...
Loading
Contract Name:
DexGameVesting
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)
pragma solidity >=0.8.0 <0.9.0; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title Vested token * @dev Tokens that can be vested for a group of addresses. */ contract DexGameVesting is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; uint256 public totalTokenGrants; IERC20 private _token; struct TokenGrant { uint256 value; // 32 bytes uint256 claimedValue; uint64 cliff; uint64 vesting; uint64 start; // 3 * 8 = 24 bytes } // total 78 bytes = 3 sstore per operation (32 per sstore) mapping(address => TokenGrant) private grants; event NewTokenGrant(address indexed to, uint256 value); constructor(IERC20 pToken) { _token = pToken; } function claim() external returns (bool success) { address _to = _msgSender(); uint256 _balance = spendableBalanceOf(_to); require(_balance > 0, "no claimable token available."); require(_token.balanceOf(address(this)) >= _balance); require(_token.transfer(_to, _balance)); grants[_to].claimedValue = grants[_to].claimedValue.add(_balance); return true; } function spendableBalanceOf(address _holder) public view returns (uint256) { return transferableTokens(_holder, uint64(block.timestamp)); } /** * @dev Grant tokens to a specified address * @param _to address The address which the tokens will be granted to. * @param _value uint256 The amount of tokens to be granted. * @param _start uint64 Time of the beginning of the grant. * @param _cliff uint64 Time of the cliff period. * @param _vesting uint64 The vesting period. */ function grantVestedTokens( address _to, uint256 _value, uint64 _start, uint64 _cliff, uint64 _vesting ) public onlyOwner { // Check for date inconsistencies that may cause unexpected behavior require(_cliff >= _start && _vesting >= _cliff); require(!tokenGrantExist(_to), "grant already exist.!"); grants[_to] = TokenGrant(_value, 0, _cliff, _vesting, _start); totalTokenGrants = totalTokenGrants.add(_value); emit NewTokenGrant(_to, _value); } function bulkGrantVestedToken( address[] calldata _tos, uint256[] calldata _values, uint64[] calldata _starts, uint64[] calldata _cliffs, uint64[] calldata _vestings ) public onlyOwner { require( _tos.length == _values.length && _tos.length == _starts.length && _tos.length == _cliffs.length && _tos.length == _vestings.length ); for (uint256 i = 0; i < _tos.length; i++) { if (tokenGrantExist(_tos[i])) continue; grantVestedTokens( _tos[i], _values[i], _starts[i], _cliffs[i], _vestings[i] ); } } /** * @dev Revoke the grant of tokens of a specifed address. * @param _holder The address which will have its tokens revoked. */ function revokeTokenGrant(address _holder) public onlyOwner { require(tokenGrantExist(_holder), "grant not exist.!"); TokenGrant storage _grant = grants[_holder]; uint256 _remainingValue = _grant.value.sub(_grant.claimedValue); // remove grant from array require(_token.transfer(owner(), _remainingValue), "transfer failed.!"); totalTokenGrants = totalTokenGrants.sub(_remainingValue); delete grants[_holder]; } /** * @dev Calculate the total amount of transferable tokens of a holder at a given time * @param holder address The address of the holder * @param time uint64 The specific time. * @return An uint256 representing a holder's total amount of transferable tokens. */ function transferableTokens(address holder, uint64 time) public view returns (uint256) { bool grantExist = tokenGrantExist(holder); if (grantExist == false) return 0; // shortcut for holder without grants TokenGrant storage _grant = grants[holder]; uint256 _vested = vestedTokens(_grant, time); uint256 _claimedValue = _grant.claimedValue; // Balance - totalNonVested is the amount of tokens a holder can transfer at any given time (bool _flag, uint256 _vestedTransferable) = _vested.trySub( _claimedValue ); if (!_flag) return 0; // Return the minimum of how many vested can transfer and other value // in case there are other limiting transferability factors (default is balanceOf) return _vestedTransferable; } /** * @dev Check the amount of grants that an address has. * @param _holder The holder of the grants. * @return grantExist A bool representing the total amount of grants. */ function tokenGrantExist(address _holder) private view returns (bool grantExist) { return grants[_holder].value > 0; } /** * @dev Calculate amount of vested tokens at a specific time * @param tokens uint256 The amount of tokens granted * @param time uint64 The time to be checked * @param start uint64 The time representing the beginning of the grant * @param cliff uint64 The cliff period, the period before nothing can be paid out * @param vesting uint64 The vesting period * @return An uint256 representing the amount of vested tokens of a specific grant * transferableTokens * | _/-------- vestedTokens rect * | _/ * | _/ * | _/ * | _/ * | / * | .| * | . | * | . | * | . | * | . | * | . | * +===+===========+---------+----------> time * Start Cliff Vesting */ function calculateVestedTokens( uint256 tokens, uint256 time, uint256 start, uint256 cliff, uint256 vesting ) public pure returns (uint256) { // Shortcuts for before cliff and after vesting cases. if (time < cliff) return 0; if (time >= vesting) return tokens; // Interpolate all vested tokens. // As before cliff the shortcut returns 0, we can use just calculate a value // in the vesting rect (as shown in above's figure) uint256 _vestedTokens = SafeMath.div( SafeMath.mul(tokens, SafeMath.sub(time, start)), SafeMath.sub(vesting, start) ); return _vestedTokens; } /** * @dev Get all information about a specific grant. * @param _holder The address which will have its tokens revoked. */ function tokenGrant(address _holder) public view returns ( uint256 value, uint256 claimedValue, uint256 vested, uint256 claimableValue, uint64 start, uint64 cliff, uint64 vesting ) { TokenGrant storage _grant = grants[_holder]; value = _grant.value; claimedValue = _grant.claimedValue; start = _grant.start; cliff = _grant.cliff; vesting = _grant.vesting; vested = vestedTokens(_grant, uint64(block.timestamp)); if(vested>0) claimableValue = vested.sub(claimedValue); else claimableValue = 0; } /** * @dev Get the amount of vested tokens at a specific time. * @param grant TokenGrant The grant to be checked. * @param time The time to be checked * @return An uint256 representing the amount of vested tokens of a specific grant at a specific time. */ function vestedTokens(TokenGrant memory grant, uint64 time) private pure returns (uint256) { return calculateVestedTokens( grant.value, uint256(time), uint256(grant.start), uint256(grant.cliff), uint256(grant.vesting) ); } function emergencyWithdrawal() public onlyOwner { require( _token.transfer(owner(), _token.balanceOf(address(this))), "transfer failed.!" ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @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 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 no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @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 pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"pToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"NewTokenGrant","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address[]","name":"_tos","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"uint64[]","name":"_starts","type":"uint64[]"},{"internalType":"uint64[]","name":"_cliffs","type":"uint64[]"},{"internalType":"uint64[]","name":"_vestings","type":"uint64[]"}],"name":"bulkGrantVestedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokens","type":"uint256"},{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"vesting","type":"uint256"}],"name":"calculateVestedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint64","name":"_start","type":"uint64"},{"internalType":"uint64","name":"_cliff","type":"uint64"},{"internalType":"uint64","name":"_vesting","type":"uint64"}],"name":"grantVestedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"revokeTokenGrant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"spendableBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"tokenGrant","outputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"claimedValue","type":"uint256"},{"internalType":"uint256","name":"vested","type":"uint256"},{"internalType":"uint256","name":"claimableValue","type":"uint256"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"cliff","type":"uint64"},{"internalType":"uint64","name":"vesting","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokenGrants","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint64","name":"time","type":"uint64"}],"name":"transferableTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161131138038061131183398101604081905261002f916100ad565b6100383361005d565b600280546001600160a01b0319166001600160a01b03929092169190911790556100db565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100be578081fd5b81516001600160a01b03811681146100d4578182fd5b9392505050565b611227806100ea6000396000f3fe608060405234801561001057600080fd5b50600436106100ce5760003560e01c80638da5cb5b1161008c578063df3c211b11610066578063df3c211b14610180578063f0af5da814610193578063f2fde38b146101ea578063f86b3561146101fd57600080fd5b80638da5cb5b1461013f578063ccb365b91461015a578063d347c2051461016d57600080fd5b8062e1986d146100d35780630f8f8b83146100e85780632078ff681461010e5780634e71d92d146101175780635b0a38431461012f578063715018a614610137575b600080fd5b6100e66100e1366004610f18565b610210565b005b6100fb6100f6366004610efe565b6103e4565b6040519081526020015b60405180910390f35b6100fb60015481565b61011f6103f6565b6040519015158152602001610105565b6100e66105b8565b6100e6610740565b6000546040516001600160a01b039091168152602001610105565b6100e6610168366004610efe565b610774565b6100fb61017b366004610f75565b61094f565b6100fb61018e3660046110c9565b610a25565b6101a66101a1366004610efe565b610a79565b6040805197885260208801969096529486019390935260608501919091526001600160401b03908116608085015290811660a08401521660c082015260e001610105565b6100e66101f8366004610efe565b610b20565b6100e661020b366004610fa7565b610bbb565b6000546001600160a01b031633146102435760405162461bcd60e51b815260040161023a9061111d565b60405180910390fd5b826001600160401b0316826001600160401b0316101580156102775750816001600160401b0316816001600160401b031610155b61028057600080fd5b6001600160a01b038516600090815260036020526040902054156102de5760405162461bcd60e51b81526020600482015260156024820152746772616e7420616c72656164792065786973742e2160581b604482015260640161023a565b6040805160a081018252858152600060208083018281526001600160401b03808816858701908152878216606087019081528a8316608088019081526001600160a01b038e168752600390955296909420945185559051600180860191909155925160029094018054955192518216600160801b0267ffffffffffffffff60801b19938316600160401b026fffffffffffffffffffffffffffffffff19909716959092169490941794909417169290921790555461039c9085610d99565b6001556040518481526001600160a01b038616907f3b402c9bec8d08cd0e6c1ab9b02f15b3bcba06661fe9ca48a02797566fafad5d9060200160405180910390a25050505050565b60006103f0824261094f565b92915050565b60003381610403826103e4565b9050600081116104555760405162461bcd60e51b815260206004820152601d60248201527f6e6f20636c61696d61626c6520746f6b656e20617661696c61626c652e000000604482015260640161023a565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561049857600080fd5b505afa1580156104ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d091906110b1565b10156104db57600080fd5b60025460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb90604401602060405180830381600087803b15801561052957600080fd5b505af115801561053d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105619190611091565b61056a57600080fd5b6001600160a01b0382166000908152600360205260409020600101546105909082610d99565b6001600160a01b03909216600090815260036020526040902060019081019290925550919050565b6000546001600160a01b031633146105e25760405162461bcd60e51b815260040161023a9061111d565b6002546001600160a01b031663a9059cbb6106056000546001600160a01b031690565b6002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561064857600080fd5b505afa15801561065c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068091906110b1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156106c657600080fd5b505af11580156106da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fe9190611091565b61073e5760405162461bcd60e51b81526020600482015260116024820152707472616e73666572206661696c65642e2160781b604482015260640161023a565b565b6000546001600160a01b0316331461076a5760405162461bcd60e51b815260040161023a9061111d565b61073e6000610dac565b6000546001600160a01b0316331461079e5760405162461bcd60e51b815260040161023a9061111d565b6001600160a01b0381166000908152600360205260409020546107f75760405162461bcd60e51b81526020600482015260116024820152706772616e74206e6f742065786973742e2160781b604482015260640161023a565b6001600160a01b03811660009081526003602052604081206001810154815491929161082291610dfc565b6002549091506001600160a01b031663a9059cbb6108486000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b15801561089057600080fd5b505af11580156108a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c89190611091565b6109085760405162461bcd60e51b81526020600482015260116024820152707472616e73666572206661696c65642e2160781b604482015260640161023a565b6001546109159082610dfc565b60019081556001600160a01b03909316600090815260036020526040812081815593840155505060020180546001600160c01b0319169055565b6001600160a01b0382166000908152600360205260408120541515806109795760009150506103f0565b6001600160a01b0384166000908152600360209081526040808320815160a0810183528154815260018201549381019390935260028101546001600160401b0380821693850193909352600160401b810483166060850152600160801b9004909116608083015291906109ec9086610e08565b6001830154909150600080610a018484610e4b565b9150915081610a1957600096505050505050506103f0565b98975050505050505050565b600082851015610a3757506000610a70565b818510610a45575084610a70565b6000610a6c610a5d88610a588989610dfc565b610e71565b610a678588610dfc565b610e7d565b9150505b95945050505050565b6001600160a01b0381166000908152600360209081526040808320805460018201546002830154845160a0810186528381529586018290526001600160401b03808216958701869052600160401b8204811660608801819052600160801b909204166080870181905292969195919485949092610af69042610e08565b95508515610b0f57610b088688610dfc565b9450610b14565b600094505b50919395979092949650565b6000546001600160a01b03163314610b4a5760405162461bcd60e51b815260040161023a9061111d565b6001600160a01b038116610baf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161023a565b610bb881610dac565b50565b6000546001600160a01b03163314610be55760405162461bcd60e51b815260040161023a9061111d565b8887148015610bf357508885145b8015610bfe57508883145b8015610c0957508881145b610c1257600080fd5b60005b89811015610d8c57610c728b8b83818110610c4057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c559190610efe565b6001600160a01b0316600090815260036020526040902054151590565b15610c7c57610d7a565b610d7a8b8b83818110610c9f57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610cb49190610efe565b8a8a84818110610cd457634e487b7160e01b600052603260045260246000fd5b90506020020135898985818110610cfb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610d109190611103565b888886818110610d3057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610d459190611103565b878787818110610d6557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906100e19190611103565b80610d84816111c0565b915050610c15565b5050505050505050505050565b6000610da58284611152565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610da582846111a9565b6000610da58360000151836001600160401b031685608001516001600160401b031686604001516001600160401b031687606001516001600160401b0316610a25565b60008083831115610e6157506000905080610e6a565b50600190508183035b9250929050565b6000610da5828461118a565b6000610da5828461116a565b80356001600160a01b0381168114610ea057600080fd5b919050565b60008083601f840112610eb6578182fd5b5081356001600160401b03811115610ecc578182fd5b6020830191508360208260051b8501011115610e6a57600080fd5b80356001600160401b0381168114610ea057600080fd5b600060208284031215610f0f578081fd5b610da582610e89565b600080600080600060a08688031215610f2f578081fd5b610f3886610e89565b945060208601359350610f4d60408701610ee7565b9250610f5b60608701610ee7565b9150610f6960808701610ee7565b90509295509295909350565b60008060408385031215610f87578182fd5b610f9083610e89565b9150610f9e60208401610ee7565b90509250929050565b60008060008060008060008060008060a08b8d031215610fc5578485fd5b8a356001600160401b0380821115610fdb578687fd5b610fe78e838f01610ea5565b909c509a5060208d0135915080821115610fff578687fd5b61100b8e838f01610ea5565b909a50985060408d0135915080821115611023578687fd5b61102f8e838f01610ea5565b909850965060608d0135915080821115611047578586fd5b6110538e838f01610ea5565b909650945060808d013591508082111561106b578384fd5b506110788d828e01610ea5565b915080935050809150509295989b9194979a5092959850565b6000602082840312156110a2578081fd5b81518015158114610da5578182fd5b6000602082840312156110c2578081fd5b5051919050565b600080600080600060a086880312156110e0578081fd5b505083359560208501359550604085013594606081013594506080013592509050565b600060208284031215611114578081fd5b610da582610ee7565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611165576111656111db565b500190565b60008261118557634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156111a4576111a46111db565b500290565b6000828210156111bb576111bb6111db565b500390565b60006000198214156111d4576111d46111db565b5060010190565b634e487b7160e01b600052601160045260246000fdfea264697066735822122013b3a3e714451b0f49c4f33a226ad070bad24ceba00fd5a603ec86d79543531564736f6c6343000804003300000000000000000000000066f73d0fd4161cfad4302dc145ff994375c13475
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ce5760003560e01c80638da5cb5b1161008c578063df3c211b11610066578063df3c211b14610180578063f0af5da814610193578063f2fde38b146101ea578063f86b3561146101fd57600080fd5b80638da5cb5b1461013f578063ccb365b91461015a578063d347c2051461016d57600080fd5b8062e1986d146100d35780630f8f8b83146100e85780632078ff681461010e5780634e71d92d146101175780635b0a38431461012f578063715018a614610137575b600080fd5b6100e66100e1366004610f18565b610210565b005b6100fb6100f6366004610efe565b6103e4565b6040519081526020015b60405180910390f35b6100fb60015481565b61011f6103f6565b6040519015158152602001610105565b6100e66105b8565b6100e6610740565b6000546040516001600160a01b039091168152602001610105565b6100e6610168366004610efe565b610774565b6100fb61017b366004610f75565b61094f565b6100fb61018e3660046110c9565b610a25565b6101a66101a1366004610efe565b610a79565b6040805197885260208801969096529486019390935260608501919091526001600160401b03908116608085015290811660a08401521660c082015260e001610105565b6100e66101f8366004610efe565b610b20565b6100e661020b366004610fa7565b610bbb565b6000546001600160a01b031633146102435760405162461bcd60e51b815260040161023a9061111d565b60405180910390fd5b826001600160401b0316826001600160401b0316101580156102775750816001600160401b0316816001600160401b031610155b61028057600080fd5b6001600160a01b038516600090815260036020526040902054156102de5760405162461bcd60e51b81526020600482015260156024820152746772616e7420616c72656164792065786973742e2160581b604482015260640161023a565b6040805160a081018252858152600060208083018281526001600160401b03808816858701908152878216606087019081528a8316608088019081526001600160a01b038e168752600390955296909420945185559051600180860191909155925160029094018054955192518216600160801b0267ffffffffffffffff60801b19938316600160401b026fffffffffffffffffffffffffffffffff19909716959092169490941794909417169290921790555461039c9085610d99565b6001556040518481526001600160a01b038616907f3b402c9bec8d08cd0e6c1ab9b02f15b3bcba06661fe9ca48a02797566fafad5d9060200160405180910390a25050505050565b60006103f0824261094f565b92915050565b60003381610403826103e4565b9050600081116104555760405162461bcd60e51b815260206004820152601d60248201527f6e6f20636c61696d61626c6520746f6b656e20617661696c61626c652e000000604482015260640161023a565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561049857600080fd5b505afa1580156104ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d091906110b1565b10156104db57600080fd5b60025460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb90604401602060405180830381600087803b15801561052957600080fd5b505af115801561053d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105619190611091565b61056a57600080fd5b6001600160a01b0382166000908152600360205260409020600101546105909082610d99565b6001600160a01b03909216600090815260036020526040902060019081019290925550919050565b6000546001600160a01b031633146105e25760405162461bcd60e51b815260040161023a9061111d565b6002546001600160a01b031663a9059cbb6106056000546001600160a01b031690565b6002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561064857600080fd5b505afa15801561065c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068091906110b1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156106c657600080fd5b505af11580156106da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fe9190611091565b61073e5760405162461bcd60e51b81526020600482015260116024820152707472616e73666572206661696c65642e2160781b604482015260640161023a565b565b6000546001600160a01b0316331461076a5760405162461bcd60e51b815260040161023a9061111d565b61073e6000610dac565b6000546001600160a01b0316331461079e5760405162461bcd60e51b815260040161023a9061111d565b6001600160a01b0381166000908152600360205260409020546107f75760405162461bcd60e51b81526020600482015260116024820152706772616e74206e6f742065786973742e2160781b604482015260640161023a565b6001600160a01b03811660009081526003602052604081206001810154815491929161082291610dfc565b6002549091506001600160a01b031663a9059cbb6108486000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b15801561089057600080fd5b505af11580156108a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c89190611091565b6109085760405162461bcd60e51b81526020600482015260116024820152707472616e73666572206661696c65642e2160781b604482015260640161023a565b6001546109159082610dfc565b60019081556001600160a01b03909316600090815260036020526040812081815593840155505060020180546001600160c01b0319169055565b6001600160a01b0382166000908152600360205260408120541515806109795760009150506103f0565b6001600160a01b0384166000908152600360209081526040808320815160a0810183528154815260018201549381019390935260028101546001600160401b0380821693850193909352600160401b810483166060850152600160801b9004909116608083015291906109ec9086610e08565b6001830154909150600080610a018484610e4b565b9150915081610a1957600096505050505050506103f0565b98975050505050505050565b600082851015610a3757506000610a70565b818510610a45575084610a70565b6000610a6c610a5d88610a588989610dfc565b610e71565b610a678588610dfc565b610e7d565b9150505b95945050505050565b6001600160a01b0381166000908152600360209081526040808320805460018201546002830154845160a0810186528381529586018290526001600160401b03808216958701869052600160401b8204811660608801819052600160801b909204166080870181905292969195919485949092610af69042610e08565b95508515610b0f57610b088688610dfc565b9450610b14565b600094505b50919395979092949650565b6000546001600160a01b03163314610b4a5760405162461bcd60e51b815260040161023a9061111d565b6001600160a01b038116610baf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161023a565b610bb881610dac565b50565b6000546001600160a01b03163314610be55760405162461bcd60e51b815260040161023a9061111d565b8887148015610bf357508885145b8015610bfe57508883145b8015610c0957508881145b610c1257600080fd5b60005b89811015610d8c57610c728b8b83818110610c4057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c559190610efe565b6001600160a01b0316600090815260036020526040902054151590565b15610c7c57610d7a565b610d7a8b8b83818110610c9f57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610cb49190610efe565b8a8a84818110610cd457634e487b7160e01b600052603260045260246000fd5b90506020020135898985818110610cfb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610d109190611103565b888886818110610d3057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610d459190611103565b878787818110610d6557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906100e19190611103565b80610d84816111c0565b915050610c15565b5050505050505050505050565b6000610da58284611152565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610da582846111a9565b6000610da58360000151836001600160401b031685608001516001600160401b031686604001516001600160401b031687606001516001600160401b0316610a25565b60008083831115610e6157506000905080610e6a565b50600190508183035b9250929050565b6000610da5828461118a565b6000610da5828461116a565b80356001600160a01b0381168114610ea057600080fd5b919050565b60008083601f840112610eb6578182fd5b5081356001600160401b03811115610ecc578182fd5b6020830191508360208260051b8501011115610e6a57600080fd5b80356001600160401b0381168114610ea057600080fd5b600060208284031215610f0f578081fd5b610da582610e89565b600080600080600060a08688031215610f2f578081fd5b610f3886610e89565b945060208601359350610f4d60408701610ee7565b9250610f5b60608701610ee7565b9150610f6960808701610ee7565b90509295509295909350565b60008060408385031215610f87578182fd5b610f9083610e89565b9150610f9e60208401610ee7565b90509250929050565b60008060008060008060008060008060a08b8d031215610fc5578485fd5b8a356001600160401b0380821115610fdb578687fd5b610fe78e838f01610ea5565b909c509a5060208d0135915080821115610fff578687fd5b61100b8e838f01610ea5565b909a50985060408d0135915080821115611023578687fd5b61102f8e838f01610ea5565b909850965060608d0135915080821115611047578586fd5b6110538e838f01610ea5565b909650945060808d013591508082111561106b578384fd5b506110788d828e01610ea5565b915080935050809150509295989b9194979a5092959850565b6000602082840312156110a2578081fd5b81518015158114610da5578182fd5b6000602082840312156110c2578081fd5b5051919050565b600080600080600060a086880312156110e0578081fd5b505083359560208501359550604085013594606081013594506080013592509050565b600060208284031215611114578081fd5b610da582610ee7565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611165576111656111db565b500190565b60008261118557634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156111a4576111a46111db565b500290565b6000828210156111bb576111bb6111db565b500390565b60006000198214156111d4576111d46111db565b5060010190565b634e487b7160e01b600052601160045260246000fdfea264697066735822122013b3a3e714451b0f49c4f33a226ad070bad24ceba00fd5a603ec86d79543531564736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000066f73d0fd4161cfad4302dc145ff994375c13475
-----Decoded View---------------
Arg [0] : pToken (address): 0x66F73D0fD4161cfad4302DC145Ff994375c13475
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000066f73d0fd4161cfad4302dc145ff994375c13475
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.000147 | 1,336,611.8289 | $196.51 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.