| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Cross-Chain Transactions
Loading...
Loading
Contract Name:
TeamVester
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/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/proxy/utils/Initializable.sol';
contract TeamVester is Ownable {
uint112 public constant ALLOCATION = 12_000_000 * 1e18;
uint32 public constant CLIFF = 12 weeks;
uint32 public constant VESTING_PERIOD = 12 weeks;
IERC20 public immutable pls;
struct ClaimDetails {
uint32 lastClaimedTimestamp;
uint112 allocationLeft;
uint112 claimedAmt;
}
struct AllocationDetails {
bool paused;
uint32 claimableAtTimestamp;
uint32 vestingPeriod;
uint112 allocation;
}
mapping(address => ClaimDetails) public claimDetails;
mapping(address => AllocationDetails) public allocationDetails;
constructor(IERC20 _pls, address _governance) {
pls = _pls;
transferOwnership(_governance);
}
function claimAllocation() external {
AllocationDetails memory allocDetails = allocationDetails[msg.sender];
require(block.timestamp > allocDetails.claimableAtTimestamp, 'Cliff in effect');
require(allocDetails.paused == false, 'Vesting paused');
ClaimDetails storage _details = claimDetails[msg.sender];
if (_details.lastClaimedTimestamp == 0) {
// first time, calculate user allocation
uint112 allocation = allocationDetails[msg.sender].allocation;
require(allocation > 0, 'No allocation');
_details.lastClaimedTimestamp = allocDetails.claimableAtTimestamp;
_details.allocationLeft = allocation;
} else {
require(block.timestamp > _details.lastClaimedTimestamp, 'Claim failed');
require(_details.allocationLeft > 0, 'Fully claimed');
}
uint112 transferAmt;
uint112 claimAmt = getClaimable(
msg.sender,
uint32(block.timestamp) - _details.lastClaimedTimestamp,
allocationDetails[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 addTeamMember(
address _recipient,
uint112 _alloc,
uint32 _cliff,
uint32 _vestingPeriod
) external onlyOwner {
allocationDetails[_recipient] = AllocationDetails({
allocation: _alloc,
paused: false,
claimableAtTimestamp: uint32(block.timestamp) + _cliff,
vestingPeriod: _vestingPeriod
});
}
function pauseVesting(address _recipient, bool _isPaused) external onlyOwner {
allocationDetails[_recipient].paused = _isPaused;
}
/// @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 claimable _shares based on vesting duration
function getClaimable(
address _recipient,
uint32 _durationSinceLastClaim,
uint112 _share
) public view returns (uint112) {
return (_durationSinceLastClaim * _share) / allocationDetails[_recipient].vestingPeriod;
}
event TokenClaim(address indexed recipient, uint256 amt);
event VestingStart(uint256 timestamp);
event AddTeamMember(address indexed recipient, uint256 allocation, uint256 claimableAt, uint256 vestingDuration);
}// 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 (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
// 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"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocation","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimableAt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"vestingDuration","type":"uint256"}],"name":"AddTeamMember","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"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":"VESTING_PERIOD","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint112","name":"_alloc","type":"uint112"},{"internalType":"uint32","name":"_cliff","type":"uint32"},{"internalType":"uint32","name":"_vestingPeriod","type":"uint32"}],"name":"addTeamMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allocationDetails","outputs":[{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"uint32","name":"claimableAtTimestamp","type":"uint32"},{"internalType":"uint32","name":"vestingPeriod","type":"uint32"},{"internalType":"uint112","name":"allocation","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":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint32","name":"_durationSinceLastClaim","type":"uint32"},{"internalType":"uint112","name":"_share","type":"uint112"}],"name":"getClaimable","outputs":[{"internalType":"uint112","name":"","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"bool","name":"_isPaused","type":"bool"}],"name":"pauseVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pls","outputs":[{"internalType":"contract IERC20","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040523480156200001157600080fd5b50604051620013053803806200130583398101604081905262000034916200019a565b6200003f336200005f565b6001600160a01b0382166080526200005781620000af565b5050620001d9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031633146200010f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038116620001765760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000106565b62000181816200005f565b50565b6001600160a01b03811681146200018157600080fd5b60008060408385031215620001ae57600080fd5b8251620001bb8162000184565b6020840151909250620001ce8162000184565b809150509250929050565b60805161110262000203600039600081816101580152818161036b0152610c2f01526111026000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063889646ea1161008c578063b87592f211610066578063b87592f2146100ef578063c677fcb914610271578063d2d1fb25146102ef578063f2fde38b146102f757600080fd5b8063889646ea146101c05780638da5cb5b146101d2578063a0663e43146101e357600080fd5b8063223e5a9d116100c8578063223e5a9d14610153578063536cdc1a146101925780635b9aa839146101a5578063715018a6146101b857600080fd5b80630197d972146100ef5780630a79309b1461011357806321d105b214610128575b600080fd5b6100f9626ebe0081565b60405163ffffffff90911681526020015b60405180910390f35b610126610121366004610e58565b61030a565b005b61013b610136366004610eac565b610578565b6040516001600160701b03909116815260200161010a565b61017a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161010a565b6101266101a0366004610ef1565b6105c2565b6101266101b3366004610f55565b610720565b6101266107a5565b61013b6a09ed194db19b238c00000081565b6000546001600160a01b031661017a565b6102396101f1366004610e58565b60026020526000908152604090205460ff81169063ffffffff6101008204811691650100000000008104909116906001600160701b0369010000000000000000009091041684565b60405161010a9493929190931515845263ffffffff9283166020850152911660408301526001600160701b0316606082015260800190565b6102c361027f366004610e58565b60016020526000908152604090205463ffffffff8116906001600160701b036401000000008204811691720100000000000000000000000000000000000090041683565b6040805163ffffffff90941684526001600160701b03928316602085015291169082015260600161010a565b61012661080b565b610126610305366004610e58565b610cf9565b6000546001600160a01b031633146103695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614156103eb5760405162461bcd60e51b815260206004820152601260248201527f746f6b656e203d20756e6465726c79696e6700000000000000000000000000006044820152606401610360565b471561042d57600080546040516001600160a01b03909116914780156108fc02929091818181858888f1935050505015801561042b573d6000803e3d6000fd5b505b806001600160a01b031663a9059cbb61044e6000546001600160a01b031690565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156104a657600080fd5b505afa1580156104ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104de9190610f8e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561053c57600080fd5b505af1158015610550573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105749190610fa7565b5050565b6001600160a01b03831660009081526002602052604081205463ffffffff650100000000009091048116906105b09084908616610fda565b6105ba9190611009565b949350505050565b6000546001600160a01b0316331461061c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b60408051608081019091526000815260208101610639844261103d565b63ffffffff90811682529283166020808301919091526001600160701b039586166040928301526001600160a01b039096166000908152600287528190208251815497840151928401516060909401519096166901000000000000000000027fffffffffffffffffff0000000000000000000000000000ffffffffffffffffff9385166501000000000002939093167fffffffffffffffffff000000000000000000000000000000000000ffffffffff929094166101000264ffffffff00199615159690961664ffffffffff19909716969096179490941793909316179190911790915550565b6000546001600160a01b0316331461077a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146107ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b6108096000610ddb565b565b336000908152600260209081526040918290208251608081018452905460ff811615158252610100810463ffffffff908116938301849052650100000000008204169382019390935269010000000000000000009092046001600160701b0316606083015242116108be5760405162461bcd60e51b815260206004820152600f60248201527f436c69666620696e2065666665637400000000000000000000000000000000006044820152606401610360565b80511561090d5760405162461bcd60e51b815260206004820152600e60248201527f56657374696e67207061757365640000000000000000000000000000000000006044820152606401610360565b336000908152600160205260409020805463ffffffff166109e95733600090815260026020526040902054690100000000000000000090046001600160701b03168061099b5760405162461bcd60e51b815260206004820152600d60248201527f4e6f20616c6c6f636174696f6e000000000000000000000000000000000000006044820152606401610360565b602083015182546001600160701b03909216640100000000027fffffffffffffffffffffffffffff00000000000000000000000000000000000090921663ffffffff90911617178155610a9e565b805463ffffffff164211610a3f5760405162461bcd60e51b815260206004820152600c60248201527f436c61696d206661696c656400000000000000000000000000000000000000006044820152606401610360565b805464010000000090046001600160701b0316610a9e5760405162461bcd60e51b815260206004820152600d60248201527f46756c6c7920636c61696d6564000000000000000000000000000000000000006044820152606401610360565b80546000908190610ae6903390610abb9063ffffffff1642611065565b33600090815260026020526040902054690100000000000000000090046001600160701b0316610578565b835463ffffffff19164263ffffffff161780855590915064010000000090046001600160701b039081169082161115610b585782547fffffffffffffffffffffffffffff0000000000000000000000000000ffffffff8116845564010000000090046001600160701b03169150610ba6565b809150808360000160048282829054906101000a90046001600160701b0316610b81919061108a565b92506101000a8154816001600160701b0302191690836001600160701b031602179055505b825482908490601290610bd9908490720100000000000000000000000000000000000090046001600160701b03166110aa565b82546101009290920a6001600160701b038181021990931691831602179091556040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015290841660248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316915063a9059cbb90604401602060405180830381600087803b158015610c7c57600080fd5b505af1158015610c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb49190610fa7565b506040516001600160701b038316815233907ffcd6a0cf5a625280133c034863698c011fa0aefbee7f3be397f86fabd98918529060200160405180910390a250505050565b6000546001600160a01b03163314610d535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b6001600160a01b038116610dcf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610360565b610dd881610ddb565b50565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114610dd857600080fd5b600060208284031215610e6a57600080fd5b8135610e7581610e43565b9392505050565b803563ffffffff81168114610e9057600080fd5b919050565b80356001600160701b0381168114610e9057600080fd5b600080600060608486031215610ec157600080fd5b8335610ecc81610e43565b9250610eda60208501610e7c565b9150610ee860408501610e95565b90509250925092565b60008060008060808587031215610f0757600080fd5b8435610f1281610e43565b9350610f2060208601610e95565b9250610f2e60408601610e7c565b9150610f3c60608601610e7c565b905092959194509250565b8015158114610dd857600080fd5b60008060408385031215610f6857600080fd5b8235610f7381610e43565b91506020830135610f8381610f47565b809150509250929050565b600060208284031215610fa057600080fd5b5051919050565b600060208284031215610fb957600080fd5b8151610e7581610f47565b634e487b7160e01b600052601160045260246000fd5b60006001600160701b038083168185168183048111821515161561100057611000610fc4565b02949350505050565b60006001600160701b038084168061103157634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b600063ffffffff80831681851680830382111561105c5761105c610fc4565b01949350505050565b600063ffffffff8381169083168181101561108257611082610fc4565b039392505050565b60006001600160701b038381169083168181101561108257611082610fc4565b60006001600160701b0380831681851680830382111561105c5761105c610fc456fea2646970667358221220a346373d2226c1f2b524b1a4f252abf0e706230ab15c2f9e43258fa51351234a64736f6c6343000809003300000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f000000000000000000000000a5c1c5a67ba16430547fea9d608ef81119be1876
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063889646ea1161008c578063b87592f211610066578063b87592f2146100ef578063c677fcb914610271578063d2d1fb25146102ef578063f2fde38b146102f757600080fd5b8063889646ea146101c05780638da5cb5b146101d2578063a0663e43146101e357600080fd5b8063223e5a9d116100c8578063223e5a9d14610153578063536cdc1a146101925780635b9aa839146101a5578063715018a6146101b857600080fd5b80630197d972146100ef5780630a79309b1461011357806321d105b214610128575b600080fd5b6100f9626ebe0081565b60405163ffffffff90911681526020015b60405180910390f35b610126610121366004610e58565b61030a565b005b61013b610136366004610eac565b610578565b6040516001600160701b03909116815260200161010a565b61017a7f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f81565b6040516001600160a01b03909116815260200161010a565b6101266101a0366004610ef1565b6105c2565b6101266101b3366004610f55565b610720565b6101266107a5565b61013b6a09ed194db19b238c00000081565b6000546001600160a01b031661017a565b6102396101f1366004610e58565b60026020526000908152604090205460ff81169063ffffffff6101008204811691650100000000008104909116906001600160701b0369010000000000000000009091041684565b60405161010a9493929190931515845263ffffffff9283166020850152911660408301526001600160701b0316606082015260800190565b6102c361027f366004610e58565b60016020526000908152604090205463ffffffff8116906001600160701b036401000000008204811691720100000000000000000000000000000000000090041683565b6040805163ffffffff90941684526001600160701b03928316602085015291169082015260600161010a565b61012661080b565b610126610305366004610e58565b610cf9565b6000546001600160a01b031633146103695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b7f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f6001600160a01b0316816001600160a01b031614156103eb5760405162461bcd60e51b815260206004820152601260248201527f746f6b656e203d20756e6465726c79696e6700000000000000000000000000006044820152606401610360565b471561042d57600080546040516001600160a01b03909116914780156108fc02929091818181858888f1935050505015801561042b573d6000803e3d6000fd5b505b806001600160a01b031663a9059cbb61044e6000546001600160a01b031690565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156104a657600080fd5b505afa1580156104ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104de9190610f8e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561053c57600080fd5b505af1158015610550573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105749190610fa7565b5050565b6001600160a01b03831660009081526002602052604081205463ffffffff650100000000009091048116906105b09084908616610fda565b6105ba9190611009565b949350505050565b6000546001600160a01b0316331461061c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b60408051608081019091526000815260208101610639844261103d565b63ffffffff90811682529283166020808301919091526001600160701b039586166040928301526001600160a01b039096166000908152600287528190208251815497840151928401516060909401519096166901000000000000000000027fffffffffffffffffff0000000000000000000000000000ffffffffffffffffff9385166501000000000002939093167fffffffffffffffffff000000000000000000000000000000000000ffffffffff929094166101000264ffffffff00199615159690961664ffffffffff19909716969096179490941793909316179190911790915550565b6000546001600160a01b0316331461077a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146107ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b6108096000610ddb565b565b336000908152600260209081526040918290208251608081018452905460ff811615158252610100810463ffffffff908116938301849052650100000000008204169382019390935269010000000000000000009092046001600160701b0316606083015242116108be5760405162461bcd60e51b815260206004820152600f60248201527f436c69666620696e2065666665637400000000000000000000000000000000006044820152606401610360565b80511561090d5760405162461bcd60e51b815260206004820152600e60248201527f56657374696e67207061757365640000000000000000000000000000000000006044820152606401610360565b336000908152600160205260409020805463ffffffff166109e95733600090815260026020526040902054690100000000000000000090046001600160701b03168061099b5760405162461bcd60e51b815260206004820152600d60248201527f4e6f20616c6c6f636174696f6e000000000000000000000000000000000000006044820152606401610360565b602083015182546001600160701b03909216640100000000027fffffffffffffffffffffffffffff00000000000000000000000000000000000090921663ffffffff90911617178155610a9e565b805463ffffffff164211610a3f5760405162461bcd60e51b815260206004820152600c60248201527f436c61696d206661696c656400000000000000000000000000000000000000006044820152606401610360565b805464010000000090046001600160701b0316610a9e5760405162461bcd60e51b815260206004820152600d60248201527f46756c6c7920636c61696d6564000000000000000000000000000000000000006044820152606401610360565b80546000908190610ae6903390610abb9063ffffffff1642611065565b33600090815260026020526040902054690100000000000000000090046001600160701b0316610578565b835463ffffffff19164263ffffffff161780855590915064010000000090046001600160701b039081169082161115610b585782547fffffffffffffffffffffffffffff0000000000000000000000000000ffffffff8116845564010000000090046001600160701b03169150610ba6565b809150808360000160048282829054906101000a90046001600160701b0316610b81919061108a565b92506101000a8154816001600160701b0302191690836001600160701b031602179055505b825482908490601290610bd9908490720100000000000000000000000000000000000090046001600160701b03166110aa565b82546101009290920a6001600160701b038181021990931691831602179091556040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015290841660248201527f00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f6001600160a01b0316915063a9059cbb90604401602060405180830381600087803b158015610c7c57600080fd5b505af1158015610c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb49190610fa7565b506040516001600160701b038316815233907ffcd6a0cf5a625280133c034863698c011fa0aefbee7f3be397f86fabd98918529060200160405180910390a250505050565b6000546001600160a01b03163314610d535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610360565b6001600160a01b038116610dcf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610360565b610dd881610ddb565b50565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114610dd857600080fd5b600060208284031215610e6a57600080fd5b8135610e7581610e43565b9392505050565b803563ffffffff81168114610e9057600080fd5b919050565b80356001600160701b0381168114610e9057600080fd5b600080600060608486031215610ec157600080fd5b8335610ecc81610e43565b9250610eda60208501610e7c565b9150610ee860408501610e95565b90509250925092565b60008060008060808587031215610f0757600080fd5b8435610f1281610e43565b9350610f2060208601610e95565b9250610f2e60408601610e7c565b9150610f3c60608601610e7c565b905092959194509250565b8015158114610dd857600080fd5b60008060408385031215610f6857600080fd5b8235610f7381610e43565b91506020830135610f8381610f47565b809150509250929050565b600060208284031215610fa057600080fd5b5051919050565b600060208284031215610fb957600080fd5b8151610e7581610f47565b634e487b7160e01b600052601160045260246000fd5b60006001600160701b038083168185168183048111821515161561100057611000610fc4565b02949350505050565b60006001600160701b038084168061103157634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b600063ffffffff80831681851680830382111561105c5761105c610fc4565b01949350505050565b600063ffffffff8381169083168181101561108257611082610fc4565b039392505050565b60006001600160701b038381169083168181101561108257611082610fc4565b60006001600160701b0380831681851680830382111561105c5761105c610fc456fea2646970667358221220a346373d2226c1f2b524b1a4f252abf0e706230ab15c2f9e43258fa51351234a64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f000000000000000000000000a5c1c5a67ba16430547fea9d608ef81119be1876
-----Decoded View---------------
Arg [0] : _pls (address): 0x51318B7D00db7ACc4026C88c3952B66278B6A67F
Arg [1] : _governance (address): 0xa5c1c5a67Ba16430547FEA9D608Ef81119bE1876
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000051318b7d00db7acc4026c88c3952b66278b6a67f
Arg [1] : 000000000000000000000000a5c1c5a67ba16430547fea9d608ef81119be1876
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.