-
Notifications
You must be signed in to change notification settings - Fork 2
Smart Contract Design and Implementation #02 August 2024
Bernard Sibanda edited this page Aug 2, 2024
·
1 revision
Design and implement a smart contract for an NFT marketplace where the following conditions are met:
- NFT Sale in tADA: The seller lists an NFT for sale in tADA.
- Owner Commission: The owner of the smart contract charges a 3% commission on all sold NFTs.
- Correct Payment Enforcement: The smart contract ensures that only buyers who have paid the correct amount receive the NFT.
- Price Flexibility: The seller can update the sale price or withdraw the NFT from sale at any time.
- Sales Deadline and Early Discount: Each sale must have a deadline, and a discount is applied if the purchase is made before the deadline.
Ensure that the owner's commission is always deducted and distributed correctly, regardless of any price changes or withdrawal by the seller.