KAWAI Token: Security Remediation Plan

June 2, 2025 6 min read

KAWAI Token: Security Remediation Plan

Date: May 08, 2025 Objective: Address critical security and trust issues identified in the KAWAI token scan to ensure the token is safe and trustworthy for the community and potential holders.

Based on the token scan image provided, the following issues require immediate attention:

  1. Mint Authority Still Enabled
  2. LP Unlocked (100% Unlocked / 0.00% Locked)
  3. Low Liquidity
  4. Low Amount of LP Providers
  5. Mutable Metadata
  6. Supply Discrepancy & Creator Holdings
  7. Low Holder Count

Remediation Steps:

1. Revoke Mint Authority

  • Issue: The wallet 6T6f...XyjM (or the current mint authority) can still create new KAWAI tokens, posing an inflation risk and undermining trust in a fixed supply.
  • Fix: Permanently disable the minting capability for the KAWAI token.
  • Action:
    1. Identify the current mint authority address for the KAWAI token mint (CRonCzMtoLRHE6UsdpUCrm7nm7BwM3NfJU1ssVWAGBL7).
    2. The current mint authority must execute a transaction to set the mint authority to null (or an invalid address like a burn address, though null is standard for disabling).
    3. Using spl-token CLI:
      spl-token authorize <KAWAI_TOKEN_MINT_ADDRESS> mint --disable --owner <PATH_TO_MINT_AUTHORITY_KEYPAIR_FILE>
      # Replace <KAWAI_TOKEN_MINT_ADDRESS> with CRonCzMtoLRHE6UsdpUCrm7nm7BwM3NfJU1ssVWAGBL7
      # Replace <PATH_TO_MINT_AUTHORITY_KEYPAIR_FILE> with the file path to the current mint authority's keypair.
      
    4. Verification: Confirm on a Solana explorer (e.g., Solscan, SolanaFM) that the mint authority for the token is now empty or set to a burn address.

2. Lock Liquidity Pool (LP) Tokens

  • Issue: 100% of the LP tokens are unlocked, meaning the liquidity provider can remove all liquidity at any time (rug pull risk).
  • Fix: Lock a significant majority (ideally 100% of team-provided liquidity) of the LP tokens for a substantial period (e.g., 6-12 months or longer).
  • Action:
    1. Identify the wallet(s) holding the KAWAI LP tokens (e.g., KAWAI/SOL or KAWAI/USDC LP tokens from Raydium, Orca, etc.).
    2. Use a reputable third-party LP locking service on Solana. Popular options include:
      • Streamflow (streamflow.finance)
      • SolLocker (sollocker.com)
      • Specific DEXs might offer their own locking solutions (e.g., Raydium used to have one).
    3. Follow the chosen platform's instructions to create a lockup contract for the LP tokens. Specify the amount of LP tokens and the lock duration.
    4. Transparency: Publicly share the transaction proof of the LP lock and the link to the locker contract for community verification.

3. Increase Liquidity

  • Issue: The current liquidity of ~$1191.47 is extremely low, leading to high slippage and price instability.
  • Fix: Add more capital to the liquidity pool.
  • Action:
    1. The project team needs to allocate more $KAWAI tokens and an equivalent value of the paired asset (e.g., SOL or USDC) to the DEX liquidity pool.
    2. This should be done before or concurrently with locking the LP tokens (Step 2).
    3. Aim for a liquidity level that can support reasonable trading volume without excessive price impact. The target amount depends on project goals and initial market cap aspirations.

4. Address Low Amount of LP Providers

  • Issue: Few LP providers indicate liquidity centralization.
  • Fix: This is often a symptom of a new token and low overall liquidity. Fixing issues #2 (LP Lock) and #3 (Increase Liquidity) will build trust and may organically attract more independent LPs over time.
  • Action:
    1. Focus on the team providing substantial, locked initial liquidity.
    2. As the project grows and if tokenomics allow (e.g., through LP farming incentives in later phases), more providers might join.
    3. For Phase 1, ensuring the primary liquidity is secure and sufficient is the priority.

5. Make Metadata Immutable

  • Issue: The token metadata (name, symbol, URI) is currently mutable, meaning it can be changed by the update authority.
  • Fix: Set the metadata to be immutable to prevent unauthorized or malicious changes.
  • Action:
    1. Identify the current update authority for the token's metadata account.
    2. Use the Umi script (create_metadata_umi.ts) previously provided. If the metadata account already exists, you will need to use an update instruction. The key is to set isMutable: false in the arguments.
    3. If creating metadata for the first time (as per earlier discussions): Ensure the isMutable field in the CreateMetadataAccountV3InstructionArgs is set to false when running the Umi script.
      // In create_metadata_umi.ts
      const metadataArgs: CreateMetadataAccountV3InstructionArgs = {
        data: { /* ... */ },
        isMutable: false, // Set to false for immutability
        collectionDetails: null,
      };
      
    4. If updating existing mutable metadata: The update authority needs to send a transaction using updateMetadataAccountV2 (or the Umi equivalent updateV1) instruction, setting the newUpdateAuthority to null (or the metadata account itself) and isMutable to false.
    5. Verification: Check on an explorer that the metadata account's isMutable flag is false.

6. Clarify Supply and Creator Holdings

  • Issue: The scan shows conflicting information: "Supply 3.9B" and "Creator Balance 45,207T KAWAI (10.5%)". This needs immediate clarification.
  • Fix: Verify the actual total supply and the distribution of tokens, ensuring they align with the stated tokenomics. Address any discrepancies.
  • Action:
    1. Verify Actual Supply: Use a reliable Solana explorer (Solscan, SolanaFM) with the KAWAI token mint address (CRonCzMtoLRHE6UsdpUCrm7nm7BwM3NfJU1ssVWAGBL7) to confirm the true current total supply and decimals.
    2. Verify Creator Holdings: Identify all wallets associated with the creator/team and sum their KAWAI balances.
    3. Reconcile with Tokenomics: Compare these figures with the agreed-upon tokenomics document (phase1_tokenomics.md). The total supply should be 1 Trillion $KAWAI (with 9 decimals).
    4. Corrective Actions (if discrepancies exist):
      • If the minted supply is incorrect, this is a major issue. If it's higher than 1 Trillion, excess tokens must be burned. If lower, it needs to be understood why.
      • If the creator holds an excessive amount not allocated by tokenomics, these tokens should be transferred to the designated multi-sig wallets (Treasury, Marketing, Staking Rewards Pool, etc.) or burned, as per the tokenomics.
      • Ensure all team/advisor tokens are subject to the agreed vesting schedule.

7. Increase Holder Count

  • Issue: Only 5 holders indicates very limited distribution.
  • Fix: This will improve as the token is distributed according to the tokenomics and marketing efforts begin.
  • Action:
    1. This is not an immediate security fix but a growth metric.
    2. Once the critical security issues (1-6) are resolved, proceed with planned airdrops, community reward distributions, and marketing campaigns to increase token distribution and holder count.

Priority: Issues #1 (Mint Authority), #2 (LP Lock), and #6 (Supply/Creator Holdings) are the most critical and should be addressed first as they pose direct and severe risks to token holders and project integrity. Issue #5 (Mutable Metadata) and #3 (Liquidity Amount) are next in priority.

This plan provides a roadmap to significantly improve the security and trustworthiness of the KAWAI token. It is crucial to execute these steps diligently and transparently.

Table of Contents