Open hats-bug-reporter[bot] opened 1 month ago
Not important enough
Hi @Ghoulouis,
How would the user know if his tx has failed due to a slippage error? There is no way currently, since there will be no info on the blockchain. And this info is important. That's why protocols like Curve and UniSwap put revert reason messages.
Imagine bots or other smart contracts integrating with the protocol. If they know the concrete reason for the failure they can retry the swap with bigger slippage immediately(even in the same tx, in case of contracts). Without the revert msg it's not possible to know the root cause of the failure.
That's why I reported it as Low
Github username: -- Twitter username: -- Submission hash (on-chain): 0xef009bd8fdcf6d6be29e78d75ba6432831992897b61af724fda562f4f3d66527 Severity: low
Description: Description
StableSwapRouter.sol
has a couple of require statements without any message in case of revert. This will lead to confused users, not knowing what the reason for their failed tx is(bad UX). This might lead to user frustration, more support demand for Thorn, hard debbuging on why the failed txs failed(due to the missing revert messages)Attack Scenario\
Attachments
StableSwapRouter::_swap()
andStableSwapRouter::exactInputStableSwap()
Add the following revert reasons for the failed txs