Skip to content

Commit 069ce90

Browse files
committed
fix: ignore m2m updates with 0 amounts
1 parent 7f047b3 commit 069ce90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/execution/common/market_activity_tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ func (mt *marketTracker) processPositionEndOfEpoch(epochStartTime time.Time, end
916916

917917
// recordM2M records the amount corresponding to mark to market (profit or loss).
918918
func (mt *marketTracker) recordM2M(party string, amount num.Decimal) {
919-
if party == "network" {
919+
if party == "network" || amount.IsZero() {
920920
return
921921
}
922922
if _, ok := mt.partyM2M[party]; !ok {

0 commit comments

Comments
 (0)