Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
SquintDoge Doge Squint Game
copy icon
ERC20
Token

SquintDoge Doge Squint Game

SquintDoge.sol is a decentralized, community-driven token that rewards holders with automatic liquidity generation and reflection, while also supporting charitable causes through donations. (autogenerated description)

*Visit desktop site to download or deploy

Last Publish

3/17/2023
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
enableTrading() :
This function enables trading and swaps by setting two boolean variables to true, and can only be called by the contract owner. (autogenerated documentation)
updateSwapTokensAtAmount(uint256) :
This function updates the amount of tokens to be swapped during transactions, with limits set by the total supply. Only the owner can call it. (autogenerated documentation)
updateMaxWalletAndTxnAmount(uint256,uint256) :
This function updates the maximum wallet and transaction amount, ensuring they are not set lower than 0.5% of the total supply. (autogenerated documentation)
excludeFromMaxTransaction(address,bool) :
This function allows the owner to exclude an address from the maximum transaction amount limit. (autogenerated documentation)
updateBuyFees(uint256,uint256) :
This function updates the buy fees for marketing and liquidity, ensuring they don't exceed 20%. Only the contract owner can call it. (autogenerated documentation)
updateSellFees(uint256,uint256) :
This function updates the fees for selling tokens, setting marketing and liquidity fees, and ensuring they don't exceed 99%. (autogenerated documentation)
excludeFromFees(address,bool) :
This function allows the contract owner to exclude an address from transaction fees by setting a boolean value in a mapping. (autogenerated documentation)
setAutomatedMarketMakerPair(address,bool) :
This function sets a pair as an automated market maker pair or removes it. Only the contract owner can call it. (autogenerated documentation)
_setAutomatedMarketMakerPair(address,bool) :
This function sets a boolean value for a given pair address in a mapping, indicating if it's an automated market maker pair or not. (autogenerated documentation)
isExcludedFromFees(address) :
This function checks if an account is excluded from transaction fees by returning a boolean value based on a mapping. (autogenerated documentation)
_transfer(address,address,uint256) :
This function transfers tokens while enforcing various conditions, including fees and maximum transaction amounts. It also triggers token swaps and calculates fees for liquidity and marketing. (autogenerated documentation)
swapTokensForEth(uint256) :
This function swaps a given amount of tokens for ETH using Uniswap V2 Router, with fee-on-transfer tokens support. (autogenerated documentation)
addLiquidity(uint256,uint256) :
This function adds liquidity to Uniswap by swapping tokens for ETH and creating a liquidity pool. (autogenerated documentation)
swapBack() :
This function swaps tokens for ETH, splits ETH for liquidity and marketing, adds liquidity, and sends ETH to marketing wallet. (autogenerated documentation)
_msgSender() :
This function returns the address of the message sender and is implemented as an internal view virtual function. (autogenerated documentation)
_msgData() :
This function returns the data of the current message as bytes. It is a virtual function that can be overridden in derived contracts. (autogenerated documentation)
owner() :
This function returns the address of the contract owner and is implemented as a virtual function. (autogenerated documentation)
renounceOwnership() :
This function allows the current owner to renounce ownership by transferring ownership to address(0), effectively making the contract ownerless. (autogenerated documentation)
transferOwnership(address) :
This function transfers ownership of the contract to a new address, as long as it's not the zero address. (autogenerated documentation)
_transferOwnership(address) :
This function transfers ownership of a contract to a new address by updating the owner variable and emitting an event. (autogenerated documentation)
totalSupply() :
This interface extends the IERC20 interface and adds metadata information about the token, such as name, symbol, and decimals. (autogenerated documentation)
balanceOf(address) :
This interface extends the IERC20 interface to include metadata about the token, such as its name, symbol, and decimals. (autogenerated documentation)
transfer(address,uint256) :
This interface extends IERC20 and adds metadata such as name, symbol, and decimals to the token. (autogenerated documentation)
allowance(address,address) :
This interface extends IERC20 and adds metadata information about the token such as name, symbol, and decimals. (autogenerated documentation)
approve(address,uint256) :
This interface extends IERC20 and adds metadata such as name, symbol, and decimals to the token. (autogenerated documentation)
transferFrom(address,address,uint256) :
This interface extends IERC20 and adds metadata information about the token, such as name, symbol, and decimals. (autogenerated documentation)
name() :
This contract defines an ERC20 token with metadata such as name, symbol, and decimals, implementing the IERC20 and IERC20Metadata interfaces. (autogenerated documentation)
symbol() :
This contract defines an ERC20 token with metadata such as symbol and decimals, and implements the necessary functions for token transfers. (autogenerated documentation)
decimals() :
This contract defines an ERC20 token with a function that returns the number of decimal places used for the token. (autogenerated documentation)
increaseAllowance(address,uint256) :
This function increases the allowance of a spender by a specified amount and updates the approval mapping. (autogenerated documentation)
decreaseAllowance(address,uint256) :
This function decreases the allowance of a spender by a specified amount, ensuring it doesn't go below zero. (autogenerated documentation)
_mint(address,uint256) :
This function mints new tokens to a specified account by increasing the total supply and updating the account balance. (autogenerated documentation)
_approve(address,address,uint256) :
This function approves a spender to spend a certain amount of tokens on behalf of an owner in the ERC20 contract. (autogenerated documentation)
_beforeTokenTransfer(address,address,uint256) :
This function is a hook that is called before a token transfer occurs, allowing for additional logic to be executed. (autogenerated documentation)
_afterTokenTransfer(address,address,uint256) :
This internal function is called after a token transfer and can be overridden to add custom logic. (autogenerated documentation)
tryAdd(uint256,uint256) :
This function adds two uint256 numbers and checks for overflow. If overflow occurs, it returns false and 0, otherwise it returns true and the sum. (autogenerated documentation)
trySub(uint256,uint256) :
This function subtracts b from a and returns a boolean indicating success and the result. If b is greater than a, it returns false and 0. (autogenerated documentation)
tryMul(uint256,uint256) :
This function multiplies two uint256 numbers and checks for overflow. It returns a boolean and the result of the multiplication. (autogenerated documentation)
tryDiv(uint256,uint256) :
This function divides two unsigned integers and returns a boolean indicating success and the result. It checks for division by zero. (autogenerated documentation)
tryMod(uint256,uint256) :
This function performs a modulo operation on two unsigned integers and returns a boolean indicating success and the result. (autogenerated documentation)
add(uint256,uint256) :
This function adds two unsigned integers and returns the result. It is an internal function and does not modify the state of the contract. (autogenerated documentation)
sub(uint256,uint256) :
This function subtracts the second input from the first input and returns the result. It is an internal function and does not modify state. (autogenerated documentation)
mul(uint256,uint256) :
This function multiplies two unsigned integers and returns the result. It uses the * operator to perform the multiplication. (autogenerated documentation)
div(uint256,uint256) :
This function divides two unsigned integers and returns the result. (autogenerated documentation)
mod(uint256,uint256) :
This function calculates the remainder of a division between two unsigned integers. (autogenerated documentation)
sub(uint256,uint256,string) :
This function subtracts b from a and throws an error message if b is greater than a. It uses unchecked to avoid overflow/underflow errors. (autogenerated documentation)
div(uint256,uint256,string) :
This function divides two uint256 numbers and throws an error message if the divisor is zero. It uses the unchecked keyword to save gas. (autogenerated documentation)
mod(uint256,uint256,string) :
This function calculates the remainder of a division between two uint256 numbers and throws an error message if the divisor is zero. (autogenerated documentation)
feeTo() :
This interface defines functions for interacting with Uniswap V2 pairs, including creating pairs and getting pair addresses. (autogenerated documentation)
feeToSetter() :
This interface defines functions for interacting with Uniswap V2 pairs, including creating pairs and setting fees. (autogenerated documentation)
getPair(address,address) :
This interface defines functions for creating and managing Uniswap V2 pairs, which are used for trading between two different tokens. (autogenerated documentation)
allPairs(uint256) :
This function returns the address of a Uniswap V2 pair given a pair ID. (autogenerated documentation)
allPairsLength() :
This function returns the total number of pairs on the Uniswap V2 exchange. It works by querying the exchange's smart contract. (autogenerated documentation)
createPair(address,address) :
The createPair function creates a new Uniswap V2 pair for two specified tokens. The setFeeTo and setFeeToSetter functions set the fee recipient and fee setter addresses, respectively. The IUniswapV2Pair interface provides access to the Uniswap V2 pair contract's functions. (autogenerated documentation)
setFeeTo(address) :
This interface defines two functions for setting the fee recipient and fee setter addresses for a Uniswap V2 pair. (autogenerated documentation)
setFeeToSetter(address) :
This function sets the fee receiver address for a Uniswap V2 pair. (autogenerated documentation)
DOMAIN_SEPARATOR() :
This interface defines the functions for interacting with the Uniswap V2 Router, which facilitates trades between different ERC20 tokens. (autogenerated documentation)
PERMIT_TYPEHASH() :
This interface defines the functions for interacting with the Uniswap V2 Router, which is used for swapping tokens on the Uniswap decentralized exchange. (autogenerated documentation)
nonces(address) :
This interface defines the functions for the Uniswap V2 Router, which is used for swapping tokens and providing liquidity on the Uniswap platform. (autogenerated documentation)
permit(address,address,uint256,uint256,uint8,bytes32,bytes32) :
This interface defines the functions for the Uniswap V2 Router, which allows for swapping and adding liquidity to Uniswap V2 pools. (autogenerated documentation)
MINIMUM_LIQUIDITY() :
This interface defines the functions for interacting with the Uniswap V2 Router, which facilitates trades between different tokens on the Uniswap platform. (autogenerated documentation)
factory() :
This interface defines the functions for interacting with the Uniswap V2 Router, which is used for swapping tokens on the Uniswap decentralized exchange. (autogenerated documentation)
token0() :
This interface defines the functions for interacting with the Uniswap V2 Router, which is used for swapping tokens on the Uniswap decentralized exchange. (autogenerated documentation)
token1() :
This interface defines the functions for interacting with the Uniswap V2 Router, which facilitates trades between different tokens on the Uniswap decentralized exchange. (autogenerated documentation)
getReserves() :
This interface defines functions for interacting with a Uniswap V2 router, which facilitates trades between different tokens on the Uniswap platform. (autogenerated documentation)
price0CumulativeLast() :
This interface defines functions for interacting with a Uniswap V2 Router, which facilitates trades between different tokens on the Uniswap platform. (autogenerated documentation)
price1CumulativeLast() :
This function swaps tokens on Uniswap V2, taking in the desired output amounts and outputting the input amounts needed. (autogenerated documentation)
kLast() :
This interface defines functions for interacting with the Uniswap V2 Router, which facilitates trades between different ERC20 tokens. (autogenerated documentation)
mint(address) :
This function swaps tokens on Uniswap V2, taking in the desired output amounts and outputting the corresponding input amounts. (autogenerated documentation)
swap(uint256,uint256,address) :
This function swaps tokens, either amount0 or amount1, for another token and sends it to the specified address. (autogenerated documentation)
skim(address) :
This interface defines functions for interacting with the Uniswap V2 Router, which facilitates trades on the Uniswap decentralized exchange. (autogenerated documentation)
sync() :
The "sync" function synchronizes the contract's state with the underlying blockchain. The "initialize" function sets initial values for the contract. The "IUniswapV2Router02" interface is for interacting with the Uniswap decentralized exchange. (autogenerated documentation)
initialize(address) :
The initialize function is not described enough to provide a brief explanation. The IUniswapV2Router02 interface is used for interacting with the Uniswap decentralized exchange. (autogenerated documentation)
WETH() :
This contract is for the SquintDoge token, which is an ERC20 token that is owned by the contract creator. (autogenerated documentation)
addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256) :
This contract is for the SquintDoge token, which is an ERC20 token with functions for adding liquidity and swapping tokens. (autogenerated documentation)
addLiquidityETH(address,uint256,uint256,uint256,address,uint256) :
This contract is for the SquintDoge token, which is an ERC20 token with functions for adding liquidity and swapping tokens/ETH. (autogenerated documentation)
swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256,uint256,address,uint256) :
This contract allows for swapping tokens and ETH while supporting fees on transfer tokens. (autogenerated documentation)
swapExactETHForTokensSupportingFeeOnTransferTokens(uint256,address,uint256) :
These functions allow users to swap ETH for tokens and tokens for ETH, while supporting fee-on-transfer tokens, on the SquintDoge contract. (autogenerated documentation)
swapExactTokensForETHSupportingFeeOnTransferTokens(uint256,uint256,address,uint256) :
This function swaps exact tokens for ETH, supporting fee on transfer tokens, using a specified path and minimum output amount. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconNo-Code Deploy
copy iconDownload Source
copy iconnpx cookbookdev i SquintDoge
copy icon

Bytecode

Download

Verification

Download

Last Publish

3/17/2023

Solidity Compiler

v0.8.16+commit.07a7930e

Version

1.0.0

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.