Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.meteora.ag/llms.txt

Use this file to discover all available pages before exploring further.

Track Presale Vault releases here.
presale 0.1.1
Improvement in Calculation and Security

Release summary

ComponentVersionPR
Program0.1.1presale #31
TypeScript SDK0.0.6presale-sdk #9

What We Shipped

  • Improvement in Calculation
  • Improvement in Security

What To Do

IntegratorsWhat ChangedWhat To Do
Partners
  • Calculation Updates
  • Bump your SDK version to @meteora-ag/presale-sdk@0.0.6 to start testing.

Program: presale 0.1.1

Program ID (mainnet and devnet): presSVxnf9UU8jMxhgSMqaRwNiT36qeBdNeTRKjTdbjProgram PR #33

Fixed

  • Calculation of vesting_start_time, vesting_end_time, lock_start_time, and lock_end_time now correctly handled
  • Added missing params.validate() call in handle_initialize_fixed_price_presale_args
  • Fixed issue where fixed price presale could not complete if minimum_cap and maximum_cap were configured to unreachable values
  • Fixed bug where presale registry could consume supply from another registry’s presale

Added

  • Added option to allow fixed price presale to disable withdraw
  • Added option to allow both fixed price and FCFS presales to prevent ending presale early when cap is reached
  • Added closure of MerkleRoofConfig account
  • Added support for the security_txt! macro

Changed

  • Presale mode now reserves presale_mode_raw_data: [u128; 3], used for storing mode-specific data (e.g. price in fixed mode)
  • Removed lock_start_time and lock_end_time fields as they can be represented by presale_end_time and vesting_start_time and were unused
  • For permissioned mode:
    • In dynamic price presale, buyer_minimum_cap must be 1 and buyer_maximum_cap must be presale_maximum_cap
    • In fixed price presale, buyer_minimum_cap must be the minimum possible quote token value and buyer_maximum_cap must be presale_maximum_cap
    • This change reduces errors when creating whitelist wallet caps that prevent escrow account creation

    TypeScript SDK: @meteora-ag/presale-sdk 0.0.6

    SDK PR #9

    Added

    • disableWithdraw option on fixed price presale mode. Allow creator to disable withdrawing from the vault after deposit.
    • disableEarlierPresaleEndOnceCapReached option. Allow creator to prevent the presale end immediately once the target cap reached on FCFS and fixed price presale.
    • immediateReleaseTimestamp. Allow creator to configure the timing of immediate release portion of token.
    • calculateLockAndVestDurationFromTimestamps helper function to calculate lock and vest duration from presale end time, lock end time, and vest end time.
    • getOnChainTimestamp helper function to get current unix timestamp from on chain clock.
    • getRegistryRemainingDepositQuota function on IPresaleWrapper to return remaining deposit-able amount on specific registry.
    • closeMerkleRootConfig function to be able to close merkle root config account.

    Changed

    • getPendingClaimableUiAmount and getPendingClaimableRawAmount of IEscrowWrapper added currentTimestamp parameter. Can be retrieved from on chain clock using getOnChainTimestamp helper function.