| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Cross-Chain Transactions
Loading...
Loading
Contract Name:
PrivateTgeVester
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/proxy/utils/Initializable.sol';
import '../interfaces/IPlutusPrivateTGE.sol';
contract PrivateTgeVester is Ownable, Pausable, Initializable {
uint112 public constant ALLOCATION = 4_200_000 * 1e18;
uint32 public constant CLIFF = 12 weeks;
uint32 public constant VESTING_PERIOD = 12 weeks;
uint112 public constant PRIVATE_TGE_TOTAL_RAISE = 284524761916000171659;
IPlutusPrivateTGE public immutable privateTge;
IERC20 public immutable pls;
struct ClaimDetails {
uint32 lastClaimedTimestamp;
uint112 allocationLeft;
uint112 claimedAmt;
}
uint32 public claimableAtTimestamp = 2**32 - 1;
mapping(address => ClaimDetails) public claimDetails;
constructor(
IERC20 _pls,
address _governance,
address _privateTge
) {
pls = _pls;
privateTge = IPlutusPrivateTGE(_privateTge);
_pause();
transferOwnership(_governance);
}
function claimAllocation() external whenNotPaused {
require(block.timestamp > claimableAtTimestamp, 'Cliff in effect');
ClaimDetails storage _details = claimDetails[msg.sender];
if (_details.lastClaimedTimestamp == 0) {
// first time, calculate user allocation
uint112 allocation = calculateShare(msg.sender, ALLOCATION);
require(allocation > 0, 'No allocation');
_details.lastClaimedTimestamp = claimableAtTimestamp;
_details.allocationLeft = allocation;
} else {
require(block.timestamp > _details.lastClaimedTimestamp, 'Claim failed');
require(_details.allocationLeft > 0, 'Fully claimed');
}
uint112 transferAmt;
uint112 claimAmt = getClaimable(
uint32(block.timestamp) - _details.lastClaimedTimestamp,
calculateShare(msg.sender, ALLOCATION)
);
_details.lastClaimedTimestamp = uint32(block.timestamp);
if (claimAmt > _details.allocationLeft) {
transferAmt = _details.allocationLeft;
_details.allocationLeft = 0;
} else {
transferAmt = claimAmt;
_details.allocationLeft -= claimAmt;
}
_details.claimedAmt += transferAmt;
pls.transfer(msg.sender, transferAmt);
emit TokenClaim(msg.sender, transferAmt);
}
/** OWNER FUNCTIONS */
function startVesting() external onlyOwner initializer {
claimableAtTimestamp = uint32(block.timestamp) + CLIFF;
_unpause();
emit VestingStart(block.timestamp);
}
/// @dev retrieve stuck funds
function retrieve(IERC20 _token) external onlyOwner {
require(_token != pls, 'token = underlying');
if (address(this).balance > 0) {
payable(owner()).transfer(address(this).balance);
}
_token.transfer(owner(), _token.balanceOf(address(this)));
}
/** VIEWS */
/// @dev Calculate a _user's share of _quantity
function calculateShare(address _user, uint256 _quantity) public view returns (uint112) {
return uint112((privateTge.deposit(_user) * _quantity) / PRIVATE_TGE_TOTAL_RAISE);
}
/** PURE */
/// @dev Calculate claimable _shares based on vesting duration
function getClaimable(uint32 _durationSinceLastClaim, uint112 _share) public pure returns (uint112) {
return (_durationSinceLastClaim * _share) / VESTING_PERIOD;
}
event TokenClaim(address indexed recipient, uint256 amt);
event VestingStart(uint256 timestamp);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev 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 {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.0;
import "../../utils/Address.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* 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 !Address.isContract(address(this));
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
interface IPlutusPrivateTGE {
function deposit(address) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}{
"optimizer": {
"enabled": true,
"runs": 1000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_pls","type":"address"},{"internalType":"address","name":"_governance","type":"address"},{"internalType":"address","name":"_privateTge","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"}],"name":"TokenClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"VestingStart","type":"event"},{"inputs":[],"name":"ALLOCATION","outputs":[{"internalType":"uint112","name":"","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CLIFF","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRIVATE_TGE_TOTAL_RAISE","outputs":[{"internalType":"uint112","name":"","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VESTING_PERIOD","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"calculateShare","outputs":[{"internalType":"uint112","name":"","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimDetails","outputs":[{"internalType":"uint32","name":"lastClaimedTimestamp","type":"uint32"},{"internalType":"uint112","name":"allocationLeft","type":"uint112"},{"internalType":"uint112","name":"claimedAmt","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimableAtTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_durationSinceLastClaim","type":"uint32"},{"internalType":"uint112","name":"_share","type":"uint112"}],"name":"getClaimable","outputs":[{"internalType":"uint112","name":"","type":"uint112"}],"stateMutability":"pure","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":[],"name":"pls","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateTge","outputs":[{"internalType":"contract IPlutusPrivateTGE","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"retrieve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60c06040526000805463ffffffff60b81b191663ffffffff60b81b1790553480156200002a57600080fd5b50604051620014cf380380620014cf8339810160408190526200004d9162000280565b620000583362000096565b6000805460ff60a01b191690556001600160a01b0380841660a052811660805262000082620000e6565b6200008d8262000199565b505050620002d4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620000fa600054600160a01b900460ff1690565b15620001405760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064015b60405180910390fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200017c3390565b6040516001600160a01b03909116815260200160405180910390a1565b6000546001600160a01b03163314620001f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000137565b6001600160a01b0381166200025c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000137565b620002678162000096565b50565b6001600160a01b03811681146200026757600080fd5b6000806000606084860312156200029657600080fd5b8351620002a3816200026a565b6020850151909350620002b6816200026a565b6040850151909250620002c9816200026a565b809150509250925092565b60805160a0516111c06200030f6000396000818161015e0152818161036e0152610a8801526000818161019d015261062901526111c06000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c8063889646ea116100b2578063c677fcb911610081578063deb36e3211610066578063deb36e32146102df578063e2afc30b146102e7578063f2fde38b146102fa57600080fd5b8063c677fcb914610259578063d2d1fb25146102d757600080fd5b8063889646ea146102235780638ca83f13146102355780638da5cb5b14610248578063b87592f21461012057600080fd5b806341fe481a116100ee57806341fe481a146101bf5780635c975abb146101e75780636d35247214610204578063715018a61461021b57600080fd5b80630197d972146101205780630a79309b14610144578063223e5a9d1461015957806324d604a314610198575b600080fd5b61012a626ebe0081565b60405163ffffffff90911681526020015b60405180910390f35b610157610152366004610f75565b61030d565b005b6101807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161013b565b6101807f000000000000000000000000000000000000000000000000000000000000000081565b6101cf680f6c93037c5dc7f68b81565b6040516001600160701b03909116815260200161013b565b600054600160a01b900460ff16604051901515815260200161013b565b60005461012a90600160b81b900463ffffffff1681565b61015761057b565b6101cf6a03796274caf64c7100000081565b6101cf610243366004610f92565b6105e1565b6000546001600160a01b0316610180565b6102ab610267366004610f75565b60016020526000908152604090205463ffffffff8116906001600160701b036401000000008204811691720100000000000000000000000000000000000090041683565b6040805163ffffffff90941684526001600160701b03928316602085015291169082015260600161013b565b6101576106c0565b610157610b51565b6101cf6102f5366004610fbe565b610d47565b610157610308366004610f75565b610d67565b6000546001600160a01b0316331461036c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614156103ee5760405162461bcd60e51b815260206004820152601260248201527f746f6b656e203d20756e6465726c79696e6700000000000000000000000000006044820152606401610363565b471561043057600080546040516001600160a01b03909116914780156108fc02929091818181858888f1935050505015801561042e573d6000803e3d6000fd5b505b806001600160a01b031663a9059cbb6104516000546001600160a01b031690565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156104a957600080fd5b505afa1580156104bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e1919061100c565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561053f57600080fd5b505af1158015610553573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105779190611025565b5050565b6000546001600160a01b031633146105d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610363565b6105df6000610e42565b565b6040517ff340fa010000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091680f6c93037c5dc7f68b9184917f00000000000000000000000000000000000000000000000000000000000000009091169063f340fa019060240160206040518083038186803b15801561066d57600080fd5b505afa158015610681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a5919061100c565b6106af919061105d565b6106b99190611092565b9392505050565b600054600160a01b900460ff161561071a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610363565b600054600160b81b900463ffffffff1642116107785760405162461bcd60e51b815260206004820152600f60248201527f436c69666620696e2065666665637400000000000000000000000000000000006044820152606401610363565b336000908152600160205260409020805463ffffffff1661085a5760006107aa336a03796274caf64c710000006105e1565b90506000816001600160701b0316116108055760405162461bcd60e51b815260206004820152600d60248201527f4e6f20616c6c6f636174696f6e000000000000000000000000000000000000006044820152606401610363565b60005482546001600160701b03909216640100000000027fffffffffffffffffffffffffffff00000000000000000000000000000000000090921663ffffffff600160b81b909204919091161717815561090f565b805463ffffffff1642116108b05760405162461bcd60e51b815260206004820152600c60248201527f436c61696d206661696c656400000000000000000000000000000000000000006044820152606401610363565b805464010000000090046001600160701b031661090f5760405162461bcd60e51b815260206004820152600d60248201527f46756c6c7920636c61696d6564000000000000000000000000000000000000006044820152606401610363565b8054600090819061093f9061092a9063ffffffff16426110a6565b6102f5336a03796274caf64c710000006105e1565b835463ffffffff19164263ffffffff161780855590915064010000000090046001600160701b0390811690821611156109b15782547fffffffffffffffffffffffffffff0000000000000000000000000000ffffffff8116845564010000000090046001600160701b031691506109ff565b809150808360000160048282829054906101000a90046001600160701b03166109da91906110cb565b92506101000a8154816001600160701b0302191690836001600160701b031602179055505b825482908490601290610a32908490720100000000000000000000000000000000000090046001600160701b03166110eb565b82546101009290920a6001600160701b038181021990931691831602179091556040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015290841660248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316915063a9059cbb90604401602060405180830381600087803b158015610ad557600080fd5b505af1158015610ae9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0d9190611025565b506040516001600160701b038316815233907ffcd6a0cf5a625280133c034863698c011fa0aefbee7f3be397f86fabd98918529060200160405180910390a2505050565b6000546001600160a01b03163314610bab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610363565b600054600160b01b900460ff16610be1576000547501000000000000000000000000000000000000000000900460ff1615610be5565b303b155b610c575760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610363565b600054600160b01b900460ff16158015610cad57600080547fffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffff167601010000000000000000000000000000000000000000001790555b610cba626ebe0042611116565b600060176101000a81548163ffffffff021916908363ffffffff160217905550610ce2610eaa565b6040514281527ff15492adf63990706d773741819b6aa3c9ee0ac89eb9f816c15e12caac3383169060200160405180910390a18015610d4457600080547fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff1690555b50565b6000626ebe00610d5d8363ffffffff8616611135565b6106b99190611164565b6000546001600160a01b03163314610dc15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610363565b6001600160a01b038116610e3d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610363565b610d44815b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff16610f035760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610363565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690556040805133815290517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9181900360200190a1565b6001600160a01b0381168114610d4457600080fd5b600060208284031215610f8757600080fd5b81356106b981610f60565b60008060408385031215610fa557600080fd5b8235610fb081610f60565b946020939093013593505050565b60008060408385031215610fd157600080fd5b823563ffffffff81168114610fe557600080fd5b915060208301356001600160701b038116811461100157600080fd5b809150509250929050565b60006020828403121561101e57600080fd5b5051919050565b60006020828403121561103757600080fd5b815180151581146106b957600080fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561107757611077611047565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826110a1576110a161107c565b500490565b600063ffffffff838116908316818110156110c3576110c3611047565b039392505050565b60006001600160701b03838116908316818110156110c3576110c3611047565b60006001600160701b0380831681851680830382111561110d5761110d611047565b01949350505050565b600063ffffffff80831681851680830382111561110d5761110d611047565b60006001600160701b038083168185168183048111821515161561115b5761115b611047565b02949350505050565b60006001600160701b038084168061117e5761117e61107c565b9216919091049291505056fea2646970667358221220db53835385dd9741666a25ac82da9ce69dc3ff7c3ccc5209dc176e928b684c6764736f6c6343000809003300000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f000000000000000000000000a5c1c5a67ba16430547fea9d608ef81119be187600000000000000000000000035cd01aaa22ccae7839dfabe8c6db2f8e5a7b2e0
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061011b5760003560e01c8063889646ea116100b2578063c677fcb911610081578063deb36e3211610066578063deb36e32146102df578063e2afc30b146102e7578063f2fde38b146102fa57600080fd5b8063c677fcb914610259578063d2d1fb25146102d757600080fd5b8063889646ea146102235780638ca83f13146102355780638da5cb5b14610248578063b87592f21461012057600080fd5b806341fe481a116100ee57806341fe481a146101bf5780635c975abb146101e75780636d35247214610204578063715018a61461021b57600080fd5b80630197d972146101205780630a79309b14610144578063223e5a9d1461015957806324d604a314610198575b600080fd5b61012a626ebe0081565b60405163ffffffff90911681526020015b60405180910390f35b610157610152366004610f75565b61030d565b005b6101807f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f81565b6040516001600160a01b03909116815260200161013b565b6101807f00000000000000000000000035cd01aaa22ccae7839dfabe8c6db2f8e5a7b2e081565b6101cf680f6c93037c5dc7f68b81565b6040516001600160701b03909116815260200161013b565b600054600160a01b900460ff16604051901515815260200161013b565b60005461012a90600160b81b900463ffffffff1681565b61015761057b565b6101cf6a03796274caf64c7100000081565b6101cf610243366004610f92565b6105e1565b6000546001600160a01b0316610180565b6102ab610267366004610f75565b60016020526000908152604090205463ffffffff8116906001600160701b036401000000008204811691720100000000000000000000000000000000000090041683565b6040805163ffffffff90941684526001600160701b03928316602085015291169082015260600161013b565b6101576106c0565b610157610b51565b6101cf6102f5366004610fbe565b610d47565b610157610308366004610f75565b610d67565b6000546001600160a01b0316331461036c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b7f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f6001600160a01b0316816001600160a01b031614156103ee5760405162461bcd60e51b815260206004820152601260248201527f746f6b656e203d20756e6465726c79696e6700000000000000000000000000006044820152606401610363565b471561043057600080546040516001600160a01b03909116914780156108fc02929091818181858888f1935050505015801561042e573d6000803e3d6000fd5b505b806001600160a01b031663a9059cbb6104516000546001600160a01b031690565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156104a957600080fd5b505afa1580156104bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e1919061100c565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561053f57600080fd5b505af1158015610553573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105779190611025565b5050565b6000546001600160a01b031633146105d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610363565b6105df6000610e42565b565b6040517ff340fa010000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091680f6c93037c5dc7f68b9184917f00000000000000000000000035cd01aaa22ccae7839dfabe8c6db2f8e5a7b2e09091169063f340fa019060240160206040518083038186803b15801561066d57600080fd5b505afa158015610681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a5919061100c565b6106af919061105d565b6106b99190611092565b9392505050565b600054600160a01b900460ff161561071a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610363565b600054600160b81b900463ffffffff1642116107785760405162461bcd60e51b815260206004820152600f60248201527f436c69666620696e2065666665637400000000000000000000000000000000006044820152606401610363565b336000908152600160205260409020805463ffffffff1661085a5760006107aa336a03796274caf64c710000006105e1565b90506000816001600160701b0316116108055760405162461bcd60e51b815260206004820152600d60248201527f4e6f20616c6c6f636174696f6e000000000000000000000000000000000000006044820152606401610363565b60005482546001600160701b03909216640100000000027fffffffffffffffffffffffffffff00000000000000000000000000000000000090921663ffffffff600160b81b909204919091161717815561090f565b805463ffffffff1642116108b05760405162461bcd60e51b815260206004820152600c60248201527f436c61696d206661696c656400000000000000000000000000000000000000006044820152606401610363565b805464010000000090046001600160701b031661090f5760405162461bcd60e51b815260206004820152600d60248201527f46756c6c7920636c61696d6564000000000000000000000000000000000000006044820152606401610363565b8054600090819061093f9061092a9063ffffffff16426110a6565b6102f5336a03796274caf64c710000006105e1565b835463ffffffff19164263ffffffff161780855590915064010000000090046001600160701b0390811690821611156109b15782547fffffffffffffffffffffffffffff0000000000000000000000000000ffffffff8116845564010000000090046001600160701b031691506109ff565b809150808360000160048282829054906101000a90046001600160701b03166109da91906110cb565b92506101000a8154816001600160701b0302191690836001600160701b031602179055505b825482908490601290610a32908490720100000000000000000000000000000000000090046001600160701b03166110eb565b82546101009290920a6001600160701b038181021990931691831602179091556040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015290841660248201527f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f6001600160a01b0316915063a9059cbb90604401602060405180830381600087803b158015610ad557600080fd5b505af1158015610ae9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0d9190611025565b506040516001600160701b038316815233907ffcd6a0cf5a625280133c034863698c011fa0aefbee7f3be397f86fabd98918529060200160405180910390a2505050565b6000546001600160a01b03163314610bab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610363565b600054600160b01b900460ff16610be1576000547501000000000000000000000000000000000000000000900460ff1615610be5565b303b155b610c575760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610363565b600054600160b01b900460ff16158015610cad57600080547fffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffff167601010000000000000000000000000000000000000000001790555b610cba626ebe0042611116565b600060176101000a81548163ffffffff021916908363ffffffff160217905550610ce2610eaa565b6040514281527ff15492adf63990706d773741819b6aa3c9ee0ac89eb9f816c15e12caac3383169060200160405180910390a18015610d4457600080547fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff1690555b50565b6000626ebe00610d5d8363ffffffff8616611135565b6106b99190611164565b6000546001600160a01b03163314610dc15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610363565b6001600160a01b038116610e3d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610363565b610d44815b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff16610f035760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610363565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690556040805133815290517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9181900360200190a1565b6001600160a01b0381168114610d4457600080fd5b600060208284031215610f8757600080fd5b81356106b981610f60565b60008060408385031215610fa557600080fd5b8235610fb081610f60565b946020939093013593505050565b60008060408385031215610fd157600080fd5b823563ffffffff81168114610fe557600080fd5b915060208301356001600160701b038116811461100157600080fd5b809150509250929050565b60006020828403121561101e57600080fd5b5051919050565b60006020828403121561103757600080fd5b815180151581146106b957600080fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561107757611077611047565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826110a1576110a161107c565b500490565b600063ffffffff838116908316818110156110c3576110c3611047565b039392505050565b60006001600160701b03838116908316818110156110c3576110c3611047565b60006001600160701b0380831681851680830382111561110d5761110d611047565b01949350505050565b600063ffffffff80831681851680830382111561110d5761110d611047565b60006001600160701b038083168185168183048111821515161561115b5761115b611047565b02949350505050565b60006001600160701b038084168061117e5761117e61107c565b9216919091049291505056fea2646970667358221220db53835385dd9741666a25ac82da9ce69dc3ff7c3ccc5209dc176e928b684c6764736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f000000000000000000000000a5c1c5a67ba16430547fea9d608ef81119be187600000000000000000000000035cd01aaa22ccae7839dfabe8c6db2f8e5a7b2e0
-----Decoded View---------------
Arg [0] : _pls (address): 0x51318B7D00db7ACc4026C88c3952B66278B6A67F
Arg [1] : _governance (address): 0xa5c1c5a67Ba16430547FEA9D608Ef81119bE1876
Arg [2] : _privateTge (address): 0x35cD01AaA22Ccae7839dFabE8C6Db2f8e5A7B2E0
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f
Arg [1] : 000000000000000000000000a5c1c5a67ba16430547fea9d608ef81119be1876
Arg [2] : 00000000000000000000000035cd01aaa22ccae7839dfabe8c6db2f8e5a7b2e0
Loading...
Loading
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.