Launchpad Contract
struct AgentInfo {
address tokenAddress;
address creator;
string agentId;
string name;
string symbol;
string metadata;
uint256 createdAt;
uint256 totalRaised;
uint256 marketCap;
bool tradingEnabled;
bool graduated;
}
struct BondingCurve {
uint256 virtualBNBReserve; // Virtual BNB reserve for constant product
uint256 virtualTokenReserve; // Virtual token reserve for constant product
uint256 k; // Constant product (k = virtualBNB × virtualToken)
uint256 realBNBReserve; // Actual BNB collected from buys
uint256 realTokenReserve; // Actual tokens available for sale
uint256 soldTokens; // Tokens sold so far
uint256 graduationThreshold; // BNB amount to graduate to DEX
}Last updated