From 07e380e6dba9ffc153164caa17ee5bf3846f881c Mon Sep 17 00:00:00 2001 From: Matthew Lam Date: Wed, 18 Oct 2023 19:57:22 +0000 Subject: [PATCH] change to >= check --- .../src/CrossChainApplications/ERC20Bridge/ERC20Bridge.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/src/CrossChainApplications/ERC20Bridge/ERC20Bridge.sol b/contracts/src/CrossChainApplications/ERC20Bridge/ERC20Bridge.sol index 21d1d7e84..ba5f06a60 100644 --- a/contracts/src/CrossChainApplications/ERC20Bridge/ERC20Bridge.sol +++ b/contracts/src/CrossChainApplications/ERC20Bridge/ERC20Bridge.sol @@ -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" ); @@ -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" );