Skip to content

Commit

Permalink
devFee max 10%
Browse files Browse the repository at this point in the history
  • Loading branch information
doublesharp committed Jan 20, 2024
1 parent 908fbaf commit fed5613
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contracts/SamWitchOrderBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ contract SamWitchOrderBook is ISamWitchOrderBook, ERC1155Holder, UUPSUpgradeable
IBrushToken public token;

address private devAddr;
uint8 private devFee; // Base 10000, max 2.55%
uint16 private devFee; // Base 10000
uint8 private burntFee;
uint16 private royaltyFee;
uint16 private maxOrdersPerPrice;
Expand Down Expand Up @@ -101,7 +101,7 @@ contract SamWitchOrderBook is ISamWitchOrderBook, ERC1155Holder, UUPSUpgradeable
IERC1155 _nft,
address _token,
address _devAddr,
uint8 _devFee,
uint16 _devFee,
uint8 _burntFee,
uint16 _maxOrdersPerPrice
) external payable initializer {
Expand All @@ -112,6 +112,8 @@ contract SamWitchOrderBook is ISamWitchOrderBook, ERC1155Holder, UUPSUpgradeable
if (_devFee != 0) {
if (_devAddr == address(0)) {
revert ZeroAddress();
} else if (_devFee > 1000) {
revert DevFeeNotSet();
}
} else if (_devAddr != address(0)) {
revert DevFeeNotSet();
Expand Down

0 comments on commit fed5613

Please sign in to comment.