Skip to content

Conversation

@MichaelGrinstead
Copy link
Collaborator

@MichaelGrinstead MichaelGrinstead commented Jan 8, 2024

Resolves #

  • There is an associated issue (required)
  • The change is described in detail
  • There are new or updated tests validating the change (if applicable)

Description

  • Add Marketplace contract
  • Add testing


uint256 totalPrice = sale.pricePerToken * tokenAmount;
uint256 fee = (treasuryFee * totalPrice) / 10_000;
IERC20(_usdc).safeTransferFrom(_msgSender(), address(this), totalPrice);
Copy link
Contributor

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(...).

@MichaelGrinstead MichaelGrinstead force-pushed the mg/marketplace branch 2 times, most recently from 6532db7 to b4d6c6c Compare January 9, 2024 00:58
address indexed releases,
uint256 indexed tokenId,
address indexed buyer,
address seller,
Copy link
Contributor

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

Copy link
Contributor

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 ^

Copy link
Contributor

@DoubleOTheven DoubleOTheven left a 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

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.

3 participants