Submitted by 0xRajeev, also found by cmichel and XXX
When a member calls removeLiquiditySingle() requesting only SPARTA in return, i.e. toBASE = true, the LP tokens are transferred to the Pool to withdraw the constituent SPARTA and TOKENs back to the Router. The withdrawn TOKENs are then transferred back to the Pool to convert to SPARTA and directly transferred to the member from the Pool. However, the members SPARTA are left behind in the Router instead of being returned along with converted SPARTA from the Pool.
In other words, the _members BASE SPARTA tokens that were removed from the Pool along with the TOKENs are never sent back to the_member because the _tokens transferred to the Pool are converted to SPARTA and only those are sent back to member directly from the Pool via swapTo().
This effectively results in member losing the SPARTA component of their Pool LP tokens which get left behind in the Router and are possibly claimed by future transactions that remove SPARTA from Router.
LPs sent to Pool, SPARTA and TOKENs withdrawn from Pool to Router, TOKENs from Router sent to Pool, and TOKENs in Pool converted to BASE SPARTA and sent to member directly from the Pool.
Recommend:
verifyfirst (Spartan) confirmed:
