Skip to content

Commit

Permalink
Merge branch 'ccip-develop' into will/test
Browse files Browse the repository at this point in the history
  • Loading branch information
winder authored Apr 2, 2024
2 parents ddfc3ac + 99a5cef commit 127e239
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-pigs-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccip": patch
---

fix rebalancing algorithm determinism
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func (r *MinLiquidityRebalancer) findNetworksRequiringFunding(graphNow, graphLat
res = append(res, net)
}

sort.Slice(res, func(i, j int) bool { return liqDiffsLater[res[i]].Cmp(liqDiffsLater[res[j]]) > 0 })
return res, liqDiffsNow, liqDiffsLater, nil
}

Expand Down

0 comments on commit 127e239

Please sign in to comment.