Skip to content

Commit

Permalink
refactor: added validation to content vault
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Sep 21, 2024
1 parent 8790e13 commit 7a82720
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/RightsManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,8 @@ contract RightsManager is
address account
) external onlySupportedCurrency(currency) returns (bytes32) {
uint256 deductions = calcFees(total, currency);
uint256 available = total - deductions; // the total after fees involved in the deal
if (deductions > total) revert NoDeal("The fees are too high.");

uint256 available = total - deductions; // the total after fees
// create a new deal to interact with register policy
T.Deal memory deal = T.Deal(
block.timestamp, // the deal creation date
Expand Down

0 comments on commit 7a82720

Please sign in to comment.