raydium-io / raydium-sdk-V2-demo

Open-source Typescript SDK demos
48 stars 31 forks source link

startTime is not set correctly #56

Closed chatTeap closed 3 months ago

chatTeap commented 3 months ago

When I am using the raydium.cpmm.createPool method, to create mobility, startTime: new BN(1720416600), he is supposed to start at 2024-07-08 13:30:00, but he is actually starting earlier. What is the reason for this, please help me. poolid=8LYWzLkTX4AzfjW2A1giJghdKvfV5bDL5oXqGUTNCpPC

cruzshia commented 3 months ago

sdk is correct, open time you pass to sdk is UTC timestamp and rpc recorded exact the same value you pass: https://api-v3.raydium.io/pools/info/ids?ids=8LYWzLkTX4AzfjW2A1giJghdKvfV5bDL5oXqGUTNCpPC there's no way to change it and ensure you are given correct value when create pool next time