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

deploy config poc #684

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

deploy config poc #684

wants to merge 1 commit into from

Conversation

kumaryash90
Copy link
Member

No description provided.

uint256 platformFees = (totalPrice * platformFeeBps) / MAX_BPS;
address _mintFeeManager = mintFeeManager;
Copy link
Member

Choose a reason for hiding this comment

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

dont really need this var

pragma solidity ^0.8.20;

interface IMintFeeManager {
function calculatePlatformFeeAndRecipient(
Copy link
Member

Choose a reason for hiding this comment

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

where is the actual implementation of this?

also was thinking of keeping the naming a bit generic, drop the 'mint' from it since it can be for all sorts of fees


interface IMintFeeManager {
function calculatePlatformFeeAndRecipient(
uint256 _price
Copy link
Member

Choose a reason for hiding this comment

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

here i think it makes sense to send some sort of 'source' or 'id' that the calling contract would pass. For example for drop721 it could pass "dropERC721". that way the fee manager can decide to change the fees for different contracts based on that passed 'id'.

ie. maybe marketplace has a diff fee than a drop erc721

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