Skip to content

Commit

Permalink
fixed L-02
Browse files Browse the repository at this point in the history
  • Loading branch information
caglacelik committed Dec 2, 2024
1 parent f4b5f9a commit 679359a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Swan.sol
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ contract Swan is SwanManager, UUPSUpgradeable {
/// @notice Function to transfer the royalties to the seller & Dria.
function transferRoyalties(AssetListing storage asset) internal {
// calculate fees
uint256 buyerFee = (asset.price * asset.feeRoyalty * 100) / BASIS_POINTS;
uint256 driaFee = (buyerFee * getCurrentMarketParameters().platformFee * 100) / BASIS_POINTS;
uint256 buyerFee = (asset.price * asset.feeRoyalty) / (BASIS_POINTS * BASIS_POINTS);
uint256 driaFee = (buyerFee * asset.feeRoyalty * getCurrentMarketParameters().platformFee) / (BASIS_POINTS * BASIS_POINTS);

// first, Swan receives the entire fee from seller
// this allows only one approval from the seller's side
Expand Down

0 comments on commit 679359a

Please sign in to comment.