@@ -153,6 +153,9 @@ export class TrustScoreManager {
153
153
rapidDump : isRapidDump ,
154
154
suspiciousVolume : suspiciousVolume ,
155
155
validationTrust : validationTrustScore ,
156
+ balance : balance ,
157
+ initialMarketCap :
158
+ processedData . dexScreenerData . pairs [ 0 ] ?. marketCap || 0 ,
156
159
lastUpdated : new Date ( ) ,
157
160
} ,
158
161
recommenderMetrics : {
@@ -396,7 +399,7 @@ export class TrustScoreManager {
396
399
initialMarketCap :
397
400
processedData . dexScreenerData . pairs [ 0 ] ?. marketCap || 0 ,
398
401
initialLiquidity :
399
- processedData . dexScreenerData . pairs [ 0 ] ?. liquidity || 0 ,
402
+ processedData . dexScreenerData . pairs [ 0 ] ?. liquidity ?. usd || 0 ,
400
403
initialPrice : processedData . tradeData . price ,
401
404
} ;
402
405
this . trustScoreDb . addTokenRecommendation ( tokenRecommendation ) ;
@@ -431,7 +434,7 @@ export class TrustScoreManager {
431
434
const hash = Math . random ( ) . toString ( 36 ) . substring ( 7 ) ;
432
435
const transaction = {
433
436
tokenAddress : tokenAddress ,
434
- type : "buy" ,
437
+ type : "buy" as "buy" | "sell" ,
435
438
transactionHash : hash ,
436
439
amount : data . buy_amount ,
437
440
price : processedData . tradeData . price ,
@@ -575,7 +578,7 @@ export class TrustScoreManager {
575
578
const hash = Math . random ( ) . toString ( 36 ) . substring ( 7 ) ;
576
579
const transaction = {
577
580
tokenAddress : tokenAddress ,
578
- type : "sell" ,
581
+ type : "sell" as "buy" | "sell" ,
579
582
transactionHash : hash ,
580
583
amount : sellDetails . sell_amount ,
581
584
price : processedData . tradeData . price ,
0 commit comments