donaty-io / donaproto

Apache License 2.0
2 stars 0 forks source link

Add selection of fundraising mint #10

Closed makarychev closed 3 months ago

makarychev commented 4 months ago
makarychev commented 4 months ago

https://github.com/raydium-io/raydium-clmm/blob/2eb458dfd634bb28521e25a81da3e93fa8926644/programs/amm/src/states/pool.rs#L85

/// The current price of the pool as a sqrt(token_1/token_0) Q64.64 value
    pub sqrt_price_x64: u128,
makarychev commented 4 months ago

https://github.com/raydium-io/raydium-cpi-example/blob/master/clmm-cpi/programs/clmm-cpi/src/instructions/proxy_swap.rs#L24


use raydium_amm_v3::{
    cpi,
    program::AmmV3,
    states::{AmmConfig, ObservationState, PoolState},
};

    /// The program account of the pool in which the swap will be performed
    #[account(mut)]
    pub pool_state: AccountLoader<'info, PoolState>,
makarychev commented 3 months ago

Resolved in PR https://github.com/donaty-io/donaproto/pull/12