ERC-20
Overview
Max Total Supply
50,980,497.333333333297403 RESISTER-ALPHA
Holders
22
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
831,998 RESISTER-ALPHAValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Resisters
Compiler Version
v0.8.24+commit.e11b9ed9
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-03-13 */ // File: @openzeppelin/[email protected]/utils/Address.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } } } // File: @openzeppelin/[email protected]/token/ERC20/extensions/IERC20Permit.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/[email protected]/interfaces/draft-IERC6093.sol // 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); } // File: @openzeppelin/[email protected]/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.1) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File: @openzeppelin/[email protected]/utils/Pausable.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/[email protected]/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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); } } // File: @openzeppelin/[email protected]/token/ERC20/IERC20.sol // 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); } // File: @openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } } // File: @openzeppelin/[email protected]/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; /** * @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); } // File: @openzeppelin/[email protected]/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; /** * @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); } } } } // File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20Capped.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Capped.sol) pragma solidity ^0.8.20; /** * @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); } } } } // File: contracts/Resisters.sol pragma solidity 0.8.24; contract Resisters is ERC20Capped, Ownable, Pausable { using SafeERC20 for IERC20; event TokensPurchased(address indexed purchaser, address indexed beneficiary, uint256 value, uint256 amount); struct BuyTokens { address token; uint256 decimals; } mapping(address => uint256) public _contributions; mapping(address => BuyTokens) public _enabledBuyTokens; uint256 public rate; uint256 public softCap; uint256 public personalCap; bool public transfersDisabled; constructor( uint256 _rate, uint256 _personalCap, uint256 _saleCap, uint256 _softCap, address _owner ) ERC20("RESISTER-ALPHA", "RESISTER-ALPHA") ERC20Capped(_saleCap) Ownable(_owner) { rate = _rate; softCap = _softCap; personalCap = _personalCap; transfersDisabled = true; // USDT _enabledBuyTokens[0xdAC17F958D2ee523a2206206994597C13D831ec7] = BuyTokens({ token: 0xdAC17F958D2ee523a2206206994597C13D831ec7, decimals: 6 }); // USDC _enabledBuyTokens[0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48] = BuyTokens({ token: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, decimals: 6 }); // DAI _enabledBuyTokens[0x6B175474E89094C44Da98b954EedeAC495271d0F] = BuyTokens({ token: 0x6B175474E89094C44Da98b954EedeAC495271d0F, decimals: 18 }); } function buyTokens(address beneficiary, address stablecoin, uint256 amount) public whenNotPaused { BuyTokens memory token = _enabledBuyTokens[stablecoin]; if (token.token == address(0x0)) { revert("Invalid buy token"); } IERC20(token.token).safeTransferFrom(msg.sender, owner(), amount); uint256 purchaseAmount = (amount * rate) / 10**token.decimals; if (_contributions[beneficiary] + purchaseAmount > personalCap) { revert("Personal cap exceeded"); } _contributions[beneficiary] += purchaseAmount; _mint(beneficiary, purchaseAmount); emit TokensPurchased(msg.sender, beneficiary, amount, purchaseAmount); } function getPurchaseAmount(address stablecoin, uint256 amount) public view returns(uint256) { BuyTokens memory token = _enabledBuyTokens[stablecoin]; uint256 purchaseAmount = (amount * rate) / 10**token.decimals; return purchaseAmount; } function _update(address from, address to, uint256 value) internal virtual override { super._update(from, to, value); // we allow minting if (transfersDisabled && from != address(0)) { revert("Cannot transfer yet"); } uint256 maxSoftSupply = softCap; uint256 supply = totalSupply(); if (supply > maxSoftSupply) { revert ERC20ExceededCap(supply, maxSoftSupply); } } /// @notice used to toggle the transferability of the tokens function toggleTransferability() public onlyOwner { transfersDisabled = !transfersDisabled; } function changePersonalCap(uint256 _personalCap) public onlyOwner { personalCap = _personalCap; } /// @notice used to change the rate once the soft cap has been reached function changeRate(uint256 _rate) public onlyOwner { rate = _rate; } /// @notice used to change the soft cap once it has been reached. It cannot exceed the cap (max supply) function changeSoftCap(uint256 _softCap) public onlyOwner { softCap = _softCap; } /// @notice used to mint to the treasury after the sale function mint(address treasury, uint256 amount) public onlyOwner { _mint(treasury, amount); } /// @notice used to pause the contract function pause() external onlyOwner { _pause(); } /// @notice used to unpause the contract function unpause() external onlyOwner { _unpause(); } } // contract MockErc20 is ERC20 { // constructor() ERC20("test", "tt") { // } // function decimals() public view override returns (uint8) { // return 18; // } // function mint(uint256 amount) public { // _mint(msg.sender, amount); // } // } contract MockErc20_6Decimals is ERC20 { constructor() ERC20("test", "tt") { } function decimals() public view override returns (uint8) { return 6; } function mint(uint256 amount) public { _mint(msg.sender, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"},{"internalType":"uint256","name":"_personalCap","type":"uint256"},{"internalType":"uint256","name":"_saleCap","type":"uint256"},{"internalType":"uint256","name":"_softCap","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","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":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"purchaser","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensPurchased","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_contributions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_enabledBuyTokens","outputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"decimals","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":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"address","name":"stablecoin","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_personalCap","type":"uint256"}],"name":"changePersonalCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"changeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_softCap","type":"uint256"}],"name":"changeSoftCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stablecoin","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getPurchaseAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"treasury","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"personalCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"softCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleTransferability","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transfersDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801562000010575f80fd5b50604051620017a2380380620017a283398101604081905262000033916200031f565b80836040518060400160405280600e81526020016d52455349535445522d414c50484160901b8152506040518060400160405280600e81526020016d52455349535445522d414c50484160901b815250816003908162000094919062000415565b506004620000a3828262000415565b505050805f03620000ce5760405163392e1e2760e01b81525f60048201526024015b60405180910390fd5b6080526001600160a01b038116620000fc57604051631e4fbdf760e01b81525f6004820152602401620000c5565b6200010781620002ce565b50506005805460ff60a01b1916905560089390935550600991909155600a55600b805460ff1916600117905560408051808201825273dac17f958d2ee523a2206206994597c13d831ec7808252600660208084018281525f938452600780835294517f76591fc11dbbd749b6df72a71faf88b812c3702b5747249a615a8b3dc6bb6a6a80546001600160a01b03199081166001600160a01b039384161790915591517f76591fc11dbbd749b6df72a71faf88b812c3702b5747249a615a8b3dc6bb6a6b558651808801885273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488082528185019586528652868452517ff942f4688cdba65adc8aa59da583acae93fa87351143ebc775559218bfa5f8328054841691831691909117905592517ff942f4688cdba65adc8aa59da583acae93fa87351143ebc775559218bfa5f833558551808701909652736b175474e89094c44da98b954eedeac495271d0f8087526012878401908152945293905292517f7b9e7ef1a1e159bc29c6842cd1504210f319873280c84511e9666ecfa3a520ff80549093169316929092179055517f7b9e7ef1a1e159bc29c6842cd1504210f319873280c84511e9666ecfa3a5210055620004e1565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f805f805f60a0868803121562000334575f80fd5b855160208701516040880151606089015160808a0151939850919650945092506001600160a01b038116811462000369575f80fd5b809150509295509295909350565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620003a057607f821691505b602082108103620003bf57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200041057805f5260205f20601f840160051c81016020851015620003ec5750805b601f840160051c820191505b818110156200040d575f8155600101620003f8565b50505b505050565b81516001600160401b0381111562000431576200043162000377565b62000449816200044284546200038b565b84620003c5565b602080601f8311600181146200047f575f8415620004675750858301515b5f19600386901b1c1916600185901b178555620004d9565b5f85815260208120601f198616915b82811015620004af578886015182559484019460019091019084016200048e565b5085821015620004cd57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b6080516112a1620005015f395f81816102870152610d0801526112a15ff3fe608060405234801561000f575f80fd5b50600436106101c6575f3560e01c80635c975abb116100fe57806395d89b411161009e578063dcefa5381161006e578063dcefa538146103d7578063dd62ed3e146103ea578063f1588d6614610422578063f2fde38b14610435575f80fd5b806395d89b4114610362578063a9059cbb1461036a578063c7c2aee31461037d578063da029d1a14610386575f80fd5b806374e7493b116100d957806374e7493b146103235780638456cb59146103365780638da5cb5b1461033e578063906a26e014610359575f80fd5b80635c975abb146102e157806370a08231146102f3578063715018a61461031b575f80fd5b80632c4e722e11610169578063392087fd11610144578063392087fd146102ab5780633d0a4dae146102be5780633f4ba83a146102c657806340c10f19146102ce575f80fd5b80632c4e722e1461026d578063313ce56714610276578063355274ea14610285575f80fd5b80631062db3c116101a45780631062db3c1461021457806318160ddd146102295780631e6a610d1461023b57806323b872dd1461025a575f80fd5b8063034cd725146101ca57806306fdde03146101ec578063095ea7b314610201575b5f80fd5b600b546101d79060ff1681565b60405190151581526020015b60405180910390f35b6101f4610448565b6040516101e39190610fa2565b6101d761020f366004610fef565b6104d8565b610227610222366004611017565b6104f1565b005b6002545b6040519081526020016101e3565b61022d61024936600461102e565b60066020525f908152604090205481565b6101d7610268366004611047565b6104fe565b61022d60085481565b604051601281526020016101e3565b7f000000000000000000000000000000000000000000000000000000000000000061022d565b6102276102b9366004611017565b610523565b610227610530565b61022761054c565b6102276102dc366004610fef565b61055e565b600554600160a01b900460ff166101d7565b61022d61030136600461102e565b6001600160a01b03165f9081526020819052604090205490565b610227610574565b610227610331366004611017565b610585565b610227610592565b6005546040516001600160a01b0390911681526020016101e3565b61022d60095481565b6101f46105a2565b6101d7610378366004610fef565b6105b1565b61022d600a5481565b6103b861039436600461102e565b60076020525f9081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152016101e3565b6102276103e5366004611047565b6105be565b61022d6103f8366004611080565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61022d610430366004610fef565b610788565b61022761044336600461102e565b6107ee565b606060038054610457906110b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610483906110b1565b80156104ce5780601f106104a5576101008083540402835291602001916104ce565b820191905f5260205f20905b8154815290600101906020018083116104b157829003601f168201915b5050505050905090565b5f336104e581858561082b565b60019150505b92915050565b6104f961083d565b600a55565b5f3361050b85828561086a565b6105168585856108e5565b60019150505b9392505050565b61052b61083d565b600955565b61053861083d565b600b805460ff19811660ff90911615179055565b61055461083d565b61055c610942565b565b61056661083d565b6105708282610997565b5050565b61057c61083d565b61055c5f6109cb565b61058d61083d565b600855565b61059a61083d565b61055c610a1c565b606060048054610457906110b1565b5f336104e58185856108e5565b6105c6610a5f565b6001600160a01b038083165f908152600760209081526040918290208251808401909352805490931680835260019093015490820152906106425760405162461bcd60e51b815260206004820152601160248201527024b73b30b634b210313abc903a37b5b2b760791b60448201526064015b60405180910390fd5b61066b336106586005546001600160a01b031690565b83516001600160a01b0316919085610a8a565b5f8160200151600a61067d91906111dd565b60085461068a90856111e8565b61069491906111ff565b600a546001600160a01b0387165f90815260066020526040902054919250906106be90839061121e565b11156107045760405162461bcd60e51b815260206004820152601560248201527414195c9cdbdb985b0818d85c08195e18d959591959605a1b6044820152606401610639565b6001600160a01b0385165f908152600660205260408120805483929061072b90849061121e565b9091555061073b90508582610997565b60408051848152602081018390526001600160a01b0387169133917f6faf93231a456e552dbc9961f58d9713ee4f2e69d15f1975b050ef0911053a7b910160405180910390a35050505050565b6001600160a01b038083165f90815260076020908152604080832081518083019092528054909416815260019093015490830181905290919082906107ce90600a6111dd565b6008546107db90866111e8565b6107e591906111ff565b95945050505050565b6107f661083d565b6001600160a01b03811661081f57604051631e4fbdf760e01b81525f6004820152602401610639565b610828816109cb565b50565b6108388383836001610ae4565b505050565b6005546001600160a01b0316331461055c5760405163118cdaa760e01b8152336004820152602401610639565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146108df57818110156108d157604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610639565b6108df84848484035f610ae4565b50505050565b6001600160a01b03831661090e57604051634b637e8f60e11b81525f6004820152602401610639565b6001600160a01b0382166109375760405163ec442f0560e01b81525f6004820152602401610639565b610838838383610bb6565b61094a610c5f565b6005805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166109c05760405163ec442f0560e01b81525f6004820152602401610639565b6105705f8383610bb6565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b610a24610a5f565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861097a3390565b600554600160a01b900460ff161561055c5760405163d93c066560e01b815260040160405180910390fd5b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108df908590610c89565b6001600160a01b038416610b0d5760405163e602df0560e01b81525f6004820152602401610639565b6001600160a01b038316610b3657604051634a1406b160e11b81525f6004820152602401610639565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156108df57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ba891815260200190565b60405180910390a350505050565b610bc1838383610cea565b600b5460ff168015610bdb57506001600160a01b03831615155b15610c1e5760405162461bcd60e51b815260206004820152601360248201527210d85b9b9bdd081d1c985b9cd9995c881e595d606a1b6044820152606401610639565b6009545f610c2b60025490565b905081811115610c585760405163279e7e1560e21b81526004810182905260248101839052604401610639565b5050505050565b600554600160a01b900460ff1661055c57604051638dfc202b60e01b815260040160405180910390fd5b5f610c9d6001600160a01b03841683610d2f565b905080515f14158015610cc1575080806020019051810190610cbf9190611231565b155b1561083857604051635274afe760e01b81526001600160a01b0384166004820152602401610639565b610cf5838383610d3c565b6001600160a01b038316610838576002547f0000000000000000000000000000000000000000000000000000000000000000905f90610c2b565b606061051c83835f610e62565b6001600160a01b038316610d66578060025f828254610d5b919061121e565b90915550610dd69050565b6001600160a01b0383165f9081526020819052604090205481811015610db85760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610639565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610df257600280548290039055610e10565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e5591815260200190565b60405180910390a3505050565b606081471015610e875760405163cd78605960e01b8152306004820152602401610639565b5f80856001600160a01b03168486604051610ea29190611250565b5f6040518083038185875af1925050503d805f8114610edc576040519150601f19603f3d011682016040523d82523d5f602084013e610ee1565b606091505b5091509150610ef1868383610efb565b9695505050505050565b606082610f1057610f0b82610f57565b61051c565b8151158015610f2757506001600160a01b0384163b155b15610f5057604051639996b31560e01b81526001600160a01b0385166004820152602401610639565b508061051c565b805115610f675780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b5f5b83811015610f9a578181015183820152602001610f82565b50505f910152565b602081525f8251806020840152610fc0816040850160208701610f80565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610fea575f80fd5b919050565b5f8060408385031215611000575f80fd5b61100983610fd4565b946020939093013593505050565b5f60208284031215611027575f80fd5b5035919050565b5f6020828403121561103e575f80fd5b61051c82610fd4565b5f805f60608486031215611059575f80fd5b61106284610fd4565b925061107060208501610fd4565b9150604084013590509250925092565b5f8060408385031215611091575f80fd5b61109a83610fd4565b91506110a860208401610fd4565b90509250929050565b600181811c908216806110c557607f821691505b6020821081036110e357634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b600181815b8085111561113757815f190482111561111d5761111d6110e9565b8085161561112a57918102915b93841c9390800290611102565b509250929050565b5f8261114d575060016104eb565b8161115957505f6104eb565b816001811461116f576002811461117957611195565b60019150506104eb565b60ff84111561118a5761118a6110e9565b50506001821b6104eb565b5060208310610133831016604e8410600b84101617156111b8575081810a6104eb565b6111c283836110fd565b805f19048211156111d5576111d56110e9565b029392505050565b5f61051c838361113f565b80820281158282048414176104eb576104eb6110e9565b5f8261121957634e487b7160e01b5f52601260045260245ffd5b500490565b808201808211156104eb576104eb6110e9565b5f60208284031215611241575f80fd5b8151801515811461051c575f80fd5b5f8251611261818460208701610f80565b919091019291505056fea26469706673582212207b93c82f3e00f6a810da47c8e59e8e09584ab2775396f3538c07c0ab1cde0d7e64736f6c634300081800330000000000000000000000000000000000000000000000056bc75e2d63100000000000000000000000000000000000000000000000021165458500521280000000000000000000000000000000000000000000000053a0f8312868d15a200000000000000000000000000000000000000000000000202a3812e82850852000000000000000000000000000009c05dda240cc9a7c01cfce88cee52c625f4d9b1c
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106101c6575f3560e01c80635c975abb116100fe57806395d89b411161009e578063dcefa5381161006e578063dcefa538146103d7578063dd62ed3e146103ea578063f1588d6614610422578063f2fde38b14610435575f80fd5b806395d89b4114610362578063a9059cbb1461036a578063c7c2aee31461037d578063da029d1a14610386575f80fd5b806374e7493b116100d957806374e7493b146103235780638456cb59146103365780638da5cb5b1461033e578063906a26e014610359575f80fd5b80635c975abb146102e157806370a08231146102f3578063715018a61461031b575f80fd5b80632c4e722e11610169578063392087fd11610144578063392087fd146102ab5780633d0a4dae146102be5780633f4ba83a146102c657806340c10f19146102ce575f80fd5b80632c4e722e1461026d578063313ce56714610276578063355274ea14610285575f80fd5b80631062db3c116101a45780631062db3c1461021457806318160ddd146102295780631e6a610d1461023b57806323b872dd1461025a575f80fd5b8063034cd725146101ca57806306fdde03146101ec578063095ea7b314610201575b5f80fd5b600b546101d79060ff1681565b60405190151581526020015b60405180910390f35b6101f4610448565b6040516101e39190610fa2565b6101d761020f366004610fef565b6104d8565b610227610222366004611017565b6104f1565b005b6002545b6040519081526020016101e3565b61022d61024936600461102e565b60066020525f908152604090205481565b6101d7610268366004611047565b6104fe565b61022d60085481565b604051601281526020016101e3565b7f00000000000000000000000000000000000000000053a0f8312868d15a20000061022d565b6102276102b9366004611017565b610523565b610227610530565b61022761054c565b6102276102dc366004610fef565b61055e565b600554600160a01b900460ff166101d7565b61022d61030136600461102e565b6001600160a01b03165f9081526020819052604090205490565b610227610574565b610227610331366004611017565b610585565b610227610592565b6005546040516001600160a01b0390911681526020016101e3565b61022d60095481565b6101f46105a2565b6101d7610378366004610fef565b6105b1565b61022d600a5481565b6103b861039436600461102e565b60076020525f9081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152016101e3565b6102276103e5366004611047565b6105be565b61022d6103f8366004611080565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61022d610430366004610fef565b610788565b61022761044336600461102e565b6107ee565b606060038054610457906110b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610483906110b1565b80156104ce5780601f106104a5576101008083540402835291602001916104ce565b820191905f5260205f20905b8154815290600101906020018083116104b157829003601f168201915b5050505050905090565b5f336104e581858561082b565b60019150505b92915050565b6104f961083d565b600a55565b5f3361050b85828561086a565b6105168585856108e5565b60019150505b9392505050565b61052b61083d565b600955565b61053861083d565b600b805460ff19811660ff90911615179055565b61055461083d565b61055c610942565b565b61056661083d565b6105708282610997565b5050565b61057c61083d565b61055c5f6109cb565b61058d61083d565b600855565b61059a61083d565b61055c610a1c565b606060048054610457906110b1565b5f336104e58185856108e5565b6105c6610a5f565b6001600160a01b038083165f908152600760209081526040918290208251808401909352805490931680835260019093015490820152906106425760405162461bcd60e51b815260206004820152601160248201527024b73b30b634b210313abc903a37b5b2b760791b60448201526064015b60405180910390fd5b61066b336106586005546001600160a01b031690565b83516001600160a01b0316919085610a8a565b5f8160200151600a61067d91906111dd565b60085461068a90856111e8565b61069491906111ff565b600a546001600160a01b0387165f90815260066020526040902054919250906106be90839061121e565b11156107045760405162461bcd60e51b815260206004820152601560248201527414195c9cdbdb985b0818d85c08195e18d959591959605a1b6044820152606401610639565b6001600160a01b0385165f908152600660205260408120805483929061072b90849061121e565b9091555061073b90508582610997565b60408051848152602081018390526001600160a01b0387169133917f6faf93231a456e552dbc9961f58d9713ee4f2e69d15f1975b050ef0911053a7b910160405180910390a35050505050565b6001600160a01b038083165f90815260076020908152604080832081518083019092528054909416815260019093015490830181905290919082906107ce90600a6111dd565b6008546107db90866111e8565b6107e591906111ff565b95945050505050565b6107f661083d565b6001600160a01b03811661081f57604051631e4fbdf760e01b81525f6004820152602401610639565b610828816109cb565b50565b6108388383836001610ae4565b505050565b6005546001600160a01b0316331461055c5760405163118cdaa760e01b8152336004820152602401610639565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146108df57818110156108d157604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610639565b6108df84848484035f610ae4565b50505050565b6001600160a01b03831661090e57604051634b637e8f60e11b81525f6004820152602401610639565b6001600160a01b0382166109375760405163ec442f0560e01b81525f6004820152602401610639565b610838838383610bb6565b61094a610c5f565b6005805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166109c05760405163ec442f0560e01b81525f6004820152602401610639565b6105705f8383610bb6565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b610a24610a5f565b6005805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861097a3390565b600554600160a01b900460ff161561055c5760405163d93c066560e01b815260040160405180910390fd5b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108df908590610c89565b6001600160a01b038416610b0d5760405163e602df0560e01b81525f6004820152602401610639565b6001600160a01b038316610b3657604051634a1406b160e11b81525f6004820152602401610639565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156108df57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ba891815260200190565b60405180910390a350505050565b610bc1838383610cea565b600b5460ff168015610bdb57506001600160a01b03831615155b15610c1e5760405162461bcd60e51b815260206004820152601360248201527210d85b9b9bdd081d1c985b9cd9995c881e595d606a1b6044820152606401610639565b6009545f610c2b60025490565b905081811115610c585760405163279e7e1560e21b81526004810182905260248101839052604401610639565b5050505050565b600554600160a01b900460ff1661055c57604051638dfc202b60e01b815260040160405180910390fd5b5f610c9d6001600160a01b03841683610d2f565b905080515f14158015610cc1575080806020019051810190610cbf9190611231565b155b1561083857604051635274afe760e01b81526001600160a01b0384166004820152602401610639565b610cf5838383610d3c565b6001600160a01b038316610838576002547f00000000000000000000000000000000000000000053a0f8312868d15a200000905f90610c2b565b606061051c83835f610e62565b6001600160a01b038316610d66578060025f828254610d5b919061121e565b90915550610dd69050565b6001600160a01b0383165f9081526020819052604090205481811015610db85760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610639565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610df257600280548290039055610e10565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e5591815260200190565b60405180910390a3505050565b606081471015610e875760405163cd78605960e01b8152306004820152602401610639565b5f80856001600160a01b03168486604051610ea29190611250565b5f6040518083038185875af1925050503d805f8114610edc576040519150601f19603f3d011682016040523d82523d5f602084013e610ee1565b606091505b5091509150610ef1868383610efb565b9695505050505050565b606082610f1057610f0b82610f57565b61051c565b8151158015610f2757506001600160a01b0384163b155b15610f5057604051639996b31560e01b81526001600160a01b0385166004820152602401610639565b508061051c565b805115610f675780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b5f5b83811015610f9a578181015183820152602001610f82565b50505f910152565b602081525f8251806020840152610fc0816040850160208701610f80565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610fea575f80fd5b919050565b5f8060408385031215611000575f80fd5b61100983610fd4565b946020939093013593505050565b5f60208284031215611027575f80fd5b5035919050565b5f6020828403121561103e575f80fd5b61051c82610fd4565b5f805f60608486031215611059575f80fd5b61106284610fd4565b925061107060208501610fd4565b9150604084013590509250925092565b5f8060408385031215611091575f80fd5b61109a83610fd4565b91506110a860208401610fd4565b90509250929050565b600181811c908216806110c557607f821691505b6020821081036110e357634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b600181815b8085111561113757815f190482111561111d5761111d6110e9565b8085161561112a57918102915b93841c9390800290611102565b509250929050565b5f8261114d575060016104eb565b8161115957505f6104eb565b816001811461116f576002811461117957611195565b60019150506104eb565b60ff84111561118a5761118a6110e9565b50506001821b6104eb565b5060208310610133831016604e8410600b84101617156111b8575081810a6104eb565b6111c283836110fd565b805f19048211156111d5576111d56110e9565b029392505050565b5f61051c838361113f565b80820281158282048414176104eb576104eb6110e9565b5f8261121957634e487b7160e01b5f52601260045260245ffd5b500490565b808201808211156104eb576104eb6110e9565b5f60208284031215611241575f80fd5b8151801515811461051c575f80fd5b5f8251611261818460208701610f80565b919091019291505056fea26469706673582212207b93c82f3e00f6a810da47c8e59e8e09584ab2775396f3538c07c0ab1cde0d7e64736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000056bc75e2d63100000000000000000000000000000000000000000000000021165458500521280000000000000000000000000000000000000000000000053a0f8312868d15a200000000000000000000000000000000000000000000000202a3812e82850852000000000000000000000000000009c05dda240cc9a7c01cfce88cee52c625f4d9b1c
-----Decoded View---------------
Arg [0] : _rate (uint256): 100000000000000000000
Arg [1] : _personalCap (uint256): 2500000000000000000000000
Arg [2] : _saleCap (uint256): 101101000000000000000000000
Arg [3] : _softCap (uint256): 38885000000000000000000000
Arg [4] : _owner (address): 0x9C05ddA240CC9A7C01cfce88Cee52C625F4d9B1c
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000056bc75e2d63100000
Arg [1] : 0000000000000000000000000000000000000000000211654585005212800000
Arg [2] : 00000000000000000000000000000000000000000053a0f8312868d15a200000
Arg [3] : 000000000000000000000000000000000000000000202a3812e8285085200000
Arg [4] : 0000000000000000000000009c05dda240cc9a7c01cfce88cee52c625f4d9b1c
Deployed Bytecode Sourcemap
46538:4131:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47041:29;;;;;;;;;;;;179:14:1;;172:22;154:41;;142:2;127:18;47041:29:0;;;;;;;;35629:91;;;:::i;:::-;;;;;;;:::i;37922:190::-;;;;;;:::i;:::-;;:::i;49764:111::-;;;;;;:::i;:::-;;:::i;:::-;;36731:99;36810:12;;36731:99;;;1630:25:1;;;1618:2;1603:18;36731:99:0;1484:177:1;46834:49:0;;;;;;:::i;:::-;;;;;;;;;;;;;;38690:249;;;;;;:::i;:::-;;:::i;46953:19::-;;;;;;36582:84;;;36656:2;2332:36:1;;2320:2;2305:18;36582:84:0;2190:184:1;45932:83:0;46003:4;45932:83;;50159:95;;;;;;:::i;:::-;;:::i;49649:107::-;;;:::i;50599:67::-;;;:::i;50323:107::-;;;;;;:::i;:::-;;:::i;20062:86::-;20133:7;;-1:-1:-1;;;20133:7:0;;;;20062:86;;36893:118;;;;;;:::i;:::-;-1:-1:-1;;;;;36985:18:0;36958:7;36985:18;;;;;;;;;;;;36893:118;23441:103;;;:::i;49959:83::-;;;;;;:::i;:::-;;:::i;50482:63::-;;;:::i;22766:87::-;22839:6;;22766:87;;-1:-1:-1;;;;;22839:6:0;;;2525:51:1;;2513:2;2498:18;22766:87:0;2379:203:1;46979:22:0;;;;;;35839:95;;;:::i;37216:182::-;;;;;;:::i;:::-;;:::i;47008:26::-;;;;;;46890:54;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46890:54:0;;;;;;;;;;-1:-1:-1;;;;;2779:32:1;;;2761:51;;2843:2;2828:18;;2821:34;;;;2734:18;46890:54:0;2587:274:1;48072:740:0;;;;;;:::i;:::-;;:::i;37461:142::-;;;;;;:::i;:::-;-1:-1:-1;;;;;37568:18:0;;;37541:7;37568:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;37461:142;48820:269;;;;;;:::i;:::-;;:::i;23699:220::-;;;;;;:::i;:::-;;:::i;35629:91::-;35674:13;35707:5;35700:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35629:91;:::o;37922:190::-;37995:4;17915:10;38051:31;17915:10;38067:7;38076:5;38051:8;:31::i;:::-;38100:4;38093:11;;;37922:190;;;;;:::o;49764:111::-;22652:13;:11;:13::i;:::-;49841:11:::1;:26:::0;49764:111::o;38690:249::-;38777:4;17915:10;38835:37;38851:4;17915:10;38866:5;38835:15;:37::i;:::-;38883:26;38893:4;38899:2;38903:5;38883:9;:26::i;:::-;38927:4;38920:11;;;38690:249;;;;;;:::o;50159:95::-;22652:13;:11;:13::i;:::-;50228:7:::1;:18:::0;50159:95::o;49649:107::-;22652:13;:11;:13::i;:::-;49731:17:::1;::::0;;-1:-1:-1;;49710:38:0;::::1;49731:17;::::0;;::::1;49730:18;49710:38;::::0;;49649:107::o;50599:67::-;22652:13;:11;:13::i;:::-;50648:10:::1;:8;:10::i;:::-;50599:67::o:0;50323:107::-;22652:13;:11;:13::i;:::-;50399:23:::1;50405:8;50415:6;50399:5;:23::i;:::-;50323:107:::0;;:::o;23441:103::-;22652:13;:11;:13::i;:::-;23506:30:::1;23533:1;23506:18;:30::i;49959:83::-:0;22652:13;:11;:13::i;:::-;50022:4:::1;:12:::0;49959:83::o;50482:63::-;22652:13;:11;:13::i;:::-;50529:8:::1;:6;:8::i;35839:95::-:0;35886:13;35919:7;35912:14;;;;;:::i;37216:182::-;37285:4;17915:10;37341:27;17915:10;37358:2;37362:5;37341:9;:27::i;48072:740::-;19667:19;:17;:19::i;:::-;-1:-1:-1;;;;;48205:29:0;;::::1;48180:22;48205:29:::0;;;:17:::1;:29;::::0;;;;;;;;48180:54;;;;::::1;::::0;;;;;;;::::1;::::0;;;;;;::::1;::::0;;;::::1;::::0;;48247:87:::1;;48295:27;::::0;-1:-1:-1;;;48295:27:0;;3718:2:1;48295:27:0::1;::::0;::::1;3700:21:1::0;3757:2;3737:18;;;3730:30;-1:-1:-1;;;3776:18:1;;;3769:47;3833:18;;48295:27:0::1;;;;;;;;48247:87;48346:65;48383:10;48395:7;22839:6:::0;;-1:-1:-1;;;;;22839:6:0;;22766:87;48395:7:::1;48353:11:::0;;-1:-1:-1;;;;;48346:36:0::1;::::0;:65;48404:6;48346:36:::1;:65::i;:::-;48422:22;48469:5;:14;;;48465:2;:18;;;;:::i;:::-;48457:4;::::0;48448:13:::1;::::0;:6;:13:::1;:::i;:::-;48447:36;;;;:::i;:::-;48547:11;::::0;-1:-1:-1;;;;;48500:27:0;::::1;;::::0;;;:14:::1;:27;::::0;;;;;48422:61;;-1:-1:-1;48547:11:0;48500:44:::1;::::0;48422:61;;48500:44:::1;:::i;:::-;:58;48496:122;;;48575:31;::::0;-1:-1:-1;;;48575:31:0;;6089:2:1;48575:31:0::1;::::0;::::1;6071:21:1::0;6128:2;6108:18;;;6101:30;-1:-1:-1;;;6147:18:1;;;6140:51;6208:18;;48575:31:0::1;5887:345:1::0;48496:122:0::1;-1:-1:-1::0;;;;;48630:27:0;::::1;;::::0;;;:14:::1;:27;::::0;;;;:45;;48661:14;;48630:27;:45:::1;::::0;48661:14;;48630:45:::1;:::i;:::-;::::0;;;-1:-1:-1;48688:34:0::1;::::0;-1:-1:-1;48694:11:0;48707:14;48688:5:::1;:34::i;:::-;48740:64;::::0;;6411:25:1;;;6467:2;6452:18;;6445:34;;;-1:-1:-1;;;;;48740:64:0;::::1;::::0;48756:10:::1;::::0;48740:64:::1;::::0;6384:18:1;48740:64:0::1;;;;;;;48169:643;;48072:740:::0;;;:::o;48820:269::-;-1:-1:-1;;;;;48948:29:0;;;48903:7;48948:29;;;:17;:29;;;;;;;;48923:54;;;;;;;;;;;;;;;;;;;;;;;;;;48903:7;;48923:54;48903:7;;49031:18;;:2;:18;:::i;:::-;49023:4;;49014:13;;:6;:13;:::i;:::-;49013:36;;;;:::i;:::-;48988:61;48820:269;-1:-1:-1;;;;;48820:269:0:o;23699:220::-;22652:13;:11;:13::i;:::-;-1:-1:-1;;;;;23784:22:0;::::1;23780:93;;23830:31;::::0;-1:-1:-1;;;23830:31:0;;23858:1:::1;23830:31;::::0;::::1;2525:51:1::0;2498:18;;23830:31:0::1;2379:203:1::0;23780:93:0::1;23883:28;23902:8;23883:18;:28::i;:::-;23699:220:::0;:::o;42749:130::-;42834:37;42843:5;42850:7;42859:5;42866:4;42834:8;:37::i;:::-;42749:130;;;:::o;22931:166::-;22839:6;;-1:-1:-1;;;;;22839:6:0;17915:10;22991:23;22987:103;;23038:40;;-1:-1:-1;;;23038:40:0;;17915:10;23038:40;;;2525:51:1;2498:18;;23038:40:0;2379:203:1;44465:487:0;-1:-1:-1;;;;;37568:18:0;;;44565:24;37568:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;44632:37:0;;44628:317;;44709:5;44690:16;:24;44686:132;;;44742:60;;-1:-1:-1;;;44742:60:0;;-1:-1:-1;;;;;6710:32:1;;44742:60:0;;;6692:51:1;6759:18;;;6752:34;;;6802:18;;;6795:34;;;6665:18;;44742:60:0;6490:345:1;44686:132:0;44861:57;44870:5;44877:7;44905:5;44886:16;:24;44912:5;44861:8;:57::i;:::-;44554:398;44465:487;;;:::o;39324:308::-;-1:-1:-1;;;;;39408:18:0;;39404:88;;39450:30;;-1:-1:-1;;;39450:30:0;;39477:1;39450:30;;;2525:51:1;2498:18;;39450:30:0;2379:203:1;39404:88:0;-1:-1:-1;;;;;39506:16:0;;39502:88;;39546:32;;-1:-1:-1;;;39546:32:0;;39575:1;39546:32;;;2525:51:1;2498:18;;39546:32:0;2379:203:1;39502:88:0;39600:24;39608:4;39614:2;39618:5;39600:7;:24::i;20963:120::-;19926:16;:14;:16::i;:::-;21022:7:::1;:15:::0;;-1:-1:-1;;;;21022:15:0::1;::::0;;21053:22:::1;17915:10:::0;21062:12:::1;21053:22;::::0;-1:-1:-1;;;;;2543:32:1;;;2525:51;;2513:2;2498:18;21053:22:0::1;;;;;;;20963:120::o:0;41444:213::-;-1:-1:-1;;;;;41515:21:0;;41511:93;;41560:32;;-1:-1:-1;;;41560:32:0;;41589:1;41560:32;;;2525:51:1;2498:18;;41560:32:0;2379:203:1;41511:93:0;41614:35;41630:1;41634:7;41643:5;41614:7;:35::i;24079:191::-;24172:6;;;-1:-1:-1;;;;;24189:17:0;;;-1:-1:-1;;;;;;24189:17:0;;;;;;;24222:40;;24172:6;;;24189:17;24172:6;;24222:40;;24153:16;;24222:40;24142:128;24079:191;:::o;20704:118::-;19667:19;:17;:19::i;:::-;20764:7:::1;:14:::0;;-1:-1:-1;;;;20764:14:0::1;-1:-1:-1::0;;;20764:14:0::1;::::0;;20794:20:::1;20801:12;17915:10:::0;;17835:98;20221:132;20133:7;;-1:-1:-1;;;20133:7:0;;;;20283:63;;;20319:15;;-1:-1:-1;;;20319:15:0;;;;;;;;;;;28809:190;28937:53;;;-1:-1:-1;;;;;7098:15:1;;;28937:53:0;;;7080:34:1;7150:15;;7130:18;;;7123:43;7182:18;;;;7175:34;;;28937:53:0;;;;;;;;;;7015:18:1;;;;28937:53:0;;;;;;;;-1:-1:-1;;;;;28937:53:0;-1:-1:-1;;;28937:53:0;;;28910:81;;28930:5;;28910:19;:81::i;43730:443::-;-1:-1:-1;;;;;43843:19:0;;43839:91;;43886:32;;-1:-1:-1;;;43886:32:0;;43915:1;43886:32;;;2525:51:1;2498:18;;43886:32:0;2379:203:1;43839:91:0;-1:-1:-1;;;;;43944:21:0;;43940:92;;43989:31;;-1:-1:-1;;;43989:31:0;;44017:1;43989:31;;;2525:51:1;2498:18;;43989:31:0;2379:203:1;43940:92:0;-1:-1:-1;;;;;44042:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;44088:78;;;;44139:7;-1:-1:-1;;;;;44123:31:0;44132:5;-1:-1:-1;;;;;44123:31:0;;44148:5;44123:31;;;;1630:25:1;;1618:2;1603:18;;1484:177;44123:31:0;;;;;;;;43730:443;;;;:::o;49097:478::-;49192:30;49206:4;49212:2;49216:5;49192:13;:30::i;:::-;49268:17;;;;:39;;;;-1:-1:-1;;;;;;49289:18:0;;;;49268:39;49264:108;;;49324:29;;-1:-1:-1;;;49324:29:0;;7422:2:1;49324:29:0;;;7404:21:1;7461:2;7441:18;;;7434:30;-1:-1:-1;;;7480:18:1;;;7473:49;7539:18;;49324:29:0;7220:343:1;49264:108:0;49408:7;;49384:21;49443:13;36810:12;;;36731:99;49443:13;49426:30;;49480:13;49471:6;:22;49467:101;;;49517:39;;-1:-1:-1;;;49517:39:0;;;;;6411:25:1;;;6452:18;;;6445:34;;;6384:18;;49517:39:0;6237:248:1;49467:101:0;49181:394;;49097:478;;;:::o;20430:130::-;20133:7;;-1:-1:-1;;;20133:7:0;;;;20489:64;;20526:15;;-1:-1:-1;;;20526:15:0;;;;;;;;;;;31213:638;31637:23;31663:33;-1:-1:-1;;;;;31663:27:0;;31691:4;31663:27;:33::i;:::-;31637:59;;31711:10;:17;31732:1;31711:22;;:57;;;;;31749:10;31738:30;;;;;;;;;;;;:::i;:::-;31737:31;31711:57;31707:137;;;31792:40;;-1:-1:-1;;;31792:40:0;;-1:-1:-1;;;;;2543:32:1;;31792:40:0;;;2525:51:1;2498:18;;31792:40:0;2379:203:1;46075:381:0;46170:30;46184:4;46190:2;46194:5;46170:13;:30::i;:::-;-1:-1:-1;;;;;46217:18:0;;46213:236;;36810:12;;46003:4;;46252:17;;46309:13;36731:99;2803:153;2878:12;2910:38;2932:6;2940:4;2946:1;2910:21;:38::i;39956:1135::-;-1:-1:-1;;;;;40046:18:0;;40042:552;;40200:5;40184:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;40042:552:0;;-1:-1:-1;40042:552:0;;-1:-1:-1;;;;;40260:15:0;;40238:19;40260:15;;;;;;;;;;;40294:19;;;40290:117;;;40341:50;;-1:-1:-1;;;40341:50:0;;-1:-1:-1;;;;;6710:32:1;;40341:50:0;;;6692:51:1;6759:18;;;6752:34;;;6802:18;;;6795:34;;;6665:18;;40341:50:0;6490:345:1;40290:117:0;-1:-1:-1;;;;;40530:15:0;;:9;:15;;;;;;;;;;40548:19;;;;40530:37;;40042:552;-1:-1:-1;;;;;40610:16:0;;40606:435;;40776:12;:21;;;;;;;40606:435;;;-1:-1:-1;;;;;40992:13:0;;:9;:13;;;;;;;;;;:22;;;;;;40606:435;41073:2;-1:-1:-1;;;;;41058:25:0;41067:4;-1:-1:-1;;;;;41058:25:0;;41077:5;41058:25;;;;1630::1;;1618:2;1603:18;;1484:177;41058:25:0;;;;;;;;39956:1135;;;:::o;3291:398::-;3390:12;3443:5;3419:21;:29;3415:110;;;3472:41;;-1:-1:-1;;;3472:41:0;;3507:4;3472:41;;;2525:51:1;2498:18;;3472:41:0;2379:203:1;3415:110:0;3536:12;3550:23;3577:6;-1:-1:-1;;;;;3577:11:0;3596:5;3603:4;3577:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3535:73;;;;3626:55;3653:6;3661:7;3670:10;3626:26;:55::i;:::-;3619:62;3291:398;-1:-1:-1;;;;;;3291:398:0:o;4767:597::-;4915:12;4945:7;4940:417;;4969:19;4977:10;4969:7;:19::i;:::-;4940:417;;;5197:17;;:22;:49;;;;-1:-1:-1;;;;;;5223:18:0;;;:23;5197:49;5193:121;;;5274:24;;-1:-1:-1;;;5274:24:0;;-1:-1:-1;;;;;2543:32:1;;5274:24:0;;;2525:51:1;2498:18;;5274:24:0;2379:203:1;5193:121:0;-1:-1:-1;5335:10:0;5328:17;;5917:528;6050:17;;:21;6046:392;;6282:10;6276:17;6339:15;6326:10;6322:2;6318:19;6311:44;6046:392;6409:17;;-1:-1:-1;;;6409:17:0;;;;;;;;;;;206:250:1;291:1;301:113;315:6;312:1;309:13;301:113;;;391:11;;;385:18;372:11;;;365:39;337:2;330:10;301:113;;;-1:-1:-1;;448:1:1;430:16;;423:27;206:250::o;461:396::-;610:2;599:9;592:21;573:4;642:6;636:13;685:6;680:2;669:9;665:18;658:34;701:79;773:6;768:2;757:9;753:18;748:2;740:6;736:15;701:79;:::i;:::-;841:2;820:15;-1:-1:-1;;816:29:1;801:45;;;;848:2;797:54;;461:396;-1:-1:-1;;461:396:1:o;862:173::-;930:20;;-1:-1:-1;;;;;979:31:1;;969:42;;959:70;;1025:1;1022;1015:12;959:70;862:173;;;:::o;1040:254::-;1108:6;1116;1169:2;1157:9;1148:7;1144:23;1140:32;1137:52;;;1185:1;1182;1175:12;1137:52;1208:29;1227:9;1208:29;:::i;:::-;1198:39;1284:2;1269:18;;;;1256:32;;-1:-1:-1;;;1040:254:1:o;1299:180::-;1358:6;1411:2;1399:9;1390:7;1386:23;1382:32;1379:52;;;1427:1;1424;1417:12;1379:52;-1:-1:-1;1450:23:1;;1299:180;-1:-1:-1;1299:180:1:o;1666:186::-;1725:6;1778:2;1766:9;1757:7;1753:23;1749:32;1746:52;;;1794:1;1791;1784:12;1746:52;1817:29;1836:9;1817:29;:::i;1857:328::-;1934:6;1942;1950;2003:2;1991:9;1982:7;1978:23;1974:32;1971:52;;;2019:1;2016;2009:12;1971:52;2042:29;2061:9;2042:29;:::i;:::-;2032:39;;2090:38;2124:2;2113:9;2109:18;2090:38;:::i;:::-;2080:48;;2175:2;2164:9;2160:18;2147:32;2137:42;;1857:328;;;;;:::o;2866:260::-;2934:6;2942;2995:2;2983:9;2974:7;2970:23;2966:32;2963:52;;;3011:1;3008;3001:12;2963:52;3034:29;3053:9;3034:29;:::i;:::-;3024:39;;3082:38;3116:2;3105:9;3101:18;3082:38;:::i;:::-;3072:48;;2866:260;;;;;:::o;3131:380::-;3210:1;3206:12;;;;3253;;;3274:61;;3328:4;3320:6;3316:17;3306:27;;3274:61;3381:2;3373:6;3370:14;3350:18;3347:38;3344:161;;3427:10;3422:3;3418:20;3415:1;3408:31;3462:4;3459:1;3452:15;3490:4;3487:1;3480:15;3344:161;;3131:380;;;:::o;3862:127::-;3923:10;3918:3;3914:20;3911:1;3904:31;3954:4;3951:1;3944:15;3978:4;3975:1;3968:15;3994:416;4083:1;4120:5;4083:1;4134:270;4155:7;4145:8;4142:21;4134:270;;;4214:4;4210:1;4206:6;4202:17;4196:4;4193:27;4190:53;;;4223:18;;:::i;:::-;4273:7;4263:8;4259:22;4256:55;;;4293:16;;;;4256:55;4372:22;;;;4332:15;;;;4134:270;;;4138:3;3994:416;;;;;:::o;4415:806::-;4464:5;4494:8;4484:80;;-1:-1:-1;4535:1:1;4549:5;;4484:80;4583:4;4573:76;;-1:-1:-1;4620:1:1;4634:5;;4573:76;4665:4;4683:1;4678:59;;;;4751:1;4746:130;;;;4658:218;;4678:59;4708:1;4699:10;;4722:5;;;4746:130;4783:3;4773:8;4770:17;4767:43;;;4790:18;;:::i;:::-;-1:-1:-1;;4846:1:1;4832:16;;4861:5;;4658:218;;4960:2;4950:8;4947:16;4941:3;4935:4;4932:13;4928:36;4922:2;4912:8;4909:16;4904:2;4898:4;4895:12;4891:35;4888:77;4885:159;;;-1:-1:-1;4997:19:1;;;5029:5;;4885:159;5076:34;5101:8;5095:4;5076:34;:::i;:::-;5146:6;5142:1;5138:6;5134:19;5125:7;5122:32;5119:58;;;5157:18;;:::i;:::-;5195:20;;4415:806;-1:-1:-1;;;4415:806:1:o;5226:131::-;5286:5;5315:36;5342:8;5336:4;5315:36;:::i;5362:168::-;5435:9;;;5466;;5483:15;;;5477:22;;5463:37;5453:71;;5504:18;;:::i;5535:217::-;5575:1;5601;5591:132;;5645:10;5640:3;5636:20;5633:1;5626:31;5680:4;5677:1;5670:15;5708:4;5705:1;5698:15;5591:132;-1:-1:-1;5737:9:1;;5535:217::o;5757:125::-;5822:9;;;5843:10;;;5840:36;;;5856:18;;:::i;7568:277::-;7635:6;7688:2;7676:9;7667:7;7663:23;7659:32;7656:52;;;7704:1;7701;7694:12;7656:52;7736:9;7730:16;7789:5;7782:13;7775:21;7768:5;7765:32;7755:60;;7811:1;7808;7801:12;7850:287;7979:3;8017:6;8011:13;8033:66;8092:6;8087:3;8080:4;8072:6;8068:17;8033:66;:::i;:::-;8115:16;;;;;7850:287;-1:-1:-1;;7850:287:1:o
Swarm Source
ipfs://7b93c82f3e00f6a810da47c8e59e8e09584ab2775396f3538c07c0ab1cde0d7e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.