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.
Release summary
| Component | Version | PR |
|---|---|---|
| Program | 0.1.1 | presale #31 |
| TypeScript SDK | 0.0.6 | presale-sdk #9 |
What We Shipped
- Improvement in Calculation
- Improvement in Security
What To Do
| Integrators | What Changed | What To Do |
|---|---|---|
| Partners |
|
|
Program: presale 0.1.1
Program ID (mainnet and devnet): presSVxnf9UU8jMxhgSMqaRwNiT36qeBdNeTRKjTdbjProgram PR #33Fixed
- Calculation of
vesting_start_time,vesting_end_time,lock_start_time, andlock_end_timenow correctly handled - Added missing
params.validate()call inhandle_initialize_fixed_price_presale_args - Fixed issue where fixed price presale could not complete if
minimum_capandmaximum_capwere 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
MerkleRoofConfigaccount - 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_timeandlock_end_timefields as they can be represented bypresale_end_timeandvesting_start_timeand were unused -
For permissioned mode:
- In dynamic price presale,
buyer_minimum_capmust be 1 andbuyer_maximum_capmust bepresale_maximum_cap - In fixed price presale,
buyer_minimum_capmust be the minimum possible quote token value andbuyer_maximum_capmust bepresale_maximum_cap - This change reduces errors when creating whitelist wallet caps that prevent escrow account creation
TypeScript SDK:
SDK PR #9@meteora-ag/presale-sdk0.0.6Added
disableWithdrawoption on fixed price presale mode. Allow creator to disable withdrawing from the vault after deposit.disableEarlierPresaleEndOnceCapReachedoption. 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.calculateLockAndVestDurationFromTimestampshelper function to calculate lock and vest duration from presale end time, lock end time, and vest end time.getOnChainTimestamphelper function to get current unix timestamp from on chain clock.getRegistryRemainingDepositQuotafunction onIPresaleWrapperto return remaining deposit-able amount on specific registry.closeMerkleRootConfigfunction to be able to close merkle root config account.
Changed
getPendingClaimableUiAmountandgetPendingClaimableRawAmountofIEscrowWrapperaddedcurrentTimestampparameter. Can be retrieved from on chain clock usinggetOnChainTimestamphelper function.
- In dynamic price presale,

