Skip to content

Commit

Permalink
fix: changing require
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoMelo00 committed Aug 5, 2024
1 parent e23cd0d commit 6190a9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/OriumSftMarketplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6190a9e

Please sign in to comment.