MPC-01
This commit is contained in:
parent
47af426e52
commit
d2dbf5e7ca
@ -22,6 +22,9 @@ contract Marketplace is Ownable, HasSignature {
|
|||||||
address public feeToAddress;
|
address public feeToAddress;
|
||||||
uint256 public transactionFee;
|
uint256 public transactionFee;
|
||||||
|
|
||||||
|
uint256 private constant minTransactionFee = 50
|
||||||
|
uint256 private constant maxTransactionFee = 1000
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
event MatchTransaction(
|
event MatchTransaction(
|
||||||
uint256 indexed tokenId,
|
uint256 indexed tokenId,
|
||||||
@ -39,6 +42,10 @@ contract Marketplace is Ownable, HasSignature {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setTransactionFee(uint256 _transactionFee) external onlyOwner {
|
function setTransactionFee(uint256 _transactionFee) external onlyOwner {
|
||||||
|
require(
|
||||||
|
_transactionFee >= minTransactionFee && _transactionFee <= maxTransactionFee,
|
||||||
|
"Marketplace: _transactionFee must >= 50 and <= 1000"
|
||||||
|
)
|
||||||
transactionFee = _transactionFee;
|
transactionFee = _transactionFee;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user