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

M-05 _isPrimaryMarket Does Not Consider Bundled NFTs #1591

Open
wants to merge 7 commits into
base: marketplace-bundle/M-02-whitelisted-assets-may-be-rejected
Choose a base branch
from

Conversation

capedcrusader21
Copy link
Contributor

@capedcrusader21 capedcrusader21 commented Sep 12, 2024

Description

  • added logic to apply the primary market fee and skip the royalties when creator sell bundled assets.

  • protocol fee is applied to individual prices of assets in bundle.

  • updated test cases for bundled exchange

Screenshot 2024-09-13 at 12 32 14 AM

Copy link

openzeppelin-code bot commented Sep 12, 2024

M-05 _isPrimaryMarket Does Not Consider Bundled NFTs

Generated at commit: e46a762912dc99104b9ae2c7ec75ada6dc6b1b83

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
1
0
7
31
41

For more details view the full report in OpenZeppelin Code Inspector

@capedcrusader21 capedcrusader21 force-pushed the marketplace-bundle/M-05-isPrimaryMarket-does-not-consider-bundled-nfts branch from 2cedff2 to 7533b58 Compare September 13, 2024 09:58
@capedcrusader21 capedcrusader21 force-pushed the marketplace-bundle/M-05-isPrimaryMarket-does-not-consider-bundled-nfts branch from 7533b58 to c2c2266 Compare September 16, 2024 10:07
@capedcrusader21 capedcrusader21 marked this pull request as ready for review September 16, 2024 10:42
@capedcrusader21 capedcrusader21 requested a review from a team as a code owner September 16, 2024 10:42
@capedcrusader21 capedcrusader21 requested review from adjisb and removed request for a team September 16, 2024 10:42
remainder = _transferRoyalties(remainder, paymentSide, nftSide);
}
if (!isBundle) {
remainder = _transferProtocolFees(remainder, paymentSide, fees);
Copy link
Member

Choose a reason for hiding this comment

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

Small thing, after we merge other PRs to this lets add a comment above this line about why we do this

// Transfer protocol fees for non bundle asset, bundles pay per item protocol fees

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.

2 participants