Time Locked Yield

This project lets users provide liquidity to a Raydium pool and lock their LP tokens into NFTs that can't be withdrawn until a future time. Built on NeonEVM

  • 0 Raised
  • 130 Views
  • 0 Judges

Tags

  • Neon EVM

Categories

  • Neon EVM $5000

Gallery

Description

Time-Locked Yield NFTs

Overview

This project lets users provide liquidity to a Raydium pool and lock their LP tokens into NFTs that can't be withdrawn until a future time.

The longer users lock their tokens, the more swap fees they earn.

This works like a DeFi savings bond.

Features

  • Add liquidity to Raydium pools
  • Lock LP tokens as NFTs with metadata
  • Set a time lock to prevent early withdrawals
  • Earn higher fees for longer lock periods
  • Withdraw or collect fees only after the lock period ends

Why This Project Stands Out

  • Combines DeFi (Raydium) and NFTs (Metaplex-style tokens)
  • Uses time-locks for real incentives
  • Encourages long-term liquidity

How It Works

1. Create or Select a Pool

  • Use Raydium program via Neon EVM precompile.
  • Choose an existing pool or create one.

2. Add Liquidity

  • Call addLiquidityInstruction using Raydium logic.
  • LP tokens are minted to the user.

3. Lock Liquidity as NFT

  • Call lockLiquidityInstruction.

  • LP tokens are burned and represented as a locked NFT.

  • Metadata includes:

    • lock_until: timestamp when it can be unlocked
    • initial_amount: original LP token amount
    • bonus_rate: % of extra fee reward for time commitment

4. Prevent Early Unlock

  • NFT metadata is tracked in a Solidity contract.
  • If block.timestamp < lock_until, collectFeesInstruction or withdrawLiquidityInstruction fails.

5. Collect Fees

  • After the lock period ends, users can:

    • Call collectFeesInstruction to get their fee share
    • Or use withdrawLiquidityInstruction to remove their liquidity