@@ -74,7 +74,8 @@ func (h *Handler) convertRisk(ctx context.Context, risk wallet.Risk, walletAddre
74
74
}
75
75
jettonWallet := jettonWallets [0 ]
76
76
meta := h .GetJettonNormalizedMetadata (ctx , jettonWallet .JettonAddress )
77
- preview := jettonPreview (jettonWallet .JettonAddress , meta )
77
+ score , _ := h .score .GetJettonScore (jettonWallet .JettonAddress )
78
+ preview := jettonPreview (jettonWallet .JettonAddress , meta , score )
78
79
jettonQuantity := oas.JettonQuantity {
79
80
Quantity : quantity .String (),
80
81
WalletAddress : convertAccountAddress (jettonWallet .Address , h .addressBook ),
@@ -203,7 +204,8 @@ func (h *Handler) convertActionNftTransfer(t *bath.NftTransferAction, acceptLang
203
204
204
205
func (h * Handler ) convertActionJettonTransfer (ctx context.Context , t * bath.JettonTransferAction , acceptLanguage string , viewer * tongo.AccountID ) (oas.OptJettonTransferAction , oas.ActionSimplePreview ) {
205
206
meta := h .GetJettonNormalizedMetadata (ctx , t .Jetton )
206
- preview := jettonPreview (t .Jetton , meta )
207
+ score , _ := h .score .GetJettonScore (t .Jetton )
208
+ preview := jettonPreview (t .Jetton , meta , score )
207
209
var action oas.OptJettonTransferAction
208
210
action .SetTo (oas.JettonTransferAction {
209
211
Amount : g .Pointer (big .Int (t .Amount )).String (),
@@ -241,7 +243,8 @@ func (h *Handler) convertActionJettonTransfer(ctx context.Context, t *bath.Jetto
241
243
242
244
func (h * Handler ) convertActionJettonMint (ctx context.Context , m * bath.JettonMintAction , acceptLanguage string , viewer * tongo.AccountID ) (oas.OptJettonMintAction , oas.ActionSimplePreview ) {
243
245
meta := h .GetJettonNormalizedMetadata (ctx , m .Jetton )
244
- preview := jettonPreview (m .Jetton , meta )
246
+ score , _ := h .score .GetJettonScore (m .Jetton )
247
+ preview := jettonPreview (m .Jetton , meta , score )
245
248
var action oas.OptJettonMintAction
246
249
action .SetTo (oas.JettonMintAction {
247
250
Amount : g .Pointer (big .Int (m .Amount )).String (),
@@ -465,7 +468,8 @@ func (h *Handler) convertAction(ctx context.Context, viewer *tongo.AccountID, a
465
468
action .JettonMint , action .SimplePreview = h .convertActionJettonMint (ctx , a .JettonMint , acceptLanguage .Value , viewer )
466
469
case bath .JettonBurn :
467
470
meta := h .GetJettonNormalizedMetadata (ctx , a .JettonBurn .Jetton )
468
- preview := jettonPreview (a .JettonBurn .Jetton , meta )
471
+ score , _ := h .score .GetJettonScore (a .JettonBurn .Jetton )
472
+ preview := jettonPreview (a .JettonBurn .Jetton , meta , score )
469
473
action .JettonBurn .SetTo (oas.JettonBurnAction {
470
474
Amount : g .Pointer (big .Int (a .JettonBurn .Amount )).String (),
471
475
Sender : convertAccountAddress (a .JettonBurn .Sender , h .addressBook ),
@@ -640,7 +644,8 @@ func (h *Handler) convertAction(ctx context.Context, viewer *tongo.AccountID, a
640
644
} else {
641
645
swapAction .AmountIn = a .JettonSwap .In .Amount .String ()
642
646
jettonInMeta := h .GetJettonNormalizedMetadata (ctx , a .JettonSwap .In .JettonMaster )
643
- preview := jettonPreview (a .JettonSwap .In .JettonMaster , jettonInMeta )
647
+ score , _ := h .score .GetJettonScore (a .JettonSwap .In .JettonMaster )
648
+ preview := jettonPreview (a .JettonSwap .In .JettonMaster , jettonInMeta , score )
644
649
swapAction .JettonMasterIn .SetTo (preview )
645
650
simplePreviewData ["JettonIn" ] = preview .GetSymbol ()
646
651
simplePreviewData ["AmountIn" ] = ScaleJettons (a .JettonSwap .In .Amount , jettonInMeta .Decimals ).String ()
@@ -652,7 +657,8 @@ func (h *Handler) convertAction(ctx context.Context, viewer *tongo.AccountID, a
652
657
} else {
653
658
swapAction .AmountOut = a .JettonSwap .Out .Amount .String ()
654
659
jettonOutMeta := h .GetJettonNormalizedMetadata (ctx , a .JettonSwap .Out .JettonMaster )
655
- preview := jettonPreview (a .JettonSwap .Out .JettonMaster , jettonOutMeta )
660
+ score , _ := h .score .GetJettonScore (a .JettonSwap .Out .JettonMaster )
661
+ preview := jettonPreview (a .JettonSwap .Out .JettonMaster , jettonOutMeta , score )
656
662
swapAction .JettonMasterOut .SetTo (preview )
657
663
simplePreviewData ["JettonOut" ] = preview .GetSymbol ()
658
664
simplePreviewData ["AmountOut" ] = ScaleJettons (a .JettonSwap .Out .Amount , jettonOutMeta .Decimals ).String ()
@@ -806,7 +812,8 @@ func (h *Handler) toEvent(ctx context.Context, trace *core.Trace, result *bath.A
806
812
continue
807
813
}
808
814
meta := h .GetJettonNormalizedMetadata (ctx , jettonMaster )
809
- previews [jettonMaster ] = jettonPreview (jettonMaster , meta )
815
+ score , _ := h .score .GetJettonScore (jettonMaster )
816
+ previews [jettonMaster ] = jettonPreview (jettonMaster , meta , score )
810
817
}
811
818
}
812
819
for accountID , flow := range result .ValueFlow .Accounts {
0 commit comments