# Smart Token

{% hint style="info" %}
**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.
{% endhint %}

## Smart Token code

{% hint style="warning" %}
Attention: Note that despite the same code structure, the added address information varies and is never repeated on the mainnet and testnet.
{% endhint %}

{% tabs %}
{% tab title="Smart Token TESTNET BscScan" %}

```javascript
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")
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Smart Token MAINNET BscScan" %}

```javascript
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")
```

{% endtab %}
{% endtabs %}

## Understand the parameters&#x20;

`CONNECT` `https://dapp.tokenbank.exchange/`

#### Request Body

| Name                                          | Type   | Description                                                                                                                                                                                                         |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name<mark style="color:red;">\*</mark>        | string | Token Name                                                                                                                                                                                                          |
| symbol<mark style="color:red;">\*</mark>      | string | Token Symbol                                                                                                                                                                                                        |
| totalSupply<mark style="color:red;">\*</mark> | int    | Integer value with the total Supply generated when creating the token, do not use decimal places.                                                                                                                   |
| router<mark style="color:red;">\*</mark>      | String | Router contract address of the DEX used                                                                                                                                                                             |
| owner<mark style="color:red;">\*</mark>       | String | Smart contract owner wallet address                                                                                                                                                                                 |
| antiDump <mark style="color:red;">\*</mark>   | int    | maximum amount allowed for sale, after adding liquidity and if the lock is activated by the contract administrator                                                                                                  |
| feePool<mark style="color:red;">\*</mark>     | int    | % of fee converted to stablecoin and sent back to smart contract, replace "%" sign with "00", i.e. 2% would be 200                                                                                                  |
| feeAdm<mark style="color:red;">\*</mark>      | int    | % of fee converted to stablecoin and sent to admin, replace "%" sign with "00", i.e. 5% would be 500                                                                                                                |
| pair<mark style="color:red;">\*</mark>        | 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<mark style="color:red;">\*</mark>      | String | Stable coin smart contract address or token used to hold the fees applied to the contract e.g. BUSD, USDT, USDC, CAKE                                                                                               |
| wrapped <mark style="color:red;">\*</mark>    | String | Wrapped native token smart contract address, e.g. WBNB, WETH, WAVAX, WMATIC                                                                                                                                         |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

{% hint style="success" %}
**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...
{% endhint %}
