Submitted by pauliax
https://github.com/code-423n4/2022-05-rubicon/blob/main/contracts/rubiconPools/BathPair.sol#L128
https://github.com/code-423n4/2022-05-rubicon/blob/main/contracts/rubiconPools/BathHouse.sol#L335-L337
RubiconMarketAddress in BathPair is initialized only once:
but market can change in Bath house:
Thus it will get out of sync. Also, the comment says that it changes Bath Tokens target Rubicon market but actually it updates its own instance variable.
I think RubiconMarketAddress should sync between BathPair and BathHouse.
bghughes (Rubicon) acknowledged and commented:
HickupHH3 (judge) commented:
