This commit is contained in:
2026-06-08 12:32:58 +02:00
parent f81e0f3bea
commit f2ea1a392f
55 changed files with 7993 additions and 306 deletions

View File

@@ -111,6 +111,9 @@ impl DexDetectService {
crate::dex_detection_route::DexDetectionRoute::RaydiumClmmTrade => {
self.detect_raydium_clmm_trade(&transaction, decoded_event).await
},
crate::dex_detection_route::DexDetectionRoute::RaydiumLaunchpadPool => {
self.detect_raydium_launchpad_pool(&transaction, decoded_event).await
},
crate::dex_detection_route::DexDetectionRoute::PumpFunCreateV2Token => {
self.detect_pump_fun_create_v2_token(&transaction, decoded_event).await
},
@@ -647,6 +650,24 @@ impl DexDetectService {
return Ok(detection_result);
}
async fn detect_raydium_launchpad_pool(
&self,
transaction: &crate::ChainTransactionDto,
decoded_event: &crate::DexDecodedEventDto,
) -> Result<crate::DexPoolDetectionResult, crate::Error> {
return self
.detect_materialized_pool_from_decoded_event(
transaction,
decoded_event,
"raydium_launchpad",
crate::PoolKind::BondingCurve,
crate::PoolStatus::Pending,
"signal.dex.raydium_launchpad",
)
.await;
}
async fn detect_raydium_cpmm_trade(
&self,
transaction: &crate::ChainTransactionDto,