-
Notifications
You must be signed in to change notification settings - Fork 87
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
base: marketplace-bundle/M-02-whitelisted-assets-may-be-rejected
Are you sure you want to change the base?
Conversation
M-05 _isPrimaryMarket Does Not Consider Bundled NFTs
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
2cedff2
to
7533b58
Compare
7533b58
to
c2c2266
Compare
… add to fn clarity
Code cleanup for M-05
remainder = _transferRoyalties(remainder, paymentSide, nftSide); | ||
} | ||
if (!isBundle) { | ||
remainder = _transferProtocolFees(remainder, paymentSide, fees); |
There was a problem hiding this comment.
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
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