Provider condition is checked twice in `claimCT` and `cancelCT`
parth-15 opened this issue · 3 comments
parth-15 commented
Describe the bug
The function claimCT
and cancelCT
uses modifier providerCheck
to ensure that the order is not yet fulfilled. However, in the implementation, same condition is checked again which can result in loss of gas for users.
providerCheck
modifier
crossTrade/contracts/L2/L2CrossTrade.sol
Lines 61 to 64 in fc11f6e
claimCT
function
crossTrade/contracts/L2/L2CrossTrade.sol
Lines 189 to 204 in fc11f6e
cancelCT
function
crossTrade/contracts/L2/L2CrossTrade.sol
Lines 235 to 247 in fc11f6e
parth-15 commented
oops. sorry for that. should I close this issue?
zzooppii commented
I'll �close it.