| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| 0x1c663e11227c2b0e55b596250a21803ab3c20f10be7a20bb0d51fa4b3f2ffab7 | Approve | (pending) | 2 hrs ago | IN | 0 ETH | (Pending) | |||
| 0x011271e6c68ac202b9c70d1a4366a532c2920a65e3696bbbb88854f6366d08e9 | Approve | (pending) | 3 hrs ago | IN | 0 ETH | (Pending) | |||
| Approve | 24460021 | 1 hr ago | IN | 0 ETH | 0.00000154 | ||||
| Approve | 24460012 | 1 hr ago | IN | 0 ETH | 0.00005275 | ||||
| Approve | 24459497 | 2 hrs ago | IN | 0 ETH | 0.00009542 | ||||
| Transfer | 24459323 | 3 hrs ago | IN | 0 ETH | 0.00000189 | ||||
| Approve | 24458843 | 5 hrs ago | IN | 0 ETH | 0.00000191 | ||||
| Approve | 24458798 | 5 hrs ago | IN | 0 ETH | 0.00001689 | ||||
| Approve | 24457598 | 9 hrs ago | IN | 0 ETH | 0.00000197 | ||||
| Transfer | 24457409 | 9 hrs ago | IN | 0 ETH | 0.00000725 | ||||
| Approve | 24456570 | 12 hrs ago | IN | 0 ETH | 0.00010154 | ||||
| Approve | 24456433 | 13 hrs ago | IN | 0 ETH | 0.00009662 | ||||
| Transfer | 24455468 | 16 hrs ago | IN | 0 ETH | 0.00000264 | ||||
| Transfer | 24454707 | 18 hrs ago | IN | 0 ETH | 0.00004346 | ||||
| Approve | 24454694 | 18 hrs ago | IN | 0 ETH | 0.00009573 | ||||
| Approve | 24454533 | 19 hrs ago | IN | 0 ETH | 0.00000202 | ||||
| Approve | 24454003 | 21 hrs ago | IN | 0 ETH | 0.00009675 | ||||
| Transfer | 24453955 | 21 hrs ago | IN | 0 ETH | 0.00000237 | ||||
| Approve | 24453935 | 21 hrs ago | IN | 0 ETH | 0.00009608 | ||||
| Approve | 24453598 | 22 hrs ago | IN | 0 ETH | 0.00009599 | ||||
| Approve | 24453045 | 24 hrs ago | IN | 0 ETH | 0.00009605 | ||||
| Transfer | 24451058 | 31 hrs ago | IN | 0 ETH | 0.000002 | ||||
| Transfer | 24450961 | 31 hrs ago | IN | 0 ETH | 0.00000195 | ||||
| Approve | 24450457 | 33 hrs ago | IN | 0 ETH | 0.00009634 | ||||
| Approve | 24449732 | 35 hrs ago | IN | 0 ETH | 0.00009804 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 20513480 | 551 days ago | 0.01772767 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
UplandToken
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol";
import "./interfaces/IVesting.sol";
/**
* @title UplandToken
* @author Upland
* @dev ERC20 token contract with cap and vesting.
*/
contract UplandToken is ERC20Capped {
/// @dev Maximum supply of the token.
uint256 public constant MAX_SUPPLY = 1000000000 * 1e18;
/// @dev Address of the vesting contract.
address public immutable vesting;
/// Attempt to transfer to vesting account
error TransferToVestingAccount();
/// Attempt to initialize with zero address
error AddressIsZero();
/**
* @dev Constructor to initialize the token with vesting contract. Max supply is minted to the vesting contract.
* @param vestingContract Address of the vesting contract. Cannot be zero address.
*/
constructor(address vestingContract)
ERC20("Upland", "SPARKLET")
ERC20Capped(MAX_SUPPLY)
{
if (vestingContract == address(0)) {
revert AddressIsZero();
}
vesting = vestingContract;
_mint(vestingContract, MAX_SUPPLY);
}
/**
* @dev Overriding ERC20._update() to only allow
* transfers to vesting accounts from vesting contract.
*/
function _update(address from, address to, uint256 value) internal override(ERC20Capped) {
if (IVesting(vesting).vestingAccount(to) && vesting != from) {
revert TransferToVestingAccount();
}
super._update(from, to, value);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```solidity
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```solidity
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
mapping(bytes32 role => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with an {AccessControlUnauthorizedAccount} error including the required role.
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual returns (bool) {
return _roles[role].hasRole[account];
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
* is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
* is missing `role`.
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert AccessControlUnauthorizedAccount(account, role);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address callerConfirmation) public virtual {
if (callerConfirmation != _msgSender()) {
revert AccessControlBadConfirmation();
}
_revokeRole(role, callerConfirmation);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
if (!hasRole(role, account)) {
_roles[role].hasRole[account] = true;
emit RoleGranted(role, account, _msgSender());
return true;
} else {
return false;
}
}
/**
* @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
if (hasRole(role, account)) {
_roles[role].hasRole[account] = false;
emit RoleRevoked(role, account, _msgSender());
return true;
} else {
return false;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev The `account` is missing a role.
*/
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
/**
* @dev The caller of a function is not the expected one.
*
* NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
*/
error AccessControlBadConfirmation();
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Capped.sol)
pragma solidity ^0.8.20;
import {ERC20} from "../ERC20.sol";
/**
* @dev Extension of {ERC20} that adds a cap to the supply of tokens.
*/
abstract contract ERC20Capped is ERC20 {
uint256 private immutable _cap;
/**
* @dev Total supply cap has been exceeded.
*/
error ERC20ExceededCap(uint256 increasedSupply, uint256 cap);
/**
* @dev The supplied cap is not a valid cap.
*/
error ERC20InvalidCap(uint256 cap);
/**
* @dev Sets the value of the `cap`. This value is immutable, it can only be
* set once during construction.
*/
constructor(uint256 cap_) {
if (cap_ == 0) {
revert ERC20InvalidCap(0);
}
_cap = cap_;
}
/**
* @dev Returns the cap on the token's total supply.
*/
function cap() public view virtual returns (uint256) {
return _cap;
}
/**
* @dev See {ERC20-_update}.
*/
function _update(address from, address to, uint256 value) internal virtual override {
super._update(from, to, value);
if (from == address(0)) {
uint256 maxSupply = cap();
uint256 supply = totalSupply();
if (supply > maxSupply) {
revert ERC20ExceededCap(supply, maxSupply);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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 v5.0.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
interface IVesting {
/// @dev Struct to hold vesting account details.
struct VestingAccount {
// total allocated amount
uint256 amount;
// vesting duration in months
uint256 months;
// cliff duration in months
uint256 cliff;
// total claimed amount
uint256 claimed;
// claimable amount before last update
// updated when vesting schedule is changed
// also includes amount claimable at the time of allocation
uint256 claimableBeforeLastUpdate;
// last updated or claimed timestamp
uint256 updatedOrClaimedAt;
}
function updateSchedule(address account, uint256 amount, uint8 months) external;
function claim() external;
function claimable(address account) external view returns (uint256);
function vestingAccount(address account) external view returns (bool);
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"vestingContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressIsZero","type":"error"},{"inputs":[{"internalType":"uint256","name":"increasedSupply","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20ExceededCap","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20InvalidCap","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"TransferToVestingAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vesting","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60c06040523480156200001157600080fd5b5060405162001e4438038062001e448339818101604052810190620000379190620006f1565b6b033b2e3c9fd0803ce80000006040518060400160405280600681526020017f55706c616e6400000000000000000000000000000000000000000000000000008152506040518060400160405280600881526020017f535041524b4c45540000000000000000000000000000000000000000000000008152508160039081620000c191906200099d565b508060049081620000d391906200099d565b505050600081036200011f5760006040517f392e1e2700000000000000000000000000000000000000000000000000000000815260040162000116919062000ac7565b60405180910390fd5b806080818152505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036200018f576040517f867915ab00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1681525050620001e1816b033b2e3c9fd0803ce8000000620001e860201b60201c565b5062000c83565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200025d5760006040517fec442f0500000000000000000000000000000000000000000000000000000000815260040162000254919062000af5565b60405180910390fd5b62000271600083836200027560201b60201c565b5050565b60a05173ffffffffffffffffffffffffffffffffffffffff1663225b0552836040518263ffffffff1660e01b8152600401620002b2919062000af5565b602060405180830381865afa158015620002d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002f6919062000b4f565b80156200033157508273ffffffffffffffffffffffffffffffffffffffff1660a05173ffffffffffffffffffffffffffffffffffffffff1614155b1562000369576040517ffd30d63b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200037c8383836200038160201b60201c565b505050565b620003948383836200044360201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036200043e576000620003db6200067360201b60201c565b90506000620003ef6200067d60201b60201c565b9050818111156200043b5780826040517f9e79f8540000000000000000000000000000000000000000000000000000000081526004016200043292919062000b92565b60405180910390fd5b50505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620004995780600260008282546200048c919062000bee565b925050819055506200056f565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101562000528578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016200051f9392919062000c29565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620005ba578060026000828254039250508190555062000607565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000666919062000c66565b60405180910390a3505050565b6000608051905090565b6000600254905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620006b9826200068c565b9050919050565b620006cb81620006ac565b8114620006d757600080fd5b50565b600081519050620006eb81620006c0565b92915050565b6000602082840312156200070a576200070962000687565b5b60006200071a84828501620006da565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620007a557607f821691505b602082108103620007bb57620007ba6200075d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620008257fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620007e6565b620008318683620007e6565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200087e62000878620008728462000849565b62000853565b62000849565b9050919050565b6000819050919050565b6200089a836200085d565b620008b2620008a98262000885565b848454620007f3565b825550505050565b600090565b620008c9620008ba565b620008d68184846200088f565b505050565b5b81811015620008fe57620008f2600082620008bf565b600181019050620008dc565b5050565b601f8211156200094d576200091781620007c1565b6200092284620007d6565b8101602085101562000932578190505b6200094a6200094185620007d6565b830182620008db565b50505b505050565b600082821c905092915050565b6000620009726000198460080262000952565b1980831691505092915050565b60006200098d83836200095f565b9150826002028217905092915050565b620009a88262000723565b67ffffffffffffffff811115620009c457620009c36200072e565b5b620009d082546200078c565b620009dd82828562000902565b600060209050601f83116001811462000a15576000841562000a00578287015190505b62000a0c85826200097f565b86555062000a7c565b601f19841662000a2586620007c1565b60005b8281101562000a4f5784890151825560018201915060208501945060208101905062000a28565b8683101562000a6f578489015162000a6b601f8916826200095f565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b600062000aaf62000aa962000aa38462000a84565b62000853565b62000849565b9050919050565b62000ac18162000a8e565b82525050565b600060208201905062000ade600083018462000ab6565b92915050565b62000aef81620006ac565b82525050565b600060208201905062000b0c600083018462000ae4565b92915050565b60008115159050919050565b62000b298162000b12565b811462000b3557600080fd5b50565b60008151905062000b498162000b1e565b92915050565b60006020828403121562000b685762000b6762000687565b5b600062000b788482850162000b38565b91505092915050565b62000b8c8162000849565b82525050565b600060408201905062000ba9600083018562000b81565b62000bb8602083018462000b81565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000bfb8262000849565b915062000c088362000849565b925082820190508082111562000c235762000c2262000bbf565b5b92915050565b600060608201905062000c40600083018662000ae4565b62000c4f602083018562000b81565b62000c5e604083018462000b81565b949350505050565b600060208201905062000c7d600083018462000b81565b92915050565b60805160a05161118d62000cb7600039600081816103ac015281816108cd015261098501526000610386015261118d6000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063355274ea11610071578063355274ea1461019157806344c63eec146101af57806370a08231146101cd57806395d89b41146101fd578063a9059cbb1461021b578063dd62ed3e1461024b576100b4565b806306fdde03146100b9578063095ea7b3146100d757806318160ddd1461010757806323b872dd14610125578063313ce5671461015557806332cb6b0c14610173575b600080fd5b6100c161027b565b6040516100ce9190610d5f565b60405180910390f35b6100f160048036038101906100ec9190610e1a565b61030d565b6040516100fe9190610e75565b60405180910390f35b61010f610330565b60405161011c9190610e9f565b60405180910390f35b61013f600480360381019061013a9190610eba565b61033a565b60405161014c9190610e75565b60405180910390f35b61015d610369565b60405161016a9190610f29565b60405180910390f35b61017b610372565b6040516101889190610e9f565b60405180910390f35b610199610382565b6040516101a69190610e9f565b60405180910390f35b6101b76103aa565b6040516101c49190610f53565b60405180910390f35b6101e760048036038101906101e29190610f6e565b6103ce565b6040516101f49190610e9f565b60405180910390f35b610205610416565b6040516102129190610d5f565b60405180910390f35b61023560048036038101906102309190610e1a565b6104a8565b6040516102429190610e75565b60405180910390f35b61026560048036038101906102609190610f9b565b6104cb565b6040516102729190610e9f565b60405180910390f35b60606003805461028a9061100a565b80601f01602080910402602001604051908101604052809291908181526020018280546102b69061100a565b80156103035780601f106102d857610100808354040283529160200191610303565b820191906000526020600020905b8154815290600101906020018083116102e657829003601f168201915b5050505050905090565b600080610318610552565b905061032581858561055a565b600191505092915050565b6000600254905090565b600080610345610552565b905061035285828561056c565b61035d858585610600565b60019150509392505050565b60006012905090565b6b033b2e3c9fd0803ce800000081565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546104259061100a565b80601f01602080910402602001604051908101604052809291908181526020018280546104519061100a565b801561049e5780601f106104735761010080835404028352916020019161049e565b820191906000526020600020905b81548152906001019060200180831161048157829003601f168201915b5050505050905090565b6000806104b3610552565b90506104c0818585610600565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b61056783838360016106f4565b505050565b600061057884846104cb565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146105fa57818110156105ea578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016105e19392919061103b565b60405180910390fd5b6105f9848484840360006106f4565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036106725760006040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016106699190610f53565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036106e45760006040517fec442f050000000000000000000000000000000000000000000000000000000081526004016106db9190610f53565b60405180910390fd5b6106ef8383836108cb565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036107665760006040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161075d9190610f53565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107d85760006040517f94280d620000000000000000000000000000000000000000000000000000000081526004016107cf9190610f53565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080156108c5578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516108bc9190610e9f565b60405180910390a35b50505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663225b0552836040518263ffffffff1660e01b81526004016109249190610f53565b602060405180830381865afa158015610941573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610965919061109e565b80156109bd57508273ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1614155b156109f4576040517ffd30d63b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109ff838383610a04565b505050565b610a0f838383610aaa565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610aa5576000610a4d610382565b90506000610a59610330565b905081811115610aa25780826040517f9e79f854000000000000000000000000000000000000000000000000000000008152600401610a999291906110cb565b60405180910390fd5b50505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610afc578060026000828254610af09190611123565b92505081905550610bcf565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610b88578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610b7f9392919061103b565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c185780600260008282540392505081905550610c65565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610cc29190610e9f565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d09578082015181840152602081019050610cee565b60008484015250505050565b6000601f19601f8301169050919050565b6000610d3182610ccf565b610d3b8185610cda565b9350610d4b818560208601610ceb565b610d5481610d15565b840191505092915050565b60006020820190508181036000830152610d798184610d26565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610db182610d86565b9050919050565b610dc181610da6565b8114610dcc57600080fd5b50565b600081359050610dde81610db8565b92915050565b6000819050919050565b610df781610de4565b8114610e0257600080fd5b50565b600081359050610e1481610dee565b92915050565b60008060408385031215610e3157610e30610d81565b5b6000610e3f85828601610dcf565b9250506020610e5085828601610e05565b9150509250929050565b60008115159050919050565b610e6f81610e5a565b82525050565b6000602082019050610e8a6000830184610e66565b92915050565b610e9981610de4565b82525050565b6000602082019050610eb46000830184610e90565b92915050565b600080600060608486031215610ed357610ed2610d81565b5b6000610ee186828701610dcf565b9350506020610ef286828701610dcf565b9250506040610f0386828701610e05565b9150509250925092565b600060ff82169050919050565b610f2381610f0d565b82525050565b6000602082019050610f3e6000830184610f1a565b92915050565b610f4d81610da6565b82525050565b6000602082019050610f686000830184610f44565b92915050565b600060208284031215610f8457610f83610d81565b5b6000610f9284828501610dcf565b91505092915050565b60008060408385031215610fb257610fb1610d81565b5b6000610fc085828601610dcf565b9250506020610fd185828601610dcf565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061102257607f821691505b60208210810361103557611034610fdb565b5b50919050565b60006060820190506110506000830186610f44565b61105d6020830185610e90565b61106a6040830184610e90565b949350505050565b61107b81610e5a565b811461108657600080fd5b50565b60008151905061109881611072565b92915050565b6000602082840312156110b4576110b3610d81565b5b60006110c284828501611089565b91505092915050565b60006040820190506110e06000830185610e90565b6110ed6020830184610e90565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061112e82610de4565b915061113983610de4565b9250828201905080821115611151576111506110f4565b5b9291505056fea26469706673582212205dd9fbfddb1f75387ee481b190be6aa411255552b315ed305a2cd608c57911df64736f6c6343000814003300000000000000000000000060fb0953b1688e700ed9af74936a032f368e6807
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063355274ea11610071578063355274ea1461019157806344c63eec146101af57806370a08231146101cd57806395d89b41146101fd578063a9059cbb1461021b578063dd62ed3e1461024b576100b4565b806306fdde03146100b9578063095ea7b3146100d757806318160ddd1461010757806323b872dd14610125578063313ce5671461015557806332cb6b0c14610173575b600080fd5b6100c161027b565b6040516100ce9190610d5f565b60405180910390f35b6100f160048036038101906100ec9190610e1a565b61030d565b6040516100fe9190610e75565b60405180910390f35b61010f610330565b60405161011c9190610e9f565b60405180910390f35b61013f600480360381019061013a9190610eba565b61033a565b60405161014c9190610e75565b60405180910390f35b61015d610369565b60405161016a9190610f29565b60405180910390f35b61017b610372565b6040516101889190610e9f565b60405180910390f35b610199610382565b6040516101a69190610e9f565b60405180910390f35b6101b76103aa565b6040516101c49190610f53565b60405180910390f35b6101e760048036038101906101e29190610f6e565b6103ce565b6040516101f49190610e9f565b60405180910390f35b610205610416565b6040516102129190610d5f565b60405180910390f35b61023560048036038101906102309190610e1a565b6104a8565b6040516102429190610e75565b60405180910390f35b61026560048036038101906102609190610f9b565b6104cb565b6040516102729190610e9f565b60405180910390f35b60606003805461028a9061100a565b80601f01602080910402602001604051908101604052809291908181526020018280546102b69061100a565b80156103035780601f106102d857610100808354040283529160200191610303565b820191906000526020600020905b8154815290600101906020018083116102e657829003601f168201915b5050505050905090565b600080610318610552565b905061032581858561055a565b600191505092915050565b6000600254905090565b600080610345610552565b905061035285828561056c565b61035d858585610600565b60019150509392505050565b60006012905090565b6b033b2e3c9fd0803ce800000081565b60007f0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000905090565b7f00000000000000000000000060fb0953b1688e700ed9af74936a032f368e680781565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546104259061100a565b80601f01602080910402602001604051908101604052809291908181526020018280546104519061100a565b801561049e5780601f106104735761010080835404028352916020019161049e565b820191906000526020600020905b81548152906001019060200180831161048157829003601f168201915b5050505050905090565b6000806104b3610552565b90506104c0818585610600565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b61056783838360016106f4565b505050565b600061057884846104cb565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146105fa57818110156105ea578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016105e19392919061103b565b60405180910390fd5b6105f9848484840360006106f4565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036106725760006040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016106699190610f53565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036106e45760006040517fec442f050000000000000000000000000000000000000000000000000000000081526004016106db9190610f53565b60405180910390fd5b6106ef8383836108cb565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036107665760006040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161075d9190610f53565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107d85760006040517f94280d620000000000000000000000000000000000000000000000000000000081526004016107cf9190610f53565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080156108c5578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516108bc9190610e9f565b60405180910390a35b50505050565b7f00000000000000000000000060fb0953b1688e700ed9af74936a032f368e680773ffffffffffffffffffffffffffffffffffffffff1663225b0552836040518263ffffffff1660e01b81526004016109249190610f53565b602060405180830381865afa158015610941573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610965919061109e565b80156109bd57508273ffffffffffffffffffffffffffffffffffffffff167f00000000000000000000000060fb0953b1688e700ed9af74936a032f368e680773ffffffffffffffffffffffffffffffffffffffff1614155b156109f4576040517ffd30d63b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109ff838383610a04565b505050565b610a0f838383610aaa565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610aa5576000610a4d610382565b90506000610a59610330565b905081811115610aa25780826040517f9e79f854000000000000000000000000000000000000000000000000000000008152600401610a999291906110cb565b60405180910390fd5b50505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610afc578060026000828254610af09190611123565b92505081905550610bcf565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610b88578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610b7f9392919061103b565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c185780600260008282540392505081905550610c65565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610cc29190610e9f565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d09578082015181840152602081019050610cee565b60008484015250505050565b6000601f19601f8301169050919050565b6000610d3182610ccf565b610d3b8185610cda565b9350610d4b818560208601610ceb565b610d5481610d15565b840191505092915050565b60006020820190508181036000830152610d798184610d26565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610db182610d86565b9050919050565b610dc181610da6565b8114610dcc57600080fd5b50565b600081359050610dde81610db8565b92915050565b6000819050919050565b610df781610de4565b8114610e0257600080fd5b50565b600081359050610e1481610dee565b92915050565b60008060408385031215610e3157610e30610d81565b5b6000610e3f85828601610dcf565b9250506020610e5085828601610e05565b9150509250929050565b60008115159050919050565b610e6f81610e5a565b82525050565b6000602082019050610e8a6000830184610e66565b92915050565b610e9981610de4565b82525050565b6000602082019050610eb46000830184610e90565b92915050565b600080600060608486031215610ed357610ed2610d81565b5b6000610ee186828701610dcf565b9350506020610ef286828701610dcf565b9250506040610f0386828701610e05565b9150509250925092565b600060ff82169050919050565b610f2381610f0d565b82525050565b6000602082019050610f3e6000830184610f1a565b92915050565b610f4d81610da6565b82525050565b6000602082019050610f686000830184610f44565b92915050565b600060208284031215610f8457610f83610d81565b5b6000610f9284828501610dcf565b91505092915050565b60008060408385031215610fb257610fb1610d81565b5b6000610fc085828601610dcf565b9250506020610fd185828601610dcf565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061102257607f821691505b60208210810361103557611034610fdb565b5b50919050565b60006060820190506110506000830186610f44565b61105d6020830185610e90565b61106a6040830184610e90565b949350505050565b61107b81610e5a565b811461108657600080fd5b50565b60008151905061109881611072565b92915050565b6000602082840312156110b4576110b3610d81565b5b60006110c284828501611089565b91505092915050565b60006040820190506110e06000830185610e90565b6110ed6020830184610e90565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061112e82610de4565b915061113983610de4565b9250828201905080821115611151576111506110f4565b5b9291505056fea26469706673582212205dd9fbfddb1f75387ee481b190be6aa411255552b315ed305a2cd608c57911df64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000060fb0953b1688e700ed9af74936a032f368e6807
-----Decoded View---------------
Arg [0] : vestingContract (address): 0x60Fb0953B1688E700ed9Af74936a032f368E6807
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000060fb0953b1688e700ed9af74936a032f368e6807
Loading...
Loading
Loading...
Loading
Net Worth in USD
$707.34
Net Worth in ETH
0.339105
Token Allocations
SPARKLET
75.61%
UNI
20.76%
USDC
3.18%
Others
0.45%
Multichain Portfolio | 34 Chains
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.