Open hats-bug-reporter[bot] opened 1 month ago
it is not clear why "user a therefefore gets low tokens"
Better wording could be- User A CAN get less tokens, for one reason or another, e.g. lesser liquidity in the new pool compared to the pool A had in mind when swapping.
In the scenario you describe, there is a vulnerability discovered in the original swap factory. If that is an exploitable vulnerability, the user will probably be happy that their transaction is routed through the updated factory.
Re getting less tokens: there are many reasons why a user may "get low tokens". There is a slippage protection built in that the user can use to limit those risks.
Sorry, but this is not a valid issue imo.
Github username: -- Twitter username: -- Submission hash (on-chain): 0x7ea57c5ea8f35d05f067322f96d31133207a37301cfee8c2b7949612a9fef4fa Severity: high
Description: Description\ When the address of stableSwapFactory is changed, all pending swaps will use the new stableSwapFactory. This can lead to unexpected results for end-users including loss of tokens. Attack Scenario\ Consider this attack path:-
User A therefore gets low tokens.
Attachments