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

ON-467: Initial Marketplace Structure #10

Merged
merged 46 commits into from
Sep 15, 2023
Merged

ON-467: Initial Marketplace Structure #10

merged 46 commits into from
Sep 15, 2023

Conversation

karacurt
Copy link
Contributor

@karacurt karacurt commented Sep 14, 2023

  • The Marketplace contract is upgradable by the Orium multisig.
  • The Marketplace contract is pausable by the Orium multisig.
  • Marketplace fees are 2.5% by default, but the Orium multisig must be able to set a different value per NFT collection.
  • Creators Earnings is 0% by default, but the Orium multisig can set the creator of an NFT collection, and the creator can modify the Creators Earnings.
  • The Marketplace has a maximum deadline parameter of 3 months, which should be configurable by the Orium multi-sig.

@karacurt karacurt requested a review from ernanirst September 14, 2023 18:29
contracts/OriumRentalProtocol.sol Outdated Show resolved Hide resolved
contracts/OriumRentalProtocol.sol Outdated Show resolved Hide resolved
contracts/OriumRentalProtocol.sol Outdated Show resolved Hide resolved
contracts/OriumRentalProtocol.sol Outdated Show resolved Hide resolved
contracts/OriumRentalProtocol.sol Outdated Show resolved Hide resolved
contracts/OriumRentalProtocol.sol Outdated Show resolved Hide resolved
contracts/OriumRentalProtocol.sol Outdated Show resolved Hide resolved
contracts/OriumRentalProtocol.sol Outdated Show resolved Hide resolved
contracts/OriumRentalProtocol.sol Outdated Show resolved Hide resolved
contracts/OriumRentalProtocol.sol Outdated Show resolved Hide resolved
contracts/OriumMarketplace.sol Outdated Show resolved Hide resolved
* @param _tokenAddress The address of the collection.
* @param _feeInfo The fee info. Contains the fee percentage in wei and if the fee is custom.
*/
function setMarketplaceFeeForCollection(address _tokenAddress, FeeInfo calldata _feeInfo) external onlyOwner {
Copy link
Contributor

@ernanirst ernanirst Sep 15, 2023

Choose a reason for hiding this comment

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

Don't use struct ti facilitate on oppenzeppelin

bool isCustomFee;
}

event CollectionFeeSet(address indexed tokenAddress, uint256 feePercentageInWei, bool isCustomFee);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
event CollectionFeeSet(address indexed tokenAddress, uint256 feePercentageInWei, bool isCustomFee);
event MarketplaceFeeSet(address indexed tokenAddress, uint256 feePercentageInWei, bool isCustomFee);

Co-authored-by: Ernani São Thiago <[email protected]>
@karacurt karacurt merged commit 341af19 into master Sep 15, 2023
1 check passed
@karacurt karacurt deleted the feature--ON-467 branch February 24, 2024 03:06
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