0x79c7909097a2a5cedb8da900e3192cee671521a6
tryBuy
This smart contract is mainly used to create new tokens and execute trades.
Address on BSC
0xEC4549caDcE5DA21Df6E6422d448034B5233bFbC
ABI File
TokenManager.lite.abi
purchaseTokenAMAP(address token, uint256 funds, uint256 minAmount)
If the user wants to buy a specific amount of BNB worth of tokens.
token
: Token addressfunds
: Amount of BNBminAmount
: Minimum amount of tokens to be purchased if the price changespurchaseToken(address token, uint256 amount, uint256 maxFunds)
If the user wants to buy a specific amount of tokens.
token
: Token addressamount
: Amount of tokensmaxFunds
: Maximum amount of BNB to be spent if the price changessellToken(address token, uint256 amount)
If the user wants to sell tokens.
token
: Token addressamount
: Amount of tokensTokenCreate(address creator, address token, uint256 requestId, string name, string symbol, uint256 totalSupply, uint256 launchTime)
Emitted when a new token is created.
creator
: Address of the token creatortoken
: Address of the created tokenrequestId
: Unique identifier for the token creation requestname
: Name of the tokensymbol
: Symbol of the tokentotalSupply
: Total supply of the tokenlaunchTime
: Launch time of the tokenTokenPurchase(address token, address account, uint256 tokenAmount, uint256 etherAmount)
Emitted when tokens are purchased.
token
: Address of the token purchasedaccount
: Address of the buyertokenAmount
: Amount of tokens purchasedetherAmount
: Amount of BNB spent on the purchaseTokenSale(address token, address account, uint256 tokenAmount, uint256 etherAmount)
Emitted when tokens are sold.
token
: Address of the token soldaccount
: Address of the sellertokenAmount
: Amount of tokens soldetherAmount
: Amount of BNB received from the saleTokenManager2 is V2 of TokenManager, which is a significant upgrade that now supports the features of purchasing tokens using both BNB and BEP20.
Address on BSC
0x5c952063c7fc8610FFDB798152D69F0B9550762b
ABI File
TokenManager2.lite.abi
buyTokenAMAP(address token, uint256 funds, uint256 minAmount)
If the user wants to buy a specific amount of BNB worth of tokens for msg.sender.
token
: Token addressfunds
: Amount of BNBminAmount
: Minimum amount of tokens to be purchased if the price changesbuyTokenAMAP(address token, address to, uint256 funds, uint256 minAmount)
If the user wants to buy a specific amount of BNB worth of tokens for another recipient.
token
: Token addressto
: Specific recipient of the tokenfunds
: Amount of BNBminAmount
: Minimum amount of tokens to be purchased if the price changesbuyToken(address token, uint256 amount, uint256 maxFunds)
If the user wants to buy a specific amount of tokens for msg.sender.
token
: Token addressamount
: Amount of tokensmaxFunds
: Maximum amount of BNB that could be spent if the price changesbuyToken(address token, address to, uint256 amount, uint256 maxFunds)
If the user wants to buy a specific amount of tokens for another recipient.
token
: Token addressto
: Recipient of the tokenamount
: Amount of tokensmaxFunds
: Maximum amount of BNB that could be spent if the price changessellToken(address token, uint256 amount)
If the user wants to sell tokens.
token
: Token addressamount
: Amount of tokensTokenCreate(address creator, address token, uint256 requestId, string name, string symbol, uint256 totalSupply, uint256 launchTime, uint256 launchFee)
Emitted when a new token is created.
creator
: Address of the creator of the tokentoken
: Address of the newly created tokenrequestId
: Unique request ID for the creationname
: Name of the tokensymbol
: Symbol of the tokentotalSupply
: Total supply of the tokenlaunchTime
: Timestamp when the token was launchedlaunchFee
: Fee paid for launching the tokenTokenPurchase(address token, address account, uint256 price, uint256 amount, uint256 cost, uint256 fee, uint256 offers, uint256 funds)
TokenSale(address token, address account, uint256 price, uint256 amount, uint256 cost, uint256 fee, uint256 offers, uint256 funds)
TradeStop(address token)
LiquidityAdded(address base, uint256 offers, address quote, uint256 funds)