Contract requirements
Last updated
Last updated
Bot interacting with these functions:
onlyOwner()
openTrading()
decimals()
approve()
getBalances()
totalSupply()
symbol()
checkIsAddressWhitelistedGroup()
addToWhitelistGroup()
balanceOf()
As you can see most of them are basic but its important to check if naming of those functions is correct in your contract and if there is no different logic of solidity SC. However, we have few functions that are unique and made by us:
checkIsAddressWhitelistedGroup()
If your contract has whitelisting functionality, replace this _isExcludedFromFee
variable with one that contains the list of whitelisted addresses in your contract:
Otherwise, create this variable:
addToWhitelistGroup()
Similar to the example above:
openTrading()
Calling this function is for convenience and is not required for the application to function.
If your contract does not provide for opening trades through a function, simply create an empty function with the specified name like this:
If your contract has a trading opening function:
if you want to call it yourself, just add an empty openTrading
function as in the example above (if your original function is also called openTrading
, you should rename it);
if you want the application to call this function automatically right before creating a liquidity pool and sending bundle transactions, make sure that it has the specified name openTrading
:
getBalances()
if in your contract the variable containing the balance of tokens on wallets is called differently, replace this _balances
with the correct name:
Those functions must be in your contract, you can take a look at our contract (Pinned to top of page) with function's logic and modify your contract.
If you have special need for contract and want to make sure it wont have any problems - DM developers or mods of Primum. (all contacts in link section)