balancer / balancer-v3-monorepo

GNU General Public License v3.0
37 stars 10 forks source link

Fix TransientEnumerableSet's remove #783

Closed joaobrunoah closed 1 month ago

joaobrunoah commented 1 month ago

Description

The remove function worked properly when a removed element was never inserted again in the same transaction. However, sometimes this is not true, like when we use batch router to wrap/unwrap a token and call batch router again to swap with a boosted pool in the same transaction. This PR fixes it. (tests in TransientEnumerableSet are required, there's a ticket for that, #784)

Type of change

Checklist: