-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add Marketplace contract #33
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
base: master
Are you sure you want to change the base?
Conversation
8eb4be9 to
c25f2ca
Compare
moda-contracts/src/Marketplace.sol
Outdated
|
|
||
| uint256 totalPrice = sale.pricePerToken * tokenAmount; | ||
| uint256 fee = (treasuryFee * totalPrice) / 10_000; | ||
| IERC20(_usdc).safeTransferFrom(_msgSender(), address(this), totalPrice); |
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.
we shouldn't have to cast _usdc. Let's just make it token.safeTransferFrom(...).
6532db7 to
b4d6c6c
Compare
| address indexed releases, | ||
| uint256 indexed tokenId, | ||
| address indexed buyer, | ||
| address seller, |
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.
This event definition is inconsistent with the actual one defined above
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.
Let's check all event definitions ^
DoubleOTheven
left a comment
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.
Pls update the events in the test to match the actual definitions
b4d6c6c to
9e6b0d1
Compare
Resolves #
Description