Panda Token
PandaToken
ERC20-compliant token with bonding curve mechanics and permit functionality.
Core Functions
Token Information
name
function name() public view returns (string memory)Returns the token name.
symbol
function symbol() public view returns (string memory)Returns the token symbol.
Token Operations
transfer
function transfer(
address to,
uint256 amount
) public returns (bool)Transfer tokens to a specified address.
Parameters:
to: Recipient addressamount: Amount of tokens to transfer
Returns:
trueif transfer successful
Errors:
PandaToken: INVALID_TRANSFER- When transferring to DEX pair before graduation
approve
Approve address to spend tokens.
Parameters:
spender: Address to approveamount: Amount of tokens to approve
Returns:
trueif approval successful
permit
Approve spending using a signature (EIP-2612).
Parameters:
owner: Token owner addressspender: Spender addressvalue: Amount to approvedeadline: Timestamp after which permit is invalidv,r,s: Signature components
DEX Information
dexPair
Returns the DEX pair address for this token.
Returns:
Address of the token's DEX trading pair
State Information
graduated
Returns whether the token has graduated to DEX trading.
getCurrentPrice
Returns the current price from the bonding curve.
Trading Functions
Inherits all trading functions from PandaPool:
buyTokensbuyTokensWithBerasellTokenssellTokensForBera
See PandaPool documentation for detailed trading function specifications.
Events
Standard ERC20 Events
Graduation Event
Emitted when the token graduates to DEX trading.
Last updated