Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions activity/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ func (s *Server) toLocalizedNotifications(ctx context.Context, log *zap.Logger,
case ocp_intent.ExternalDeposit:
intentMetadata := intentRecord.ExternalDepositMetadata

// Skip internal return of funds
if intentMetadata.IsReturned {
continue
}

// Hide small, potentially spam deposits
if !intentMetadata.IsSwapBuy && intentMetadata.UsdMarketValue < 0.01 {
continue
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/ReneKroon/ttlcache v1.7.0
github.com/code-payments/flipcash2-protobuf-api v1.4.0
github.com/code-payments/ocp-protobuf-api v1.10.0
github.com/code-payments/ocp-server v1.11.0
github.com/code-payments/ocp-server v1.11.1-0.20260428231936-0d49436103e3
github.com/devsisters/go-applereceipt v0.0.0-20240805020915-fa22a0160fc2
github.com/georgysavva/scany/v2 v2.1.4
github.com/google/uuid v1.6.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ github.com/code-payments/ocp-protobuf-api v1.10.0 h1:8GEDLh3NShOYz6J7a9VOCqu+xJS
github.com/code-payments/ocp-protobuf-api v1.10.0/go.mod h1:tw6BooY5a8l6CtSZnKOruyKII0W04n89pcM4BizrgG8=
github.com/code-payments/ocp-server v1.11.0 h1:t3RVFv3T0W7+R/AxHBbWFhVWicA3zT4S0YE0J4C4JgE=
github.com/code-payments/ocp-server v1.11.0/go.mod h1:988X7GYc48DZihgfsv/1rKyFhp+SM00b2uR74NbuMYA=
github.com/code-payments/ocp-server v1.11.1-0.20260428231936-0d49436103e3 h1:c7f2HxXM7w6yBawsvDnr+DOWEbxEEembhHk/fleKVzY=
github.com/code-payments/ocp-server v1.11.1-0.20260428231936-0d49436103e3/go.mod h1:988X7GYc48DZihgfsv/1rKyFhp+SM00b2uR74NbuMYA=
github.com/containerd/continuity v0.4.3 h1:6HVkalIp+2u1ZLH1J/pYX2oBVXlJZvh1X1A7bEZ9Su8=
github.com/containerd/continuity v0.4.3/go.mod h1:F6PTNCKepoxEaXLQp3wDAjygEnImnZ/7o4JzpodfroQ=
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
Expand Down
Loading