Address Contract Partially Verified
Address
0xF25B3dE8bA8129A5F335f071484F2ef8b0e40d7B
Balance
0 ETH
Nonce
1
Code Size
7932 bytes
Creator
0x0693FBf9...6256 at tx 0x8f8226a8...bd9b64
Indexed Transactions
0
Contract Bytecode
7932 bytes
0x608060405234801561001057600080fd5b50600436106101375760003560e01c806370a08231116100b8578063a457c2d71161007c578063a457c2d714610330578063a9059cbb14610360578063b61d43b114610390578063b753bfe9146103ae578063dd62ed3e146103cc578063f2fde38b146103fc57610137565b806370a082311461029c578063715018a6146102cc5780637e50c644146102d65780638da5cb5b146102f457806395d89b411461031257610137565b8063313ce567116100ff578063313ce567146101f657806339509351146102145780633e85713d1461024457806342966c6814610262578063603066a41461027e57610137565b806306fdde031461013c578063095ea7b31461015a5780630c900e901461018a57806318160ddd146101a857806323b872dd146101c6575b600080fd5b610144610418565b604051610151919061129f565b60405180910390f35b610174600480360381019061016f919061135a565b6104aa565b60405161018191906113b5565b60405180910390f35b6101926104c8565b60405161019f91906113df565b60405180910390f35b6101b06104e8565b6040516101bd91906113df565b60405180910390f35b6101e060048036038101906101db91906113fa565b6104f2565b6040516101ed91906113b5565b60405180910390f35b6101fe6105ea565b60405161020b9190611469565b60405180910390f35b61022e6004803603810190610229919061135a565b6105f3565b60405161023b91906113b5565b60405180910390f35b61024c61069f565b60405161025991906113df565b60405180910390f35b61027c60048036038101906102779190611484565b6106bf565b005b6102866106d3565b60405161029391906113df565b60405180910390f35b6102b660048036038101906102b191906114b1565b6106f3565b6040516102c391906113df565b60405180910390f35b6102d461073c565b005b6102de610750565b6040516102eb91906113df565b60405180910390f35b6102fc610770565b60405161030991906114ed565b60405180910390f35b61031a610799565b604051610327919061129f565b60405180910390f35b61034a6004803603810190610345919061135a565b61082b565b60405161035791906113b5565b60405180910390f35b61037a6004803603810190610375919061135a565b610916565b60405161038791906113b5565b60405180910390f35b610398610934565b6040516103a591906113df565b60405180910390f35b6103b6610954565b6040516103c391906113df565b60405180910390f35b6103e660048036038101906103e19190611508565b610974565b6040516103f391906113df565b60405180910390f35b610416600480360381019061041191906114b1565b6109fb565b005b60606004805461042790611577565b80601f016020809104026020016040519081016040528092919081815260200182805461045390611577565b80156104a05780601f10610475576101008083540402835291602001916104a0565b820191906000526020600020905b81548152906001019060200180831161048357829003601f168201915b5050505050905090565b60006104be6104b7610a7f565b8484610a87565b6001905092915050565b6012600a6104d6919061170b565b639ef21aaa6104e59190611756565b81565b6000600354905090565b60006104ff848484610c52565b6000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061054a610a7f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156105ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c190611822565b60405180910390fd5b6105de856105d6610a7f565b858403610a87565b60019150509392505050565b60006012905090565b6000610695610600610a7f565b84846002600061060e610a7f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546106909190611842565b610a87565b6001905092915050565b6012600a6106ad919061170b565b637f2815556106bc9190611756565b81565b6106d06106ca610a7f565b82610f03565b50565b6012600a6106e1919061170b565b63054c56396106f09190611756565b81565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6107446110c4565b61074e6000611142565b565b6012600a61075e919061170b565b634f790d5561076d9190611756565b81565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600580546107a890611577565b80601f01602080910402602001604051908101604052809291908181526020018280546107d490611577565b80156108215780601f106107f657610100808354040283529160200191610821565b820191906000526020600020905b81548152906001019060200180831161080457829003601f168201915b5050505050905090565b6000806002600061083a610a7f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156108f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ee9061190a565b60405180910390fd5b61090b610902610a7f565b85858403610a87565b600191505092915050565b600061092a610923610a7f565b8484610c52565b6001905092915050565b6012600a610942919061170b565b6369f6bc726109519190611756565b81565b6012600a610962919061170b565b6334fb5e396109719190611756565b81565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610a036110c4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6a9061199c565b60405180910390fd5b610a7c81611142565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610af7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aee90611a2e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5e90611ac0565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610c4591906113df565b60405180910390a3505050565b60008111610c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8c90611b2c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfc90611bbe565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6c90611c50565b60405180910390fd5b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610dfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df390611ce2565b60405180910390fd5b818103600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e919190611842565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610ef591906113df565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6a90611d74565b60405180910390fd5b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff190611e06565b60405180910390fd5b818103600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600360008282546110529190611e26565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516110b791906113df565b60405180910390a3505050565b6110cc610a7f565b73ffffffffffffffffffffffffffffffffffffffff166110ea610770565b73ffffffffffffffffffffffffffffffffffffffff1614611140576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113790611ea6565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611240578082015181840152602081019050611225565b8381111561124f576000848401525b50505050565b6000601f19601f8301169050919050565b600061127182611206565b61127b8185611211565b935061128b818560208601611222565b61129481611255565b840191505092915050565b600060208201905081810360008301526112b98184611266565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112f1826112c6565b9050919050565b611301816112e6565b811461130c57600080fd5b50565b60008135905061131e816112f8565b92915050565b6000819050919050565b61133781611324565b811461134257600080fd5b50565b6000813590506113548161132e565b92915050565b60008060408385031215611371576113706112c1565b5b600061137f8582860161130f565b925050602061139085828601611345565b9150509250929050565b60008115159050919050565b6113af8161139a565b82525050565b60006020820190506113ca60008301846113a6565b92915050565b6113d981611324565b82525050565b60006020820190506113f460008301846113d0565b92915050565b600080600060608486031215611413576114126112c1565b5b60006114218682870161130f565b93505060206114328682870161130f565b925050604061144386828701611345565b9150509250925092565b600060ff82169050919050565b6114638161144d565b82525050565b600060208201905061147e600083018461145a565b92915050565b60006020828403121561149a576114996112c1565b5b60006114a884828501611345565b91505092915050565b6000602082840312156114c7576114c66112c1565b5b60006114d58482850161130f565b91505092915050565b6114e7816112e6565b82525050565b600060208201905061150260008301846114de565b92915050565b6000806040838503121561151f5761151e6112c1565b5b600061152d8582860161130f565b925050602061153e8582860161130f565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061158f57607f821691505b602082108114156115a3576115a2611548565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b600185111561162f5780860481111561160b5761160a6115a9565b5b600185161561161a5780820291505b8081029050611628856115d8565b94506115ef565b94509492505050565b6000826116485760019050611704565b816116565760009050611704565b816001811461166c5760028114611676576116a5565b6001915050611704565b60ff841115611688576116876115a9565b5b8360020a91508482111561169f5761169e6115a9565b5b50611704565b5060208310610133831016604e8410600b84101617156116da5782820a9050838111156116d5576116d46115a9565b5b611704565b6116e784848460016115e5565b925090508184048111156116fe576116fd6115a9565b5b81810290505b9392505050565b600061171682611324565b91506117218361144d565b925061174e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611638565b905092915050565b600061176182611324565b915061176c83611324565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156117a5576117a46115a9565b5b828202905092915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b600061180c602883611211565b9150611817826117b0565b604082019050919050565b6000602082019050818103600083015261183b816117ff565b9050919050565b600061184d82611324565b915061185883611324565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561188d5761188c6115a9565b5b828201905092915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006118f4602583611211565b91506118ff82611898565b604082019050919050565b60006020820190508181036000830152611923816118e7565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611986602683611211565b91506119918261192a565b604082019050919050565b600060208201905081810360008301526119b581611979565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000611a18602483611211565b9150611a23826119bc565b604082019050919050565b60006020820190508181036000830152611a4781611a0b565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000611aaa602283611211565b9150611ab582611a4e565b604082019050919050565b60006020820190508181036000830152611ad981611a9d565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74207a65726f0000000000600082015250565b6000611b16601b83611211565b9150611b2182611ae0565b602082019050919050565b60006020820190508181036000830152611b4581611b09565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000611ba8602583611211565b9150611bb382611b4c565b604082019050919050565b60006020820190508181036000830152611bd781611b9b565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000611c3a602383611211565b9150611c4582611bde565b604082019050919050565b60006020820190508181036000830152611c6981611c2d565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000611ccc602683611211565b9150611cd782611c70565b604082019050919050565b60006020820190508181036000830152611cfb81611cbf565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000611d5e602183611211565b9150611d6982611d02565b604082019050919050565b60006020820190508181036000830152611d8d81611d51565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000611df0602283611211565b9150611dfb82611d94565b604082019050919050565b60006020820190508181036000830152611e1f81611de3565b9050919050565b6000611e3182611324565b9150611e3c83611324565b925082821015611e4f57611e4e6115a9565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611e90602083611211565b9150611e9b82611e5a565b602082019050919050565b60006020820190508181036000830152611ebf81611e83565b905091905056fea26469706673582212202a3b124aba93c4884ff63efa3ebfbd5037fe1a4e51e4ea0306827ead6c0eab6264736f6c63430008090033
Verified Source Code Partial Match
Compiler: v0.8.9+commit.e5eed63a
EVM: london
Optimization: No
Token.sol 421 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
/**
* @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 amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
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);
}
/**
* @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;
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev 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 {
require(owner() == _msgSender(), 'Ownable: caller is not the owner');
}
/**
* @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 {
require(newOwner != address(0), 'Ownable: new owner is the zero address');
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
contract Token is Context, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private constant _decimals = 18;
uint256 public constant presaleReserve = 2_666_666_666 * (10 ** _decimals);
uint256 public constant stakingReserve = 1_777_777_778 * (10 ** _decimals);
uint256 public constant marketingReserve = 2_133_333_333 * (10 ** _decimals);
uint256 public constant communityRewardsReserve = 1_333_333_333 * (10 ** _decimals);
uint256 public constant liquidityReserve = 888_888_889 * (10 ** _decimals);
uint256 public constant foundationReserve = 88_888_889 * (10 ** _decimals);
/**
* @dev Contract constructor.
*/
constructor() {
_name = 'Dawgz AI';
_symbol = 'DAGZ';
_mint(0x0693FBf94a7623FdB12E87C044DDa42DA2866256, presaleReserve);
_mint(0x0693FBf94a7623FdB12E87C044DDa42DA2866256, stakingReserve);
_mint(0x0693FBf94a7623FdB12E87C044DDa42DA2866256, marketingReserve);
_mint(0x0693FBf94a7623FdB12E87C044DDa42DA2866256, communityRewardsReserve);
_mint(0x0693FBf94a7623FdB12E87C044DDa42DA2866256, liquidityReserve);
_mint(0x0693FBf94a7623FdB12E87C044DDa42DA2866256, foundationReserve);
}
/**
* @dev Returns the name of the token.
* @return The name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token.
* @return The symbol of the token.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used for token display.
* @return The number of decimals.
*/
function decimals() public view virtual override returns (uint8) {
return _decimals;
}
/**
* @dev Returns the total supply of the token.
* @return The total supply.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev Returns the balance of the specified account.
* @param account The address to check the balance for.
* @return The balance of the account.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev Transfers tokens from the caller to a specified recipient.
* @param recipient The address to transfer tokens to.
* @param amount The amount of tokens to transfer.
* @return A boolean value indicating whether the transfer was successful.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev Returns the amount of tokens that the spender is allowed to spend on behalf of the owner.
* @param from The address that approves the spending.
* @param to The address that is allowed to spend.
* @return The remaining allowance for the spender.
*/
function allowance(address from, address to) public view virtual override returns (uint256) {
return _allowances[from][to];
}
/**
* @dev Approves the specified address to spend the specified amount of tokens on behalf of the caller.
* @param to The address to approve the spending for.
* @param amount The amount of tokens to approve.
* @return A boolean value indicating whether the approval was successful.
*/
function approve(address to, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), to, amount);
return true;
}
/**
* @dev Transfers tokens from one address to another.
* @param sender The address to transfer tokens from.
* @param recipient The address to transfer tokens to.
* @param amount The amount of tokens to transfer.
* @return A boolean value indicating whether the transfer was successful.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, 'ERC20: transfer amount exceeds allowance');
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
/**
* @dev Increases the allowance of the specified address to spend tokens on behalf of the caller.
* @param to The address to increase the allowance for.
* @param addedValue The amount of tokens to increase the allowance by.
* @return A boolean value indicating whether the increase was successful.
*/
function increaseAllowance(address to, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), to, _allowances[_msgSender()][to] + addedValue);
return true;
}
/**
* @dev Decreases the allowance granted by the owner of the tokens to `to` account.
* @param to The account allowed to spend the tokens.
* @param subtractedValue The amount of tokens to decrease the allowance by.
* @return A boolean value indicating whether the operation succeeded.
*/
function decreaseAllowance(address to, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][to];
require(currentAllowance >= subtractedValue, 'ERC20: decreased allowance below zero');
unchecked {
_approve(_msgSender(), to, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Transfers `amount` tokens from `sender` to `recipient`.
* @param sender The account to transfer tokens from.
* @param recipient The account to transfer tokens to.
* @param amount The amount of tokens to transfer.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(amount > 0, 'ERC20: transfer amount zero');
require(sender != address(0), 'ERC20: transfer from the zero address');
require(recipient != address(0), 'ERC20: transfer to the zero address');
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, 'ERC20: transfer amount exceeds balance');
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
}
/**
* @dev Creates `amount` tokens and assigns them to `account`.
* @param account The account to assign the newly created tokens to.
* @param amount The amount of tokens to create.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), 'ERC20: mint to the zero address');
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the total supply.
* @param account The account to burn tokens from.
* @param amount The amount of tokens to burn.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), 'ERC20: burn from the zero address');
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, 'ERC20: burn amount exceeds balance');
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
}
/**
* @dev Destroys `amount` tokens from the caller's account, reducing the total supply.
* @param amount The amount of tokens to burn.
*/
function burn(uint256 amount) external {
_burn(_msgSender(), amount);
}
/**
* @dev Sets `amount` as the allowance of `to` over the caller's tokens.
* @param from The account granting the allowance.
* @param to The account allowed to spend the tokens.
* @param amount The amount of tokens to allow.
*/
function _approve(address from, address to, uint256 amount) internal virtual {
require(from != address(0), 'ERC20: approve from the zero address');
require(to != address(0), 'ERC20: approve to the zero address');
_allowances[from][to] = amount;
emit Approval(from, to, amount);
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
communityRewardsReserve 0x7e50c644 → uint256
decimals 0x313ce567 → uint8
foundationReserve 0x603066a4 → uint256
liquidityReserve 0xb753bfe9 → uint256
marketingReserve 0x3e85713d → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
presaleReserve 0x0c900e90 → uint256
stakingReserve 0xb61d43b1 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 8 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
decreaseAllowance 0xa457c2d7
address to
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address to
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Token Balances (1)
View Transfers →Recent Transactions
No transactions found for this address