Skip to content

Commit

Permalink
Added a button for edit profile, still unused
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Sep 20, 2024
1 parent b38b749 commit 4ff4310
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/foundry/contracts/Marketplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ contract Marketplace is ReentrancyGuard, Ownable {
IERC20(USDC).transfer(nftSeller, sellerAmount);
IERC20(USDC).transfer(royaltyReceiver, royaltyRecAmount);
} else {
// WARNING: THIS IS A PLACEHOLDER, LEAVING IT LIKE THIS IS A VULNERABILITY

// Implement AggregatorV3Interface to convert the USD value to the native token equivalent value
}

Expand Down Expand Up @@ -274,6 +276,7 @@ contract Marketplace is ReentrancyGuard, Ownable {
require(!listing.isAuction, "You cannot remove an active auction");

delete listings[listingId];
// Add an event for when a listing is removed
}

// ============ UTILITIES ==============
Expand Down
3 changes: 3 additions & 0 deletions packages/nextjs/app/myProfile/_components/MyProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ export const MyProfile: NextPage = () => {
<div className="flex flex-col items-center p-6">
{/* User Profile Section */}
<div className="relative flex flex-col items-center bg-base-100 p-6 rounded-lg shadow-md w-full max-w-lg">
{/* Edit Profile Button */}
<button className="absolute top-4 right-4 btn btn-primary btn-sm">Edit Profile</button>

{/* Profile Picture */}
<div className="avatar">
<div className="w-24 rounded-full ring ring-primary ring-offset-base-100 ring-offset-2">
Expand Down

0 comments on commit 4ff4310

Please sign in to comment.