nft market 手续费最低调整为0
This commit is contained in:
parent
0e48455ad9
commit
d1c024cd5f
@ -75,7 +75,7 @@ contract BENFTMarket is Ownable, ReentrancyGuard, ERC1155Holder, ERC721Holder {
|
||||
uint256 constant ROUND = 1000000;
|
||||
uint256 public transactionFee = (3 * ROUND) / 100;
|
||||
// min transaction fee is: 0.5%
|
||||
uint256 public constant MIN_TRANSACTION_FEE = (5 * ROUND) / 1000;
|
||||
uint256 public constant MIN_TRANSACTION_FEE = 0;
|
||||
// max transaction fee is: 10%
|
||||
uint256 public constant MAX_TRANSACTION_FEE = (10 * ROUND) / 100;
|
||||
|
||||
@ -159,17 +159,20 @@ contract BENFTMarket is Ownable, ReentrancyGuard, ERC1155Holder, ERC721Holder {
|
||||
orderInfo.owner,
|
||||
_amount
|
||||
);
|
||||
|
||||
IERC20(orderInfo.currency).safeTransferFrom(
|
||||
msg.sender,
|
||||
feeToAddress,
|
||||
_transactionFee
|
||||
);
|
||||
IERC20(orderInfo.currency).safeTransferFrom(
|
||||
msg.sender,
|
||||
taxToAddress,
|
||||
_transactionTax
|
||||
);
|
||||
if (_transactionFee > 0) {
|
||||
IERC20(orderInfo.currency).safeTransferFrom(
|
||||
msg.sender,
|
||||
feeToAddress,
|
||||
_transactionFee
|
||||
);
|
||||
}
|
||||
if (_transactionTax > 0) {
|
||||
IERC20(orderInfo.currency).safeTransferFrom(
|
||||
msg.sender,
|
||||
taxToAddress,
|
||||
_transactionTax
|
||||
);
|
||||
}
|
||||
|
||||
if (erc721Supported[orderInfo.nftToken]) {
|
||||
IERC721(orderInfo.nftToken).safeTransferFrom(
|
||||
|
Loading…
x
Reference in New Issue
Block a user