Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mint Fees as config param to claims #81

Closed
wants to merge 7 commits into from

Conversation

richerd
Copy link

@richerd richerd commented Feb 20, 2024

This PR updates mint fees to be initialization params

moves MINT_FEE and MINT_FEE_MERKLE to be constructor params to allow for variable mint fee to for allowing for different fees to be charged on different networks.

Copy link

github-actions bot commented Feb 20, 2024

LCOV of commit 79c34cc during Test! #360

Summary coverage rate:
  lines......: 37.4% (800 of 2138 lines)
  functions..: 43.2% (158 of 366 functions)
  branches...: 28.3% (317 of 1120 branches)

Files changed coverage rate: n/a

@@ -33,8 +33,7 @@ contract ERC1155LazyPayableClaim is IERC165, IERC1155LazyPayableClaim, ICreatorE
interfaceId == type(IERC165).interfaceId;
}

constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2) LazyPayableClaim(initialOwner, delegationRegistry, delegationRegistryV2) {}

constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2, uint256 mintFee, uint256 mintFeeMerkle) LazyPayableClaim(initialOwner, delegationRegistry, delegationRegistryV2, mintFee, mintFeeMerkle) {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix ordering, put mint fees first.

@@ -47,7 +47,7 @@ contract ERC721LazyPayableClaim is IERC165, IERC721LazyPayableClaim, ICreatorExt
interfaceId == type(IERC165).interfaceId;
}

constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2) LazyPayableClaim(initialOwner, delegationRegistry, delegationRegistryV2) {}
constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2, uint256 mintFee, uint256 mintFeeMerkle) LazyPayableClaim(initialOwner, delegationRegistry, delegationRegistryV2, mintFee, mintFeeMerkle) {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix ordering, put mint fees first (convention is to put static variables first.

@@ -72,12 +72,13 @@ abstract contract LazyPayableClaim is ILazyPayableClaim, AdminControl {
_;
}

constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2) {
constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2, uint256 mintFee, uint256 mintFeeMerkle) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix ordering, put mint fees first (convention is to put static variables first.

@wwhchung
Copy link
Contributor

You need to update the deploy scripts and set it to switch on a network environment variable. The deploy scripts should have the hardcoded amounts.

@@ -20,10 +20,10 @@ jobs:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Set Node to v16
- name: Set Node to v18
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're on 20 now

@wwhchung
Copy link
Contributor

wwhchung commented May 7, 2024

Closing this because it won't work and will result in different contract addresses across different networks.

@wwhchung wwhchung closed this May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants