Skip to content

Commit

Permalink
change to >= check
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Lam committed Oct 18, 2023
1 parent 91c7412 commit 07e380e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ contract ERC20Bridge is IERC20Bridge, ITeleporterReceiver, ReentrancyGuard {
// is not a "fee/burn on transfer" token, since it was deployed by this
// contract itself.
require(
totalAmount > primaryFeeAmount + secondaryFeeAmount,
totalAmount >= primaryFeeAmount + secondaryFeeAmount,
"ERC20Bridge: insufficient total fee amount"
);

Expand Down Expand Up @@ -162,7 +162,7 @@ contract ERC20Bridge is IERC20Bridge, ITeleporterReceiver, ReentrancyGuard {
// The secondary fee amount is not used in this case (and can assumed to be 0) since bridging
// a native token to another chain only ever involves a single cross-chain message.
require(
adjustedAmount > primaryFeeAmount,
adjustedAmount >= primaryFeeAmount,
"ERC20Bridge: insufficient adjusted amount"
);

Expand Down

0 comments on commit 07e380e

Please sign in to comment.