Skip to content

dannyscan/smart-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DAN Basic Smart Contract

Public / External Functions Function Description

  • name() Returns the token name
  • symbol() Returns the token symbol
  • decimals() Returns token decimals
  • totalSupply() Returns total token supply
  • balanceOf(address) Returns wallet balance
  • transfer(address,uint256) Transfers tokens
  • allowance(address,address) Checks allowance
  • approve(address,uint256) Approves token allowance
  • transferFrom(address,address,uint256) Transfers tokens using allowance
  • owner() Returns contract owner
  • transferOwnership(address) Transfers ownership
  • renounceOwnership() Renounces ownership
  • rescueBalance(address) Withdraws native coins from contract
  • rescueToken(address,address) Withdraws ERC20 tokens sent to contract

Internal Functions

Function Description
_transfer() Internal transfer logic
_update() Updates balances and supply
_mint() Mints tokens
_approve() Sets allowance
_spendAllowance() Spends allowance

Functions Not Included

❌ No additional mint function after deployment
❌ No burn function
❌ No pause function
❌ No blacklist system
❌ No tax mechanism
❌ No hidden backdoor
❌ No wallet freeze function

Contract Features

✅ Fixed Supply
✅ Ownership System
✅ ERC20 Standard
✅ Rescue Native Coin
✅ Rescue ERC20 Tokens
✅ Compatible with DEXs, Wallets, and Explorers

Initial Supply 100,000,000 Tokens Minted once during deployment only.

DAN Burn Contract

The DAN20 contract includes the following main functions.

Public / External Functions

Function Description

  • name() Returns the token name
  • symbol() Returns the token symbol
  • decimals() Returns the token decimals
  • totalSupply() Returns total token supply
  • balanceOf(address) Returns wallet token balance
  • transfer(address,uint256) Transfers tokens
  • approve(address,uint256) Approves allowance
  • allowance(address,address) Returns allowance amount
  • transferFrom(address,address,uint256) Transfers using allowance
  • owner() Returns contract owner
  • transferOwnership(address) Transfers ownership
  • renounceOwnership() Renounces ownership
  • burn(uint256) Burns own tokens
  • burnFrom(address,uint256) Burns tokens using allowance
  • rescueBalance(address) Withdraws native coin
  • rescueToken(address,address) Withdraws tokens stuck in contract

Internal Functions

Function Purpose

  • _transfer() Handles transfers
  • _update() Updates balances
  • _mint() Creates tokens
  • _burn() Burns tokens
  • _approve() Sets allowance
  • _spendAllowance() Reduces allowance
    Functions NOT Included

This contract does NOT include:

❌ Mint after deployment
❌ Pause
❌ Blacklist
❌ Tax system
❌ Anti-bot
❌ Max wallet
❌ Max transaction
❌ Upgradeability

Token Supply

Initial supply minted during deployment: 100000000×10 18 = 100 million tokens with 18 decimals.

Mint Burn Blacklist

Main Functions

  • ERC20 Standard Functions
  • Function Description
  • transfer() Send tokens
  • approve() Approve spender
  • transferFrom() Transfer using allowance
  • balanceOf() Check balance
  • allowance() Check allowance
  • totalSupply() Total token supply

Additional Features

✅ Mintable
✅ Burnable
✅ Blacklist system
✅ Ownable
✅ Receive native coin
✅ Custom decimals (8)
✅ Infinite allowance support

About

smart contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors