-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: wip of erc20 minter with new fees * fix: events * fix: function type * feat: add _ to internal functions * fix: checks * fix: tests * feat: clean up internal functions * feat: add ERC20MinterConfig struct * feat: add init check * Updates for ownership handling (#377) * fix: tests * feat: add changeset * feat: remove ERC20MinterInitialized event * feat: add detailed changeset * fix: event test * fix: remove eth reward not equal to zero * feat: add zora sepolia erc20 minter v2 deployment address * fix: changelog * fix: vm.assume * feat: add erc20 minter to abi script * fix: file import * fix: skip testPremintERC20 --------- Co-authored-by: Iain Nash <me@iain.in>
- Loading branch information
1 parent
16deff0
commit cd6c636
Showing
10 changed files
with
302 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
"@zoralabs/zora-1155-contracts": patch | ||
--- | ||
|
||
ERC20 Minter V2 Changes: | ||
* Adds a flat ETH fee that goes to Zora (currently this fee is 0.000111 ETH but the contract owner can change this fee at any time) | ||
* Reward recipients will still receive ERC20 rewards however this percentage can now be changed at any time by the contract owner | ||
* Adds an `ERC20MinterConfig` struct which contains `zoraRewardRecipientAddress`, `rewardRecipientPercentage`, and `ethReward` | ||
* Zora Reward Recipient Address can now be changed at any time by the contract owner as well | ||
* `mint` function is now payable | ||
* New functions: | ||
* `function ethRewardAmount() external view returns (uint256)` | ||
* `function setERC20MinterConfig(ERC20MinterConfig memory config) external` | ||
* `function getERC20MinterConfig() external view returns (ERC20MinterConfig memory)` | ||
* New events: | ||
* `event ERC20MinterConfigSet(ERC20MinterConfig config)` | ||
* Removed events: | ||
* `event ZoraRewardsRecipientSet(address indexed prevRecipient, address indexed newRecipient)` | ||
* `event ERC20MinterInitialized(uint256 rewardPercentage)` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.