Skip to content

Commit

Permalink
Fix [G-1] platformFeeType can share a storage slot
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrishang committed Aug 24, 2023
1 parent 28eaed1 commit b7c4540
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/extension/PlatformFee.sol
Expand Up @@ -19,12 +19,12 @@ abstract contract PlatformFee is IPlatformFee {
/// @dev The % of primary sales collected as platform fees.
uint16 private platformFeeBps;

/// @dev The flat amount collected by the contract as fees on primary sales.
uint256 private flatPlatformFee;

/// @dev Fee type variants: percentage fee and flat fee
PlatformFeeType private platformFeeType;

/// @dev The flat amount collected by the contract as fees on primary sales.
uint256 private flatPlatformFee;

/// @dev Returns the platform fee recipient and bps.
function getPlatformFeeInfo() public view override returns (address, uint16) {
return (platformFeeRecipient, uint16(platformFeeBps));
Expand Down Expand Up @@ -90,7 +90,7 @@ abstract contract PlatformFee is IPlatformFee {
if (!_canSetPlatformFeeInfo()) {
revert("Not authorized");
}
_setupPlatformFeeType(_feeType)
_setupPlatformFeeType(_feeType);
}

/// @dev Sets platform fee type.
Expand Down

0 comments on commit b7c4540

Please sign in to comment.