Skip to content

Commit 20ed655

Browse files
committed
fixed an issue with skipping ft deposit/withdraw events
1 parent fc43c53 commit 20ed655

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

event.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ func (overflowEvents OverflowEvents) FilterFees(fee float64, payer string) Overf
243243
for _, value := range events {
244244
ftType, _ := value.Fields["type"].(string)
245245
if !strings.HasSuffix(ftType, "FlowToken.Vault") {
246+
withDrawnEvents = append(withDrawnEvents, value)
246247
continue
247248
}
248249
amount, _ := value.Fields["amount"].(float64)
@@ -266,6 +267,7 @@ func (overflowEvents OverflowEvents) FilterFees(fee float64, payer string) Overf
266267
for _, value := range events {
267268
ftType, _ := value.Fields["type"].(string)
268269
if !strings.HasSuffix(ftType, "FlowToken.Vault") {
270+
depositEvents = append(depositEvents, value)
269271
continue
270272
}
271273
amount, _ := value.Fields["amount"].(float64)

0 commit comments

Comments
 (0)