Smart Token

Token building with fee rules on stablecoins, buybacks with or without burn, antidump controls, whitelist controls, and administration levels.

Copy and modify: Copy the sample code and make the necessary changes as instructed in this documentation. Always do your tests using the testnet network before publishing on mainnet.

Smart Token code

Attention: Note that despite the same code structure, the added address information varies and is never repeated on the mainnet and testnet.

new contract
contract.token erc20=> (
  {
     name : "Token Name",
     symbol : "BTCX",
     totalSupply : 24000000,
     feeAdm : 500,
     feePool : 200,
     antiDump : 1000000,
     owner : "0x8f890dF9fE06B41D89f9b9c53e8D68791fF2828c",
     router : "0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3",
     wrapped : "0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",
     stable : "0x78867BbEeF44f2326bF8DDd1941a4439382EF2A7",
     pair : "0xe0e92035077c39594793e61802a350347c320cf2"
  }
)
contract.token deploy=> ("testnet")
new contract
contract.token erc20=> (
  {
     name : "Smart Token",
     symbol : "SBTC",
     totalSupply : 25000000,
     feeAdm : 200,
     feePool : 400,
     antiDump : 1000000,
     owner : "0x8f890dF9fE06B41D89f9b9c53e8D68791fF2828c",
     router : "0x10ED43C718714eb63d5aA57B78B54704E256024E",
     wrapped : "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
     stable : "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56",
     pair : "0x58F876857a02D6762E0101bb5C46A8c1ED44Dc16"
  }
)
contract.token deploy=> ("mainnet")

Understand the parameters

CONNECT https://dapp.tokenbank.exchange/

Request Body

NameTypeDescription

name*

string

Token Name

symbol*

string

Token Symbol

totalSupply*

int

Integer value with the total Supply generated when creating the token, do not use decimal places.

router*

String

Router contract address of the DEX used

owner*

String

Smart contract owner wallet address

antiDump *

int

maximum amount allowed for sale, after adding liquidity and if the lock is activated by the contract administrator

feePool*

int

% of fee converted to stablecoin and sent back to smart contract, replace "%" sign with "00", i.e. 2% would be 200

feeAdm*

int

% of fee converted to stablecoin and sent to admin, replace "%" sign with "00", i.e. 5% would be 500

pair*

String

Address of the LP Token of the liquidity pool integrated into the contract, to obtain this address just add a few cents of liquidity dollars with the native currency of the blockchain used / chosen stablecoin...

stable*

String

Stable coin smart contract address or token used to hold the fees applied to the contract e.g. BUSD, USDT, USDC, CAKE

wrapped *

String

Wrapped native token smart contract address, e.g. WBNB, WETH, WAVAX, WMATIC

{
    // Response
}

LP Token Address: Address of the LP Token of the liquidity pool integrated into the contract, to obtain this address just add a few cents of liquidity dollars with the native currency of the blockchain used / chosen stablecoin. Example: When adding liquidity to Pancakeswap using the pair BNB / BUSD , you will receive an amount of LPTokens for this pool, this will be the address of the liquidity pool you should use...

Last updated