Skip to content

Commit

Permalink
chore: replace all numeric use of "!=" for 0 comparison to ">"
Browse files Browse the repository at this point in the history
  • Loading branch information
OnahProsperity committed Sep 25, 2024
1 parent 472d553 commit 8861c3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ contract Gateway is IGateway, GatewaySettingManager, PausableUpgradeable {
// update the transaction to be fulfilled
order[_orderId].isFulfilled = true;

if (order[_orderId].senderFee != 0) {
if (order[_orderId].senderFee > 0) {
// transfer sender fee
IERC20(order[_orderId].token).transfer(
order[_orderId].senderFeeRecipient,
Expand Down Expand Up @@ -289,7 +289,7 @@ contract Gateway is IGateway, GatewaySettingManager, PausableUpgradeable {

// transfer to sender
IERC20(_token).transfer(_senderAddress, _amount);
if (_protocolFee != 0) {
if (_protocolFee > 0) {
// transfer protocol fee
IERC20(_token).transfer(treasuryAddress, _protocolFee);
}
Expand Down

0 comments on commit 8861c3e

Please sign in to comment.