SquidLock

Liquidity Locking Mechanism

The SquidSwap platform uses a dedicated liquidity locking contract to ensure the safety of user funds and prevent rug pulls. This contract manages the automatic locking of liquidity pool (LP) tokens for a mandatory 90-day period.

Core Features

Lock Structure

Each lock in the contract contains:

  • Amount of LP tokens locked

  • Unlock timestamp (90 days from lock creation)

  • Developer address association

Security Measures

  1. Time-Based Restrictions

  • Mandatory 90-day lock period

  • No early withdrawal options

  • Timestamp-based unlock verification

  1. Access Controls

  • Only token owners can unlock their tokens

  • Automated locking through SquidShot contract

  • No admin override capabilities

  1. Transparency

  • Public functions to view lock status

  • Event emissions for all actions

  • On-chain verification of locks

Lock Management

The contract maintains several mappings for efficient lock management:

  • Token locks per developer

  • Developer's locked token list

  • Lock status tracking

Last updated