Change Secondary Fee from 2.5 to 5 percent

This commit is contained in:
Aadi Desai 2023-02-20 16:16:22 +00:00
parent 94e9786b88
commit 7e4356494b
No known key found for this signature in database
GPG key ID: CFFFE425830EF4D9
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ contract TicketNFT is ITicketNFT, IPrimaryMarket, ISecondaryMarket {
mapping(uint256 => uint256) _prices;
mapping(uint256 => bool) _ticketUsed;
uint256 immutable _purchasePrice = 100e18;
uint256 immutable _saleFee = 25;
uint256 immutable _saleFee = 50;
constructor(IERC20 purchaseToken) {
_admin = msg.sender;

View file

@ -428,7 +428,7 @@ contract SecondaryMarketTest is BaseTicketNFTTest {
function testPurchase() public {
uint256 ticketResalePrice = 200e18;
uint256 ticketResaleFee = 25 * (ticketResalePrice / 1000);
uint256 ticketResaleFee = 50 * (ticketResalePrice / 1000);
uint256 ticketResaleRevenue = ticketResalePrice - ticketResaleFee;
_buyTicket(alice, "alice");
vm.prank(alice);