Skip to content

Commit

Permalink
add back mint fee getter
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Sep 26, 2023
1 parent 068989e commit 380eaf9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-dolphins-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zoralabs/zora-1155-contracts": patch
---

Add back `mintFee` getter
4 changes: 4 additions & 0 deletions src/nft/ZoraCreator1155Impl.sol
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,10 @@ contract ZoraCreator1155Impl is
return firstMinters[tokenId];
}

function mintFee() external view returns (uint256) {
return TOTAL_REWARD_PER_MINT;
}

/// @notice Get the creator reward recipient address
/// @dev The creator is not enforced to set a funds recipient address, so in that case the reward would be claimable by creator's contract
function getCreatorRewardRecipient() public view returns (address payable) {
Expand Down
4 changes: 4 additions & 0 deletions test/nft/ZoraCreator1155.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,10 @@ contract ZoraCreator1155Test is Test {
vm.stopPrank();
}

function test_mintFee_returnsMintFee() public {
assertEq(target.mintFee(), 0.000777 ether);
}

function test_FreeMintRewards(uint256 quantity) public {
vm.assume(quantity > 0 && quantity < type(uint200).max);

Expand Down

0 comments on commit 380eaf9

Please sign in to comment.