Solana IDL reference › Drift V2 › CurveRecord

CurveRecord event

Drift V2 event. Program ID dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH. Data starts with the 8-byte event discriminator, computed with the standard Anchor rule: first 8 bytes of sha256("event:CurveRecord").

Discriminator (computed with the standard Anchor rule: first 8 bytes of sha256("event:CurveRecord"))

hex 0x65ee28e4462e3d75

bytes [101, 238, 40, 228, 70, 46, 61, 117]

base58 J3rQ8ian7ja

Fields (offsets include the 8-byte discriminator)

FieldTypeOffsetSize
tsi6488
recordIdu64168
pegMultiplierBeforeu1282416
baseAssetReserveBeforeu1284016
quoteAssetReserveBeforeu1285616
sqrtKBeforeu1287216
pegMultiplierAfteru1288816
baseAssetReserveAfteru12810416
quoteAssetReserveAfteru12812016
sqrtKAfteru12813616
baseAssetAmountLongu12815216
baseAssetAmountShortu12816816
baseAssetAmountWithAmmi12818416
totalFeei12820016
totalFeeMinusDistributionsi12821616
adjustmentCosti12823216
oraclePricei642488
fillRecordu12825616
numberOfUsersu322724
marketIndexu162762

Where this event appears

Anchor programs emit events in one of two ways. With emit! the event is written to the transaction logs as Program data: <base64>; the decoded bytes are the 8-byte discriminator above followed by the Borsh-encoded fields. With emit_cpi! the program calls itself and the event is in that inner instruction's data, which starts with the 8-byte tag 0xe445a52e51cb9a1d, then the discriminator and the fields. Logs can be truncated on busy transactions; inner-instruction data is not. The decoder below accepts both forms. How to decode Anchor events.

Decode this event

Decoding runs on Rugsight's server against the bundled snapshot. Nothing is fetched from the chain. Paste public account data only; never paste a private key or seed phrase.

Other Drift V2 events

Drift V2 instructions · Explain a transaction

Data: solana-idls@1.2.1 (MIT, © Obsidian Protocol) and SPL Token / Token-2022 state layouts (Apache-2.0), snapshot 2026-11-17. Programs can upgrade and an IDL snapshot can lag the deployed program, so check important offsets against current account data.