Skip to content

codebender828/cream-pad-program-library

 
 

Repository files navigation

Cream Pad

Overview

Cream Pad is an innovative token launch platform utilizing Dutch Dual-Track Auctions to enhance price discovery and maximize fairness for participants. By combining Dutch Auctions with dynamic price adjustment mechanisms, Cream Pad ensures an optimal token distribution strategy that adapts to real-time demand.

Key Features

  • Dutch Dual-Track Auction: A hybrid auction model that balances price efficiency and fair allocation.
  • Dynamic Pricing Mechanism: Prices adjust based on demand, ensuring fairness and avoiding extreme price swings.
  • Decay Models: Supports Linear and Exponential decay models for gradual price adjustments.
  • Boost Mechanism: Encourages higher participation by dynamically shifting pricing based on actual vs. expected sales.
  • Sonic Integration: Efficient, low-cost transactions leveraging Sonic’s high-speed blockchain.

Pricing Mechanism

Price Adjustment Logic

  • If Demand ≥ Supply: Price increases to reflect higher demand and reward early buyers.
  • If Demand < Supply: Price continues to decrease following the Dutch Auction model.

Decay Models

  • Linear Decay: Price decreases linearly over time.
  • Exponential Decay: Price follows a logarithmic decline, mimicking natural demand curves.

Boost Calculation

The price boost mechanism dynamically adjusts the auction timeline based on the ratio of actual sales to expected sales:

boost = min(alpha * omega * (actual_sales / expected_sales), time_shift_max)
  • alpha, omega: Influence the magnitude of the boost.
  • time_shift_max: Ensures controlled price adjustments.

How It Works

  1. Auction Initialization: Sellers define initial parameters (starting price, decay model, etc.).
  2. Auction Execution: Buyers participate in the auction, adjusting their bids based on price movements.
  3. Dynamic Price Adjustment: Prices adapt in real time based on sales demand.
  4. Final Settlement: Tokens are allocated based on the final auction price.

Installation & Usage

To build and interact with Cream Pad on Sonicf:

# Install dependencies
yarn install

# Build the program
anchor build

# Test the program
anchor test

About

Cream Pad: Transforming Token Launches with Dutch Dual-Track Auctions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 51.6%
  • TypeScript 48.4%