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 constant ROUND = 1000000;
|
||||||
uint256 public transactionFee = (3 * ROUND) / 100;
|
uint256 public transactionFee = (3 * ROUND) / 100;
|
||||||
// min transaction fee is: 0.5%
|
// 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%
|
// max transaction fee is: 10%
|
||||||
uint256 public constant MAX_TRANSACTION_FEE = (10 * ROUND) / 100;
|
uint256 public constant MAX_TRANSACTION_FEE = (10 * ROUND) / 100;
|
||||||
|
|
||||||
@ -159,17 +159,20 @@ contract BENFTMarket is Ownable, ReentrancyGuard, ERC1155Holder, ERC721Holder {
|
|||||||
orderInfo.owner,
|
orderInfo.owner,
|
||||||
_amount
|
_amount
|
||||||
);
|
);
|
||||||
|
if (_transactionFee > 0) {
|
||||||
IERC20(orderInfo.currency).safeTransferFrom(
|
IERC20(orderInfo.currency).safeTransferFrom(
|
||||||
msg.sender,
|
msg.sender,
|
||||||
feeToAddress,
|
feeToAddress,
|
||||||
_transactionFee
|
_transactionFee
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
if (_transactionTax > 0) {
|
||||||
IERC20(orderInfo.currency).safeTransferFrom(
|
IERC20(orderInfo.currency).safeTransferFrom(
|
||||||
msg.sender,
|
msg.sender,
|
||||||
taxToAddress,
|
taxToAddress,
|
||||||
_transactionTax
|
_transactionTax
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (erc721Supported[orderInfo.nftToken]) {
|
if (erc721Supported[orderInfo.nftToken]) {
|
||||||
IERC721(orderInfo.nftToken).safeTransferFrom(
|
IERC721(orderInfo.nftToken).safeTransferFrom(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user