EveryDocumentation Index
Fetch the complete documentation index at: https://actfun.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
TokenLauncher exposes a set of read-only functions and public state variables you can query at no cost. Use them to build dashboards, preflight transactions, and display real-time state in your UI. None of these calls modify state or emit events.
Mining progress
totalMined) and the total mineable supply (mineableSupply). Progress is complete when mined == total, at which point the token has graduated (or will graduate on the next mine call).
Example:
Token price
0 if the token has not graduated yet (!graduated) or if tokenReserve == 0.
Example:
Trade estimation
estimateBuy
tokensOut tokens. Reverts with "Insufficient liquidity" if tokensOut >= tokenReserve.
Desired token output in units with 18 decimals.
estimateSell
tokensIn tokens. Does not revert for any input value.
Tokens to sell in units with 18 decimals.
Per-wallet mining limits
getTimeUntilNextMine
user can mine again. Returns 0 if the cooldown has elapsed or if user has never mined.
Wallet address to check.
getRemainingDailyAllowance
user can still mine within the current 24-hour rolling window, in units with 18 decimals. Returns dailyMax if the window has fully reset (i.e. block.timestamp >= dailyWindowStart[user] + 24 hours).
Wallet address to check.
Public state variables
The following variables arepublic and readable via their auto-generated getters. All values with 18-decimal token units are noted.
| Variable | Type | Description |
|---|---|---|
graduated | bool | true after Phase 1 mining is complete and the AMM is active. |
totalMined | uint256 | Total tokens minted through mine() so far (18 decimals). |
mineableSupply | uint256 | 95% of maxSupply, rounded to a whole multiple of mineAmount (18 decimals). |
lpReserve | uint256 | 5% of maxSupply reserved for AMM seeding on graduation (18 decimals). |
tokenReserve | uint256 | Current token balance of the AMM pool (18 decimals). 0 before graduation. |
arcReserve | uint256 | Current ARC balance of the AMM pool (wei). 0 before graduation. |
mineAmount | uint256 | Tokens minted per mine() call (18 decimals). Immutable. |
cooldownSeconds | uint256 | Per-wallet cooldown between mine calls in seconds. Immutable. |
dailyMax | uint256 | Per-wallet 24h mining cap in tokens (18 decimals). Immutable. |
feePerMine | uint256 | ARC (wei) required per mine() call. Immutable. |
creator | address | Wallet that deployed this token via createToken. Immutable. |
createdAt | uint256 | Unix timestamp of the block in which this launcher was deployed. Immutable. |
tokenReserve and arcReserve are 0 before graduation. Do not use getTokenPrice, estimateBuy, or estimateSell before graduated == true — getTokenPrice returns 0, while estimateBuy and estimateSell will return 0 or compute against zero reserves.