Kodiak Finance
  • OVERVIEW
    • 🐻‍❄️Introducing Kodiak
    • 🐻Kodiak x Berachain
    • ✉️Contact Us
    • 🍯Kodiak Contracts
  • 🅱️Kodiak-Boyco
  • PROTOCOL
    • 🔃DEX
      • Swaps
      • Liquidity Provision
      • Trading Fees
    • 🏝️Islands
      • Island Liquidity Provision
      • Sweetened Islands
      • Island Mechanics
        • Auto-BGT
        • Real-time Security
        • Rebalancing
        • Strategies
    • 🐼Panda Factory
  • 🪙Tokenomics
    • Kodiak Pre-TGE Rewards
  • 🧠User Guide
    • Launch a Token Launch on Panda Factory
    • Trading on Panda Factory
    • Swap
    • Create a V2 Position
    • Create a V3 Position
    • Add/Stake Islands Liquidity
    • Migrating to a Reward Vault
    • Deploying new Permissonless Islands
    • Deploying and Configuring a Kodiak Farm
    • Add your token
  • Add Your Project to the Ecosystem
  • 👨‍💻Developers
    • 🐼Panda
      • Technical Integration Guide
      • Subgraph
        • Entity Reference
        • Query Guide
        • Advanced Usage Guide
      • Smart Contract Reference
        • Panda Factory
        • Panda Pool
        • Panda Token
      • Api
    • Farms
      • Technical Integration Guide
      • Smart Contract Reference
    • 🌴Kodiak Islands
      • Technical Integration Guide
        • Understanding Token Deposit Ratio
      • Subgraph
        • Entity Reference
        • Query Guide
        • Advanced Usage Guide
      • Smart Contract Reference
        • Kodiak Island Factory
        • Kodiak Island
        • Kodiak Island Router
      • Api
    • 💰Pricing with Subgraph
    • 💱Quotes
    • Backend
  • 🛡️SECURITY
    • 🔍Audits
    • Page
  • ℹ️Informational
    • 📜Terms of Use
    • 🔏Privacy Policy
    • TradingView Advanced License
Powered by GitBook
On this page
  • PandaToken
  • Core Functions
  • Events
  1. Developers
  2. Panda
  3. Smart Contract Reference

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 address

  • amount: Amount of tokens to transfer

Returns:

  • true if transfer successful

Errors:

  • PandaToken: INVALID_TRANSFER - When transferring to DEX pair before graduation

approve

function approve(
    address spender,
    uint256 amount
) public returns (bool)

Approve address to spend tokens.

Parameters:

  • spender: Address to approve

  • amount: Amount of tokens to approve

Returns:

  • true if approval successful

permit

function permit(
    address owner,
    address spender,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
) public

Approve spending using a signature (EIP-2612).

Parameters:

  • owner: Token owner address

  • spender: Spender address

  • value: Amount to approve

  • deadline: Timestamp after which permit is invalid

  • v, r, s: Signature components

DEX Information

dexPair

function dexPair() public view returns (address)

Returns the DEX pair address for this token.

Returns:

  • Address of the token's DEX trading pair

State Information

graduated

function graduated() public view returns (bool)

Returns whether the token has graduated to DEX trading.

getCurrentPrice

function getCurrentPrice() public view returns (uint256)

Returns the current price from the bonding curve.

Trading Functions

Inherits all trading functions from PandaPool:

  • buyTokens

  • buyTokensWithBera

  • sellTokens

  • sellTokensForBera

See PandaPool documentation for detailed trading function specifications.

Events

Standard ERC20 Events

event Transfer(
    address indexed from,
    address indexed to,
    uint256 value
)
event Approval(
    address indexed owner,
    address indexed spender,
    uint256 value
)

Graduation Event

event LiquidityMoved(
    uint256 amountPanda,
    uint256 amountBase
)

Emitted when the token graduates to DEX trading.

PreviousPanda PoolNextApi

Last updated 3 months ago

👨‍💻
🐼