From 6190a9e26429763cbe5f72820c0e2ee850fc0219 Mon Sep 17 00:00:00 2001 From: Eduardo Melo Date: Mon, 5 Aug 2024 18:29:08 -0300 Subject: [PATCH] fix: changing require --- contracts/OriumSftMarketplace.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/OriumSftMarketplace.sol b/contracts/OriumSftMarketplace.sol index a787ee7..36d0fa6 100644 --- a/contracts/OriumSftMarketplace.sol +++ b/contracts/OriumSftMarketplace.sol @@ -444,9 +444,8 @@ contract OriumSftMarketplace is Initializable, OwnableUpgradeable, PausableUpgra ); uint256 _lenderAmount = _feeAmount - _royaltyAmount - _marketplaceFeeAmount; - // Check if the fee token address is zero address (i.e., native token) if (_feeTokenAddress == address(0)) { - require(msg.value == _feeAmount, 'OriumSftMarketplace: Incorrect native token amount'); + require(msg.value >= _feeAmount, 'OriumSftMarketplace: Insufficient native token amount'); payable(owner()).transfer(_marketplaceFeeAmount); payable(_royaltyInfo.treasury).transfer(_royaltyAmount); payable(_lenderAddress).transfer(_lenderAmount);