mirror of
https://github.com/supleed2/COMP70017-PoDL-CW.git
synced 2024-12-22 05:35:50 +00:00
Change Secondary Fee from 2.5 to 5 percent
This commit is contained in:
parent
94e9786b88
commit
7e4356494b
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue