Closed blackcow1987 closed 1 month ago
Yes, it is possible. We are aware of that part. Since edit is only possible for the Requester, I made it so that he can change it if he wants to.
This can be easily modified, but since requestNonRegisteredToken supports different tokens, I excluded it from editFee and proceeded.
@zzooppii My opinion is that if it is possible to bypass the constraint in editFee, We should consider removing this constraint altogether.
Thanks for your feedback.
I've already talked about that part, but I'll talk about it again.
@blackcow1987
https://github.com/tokamak-network/crossTrade/commit/a2ed6416a419baa8a38ccb6a0638584f933f7397 I added that content to the comment.
Thank you.
What happened?
In requestRegisteredToken method, totalAmount must be greater then ctAmount.
contracts/L2/L2CrossTrade.sol:152
However, these restrictions do not exist in the editFee method.
Users can bypass the above restrictions as follows:
Relevant log output
No response