Skip to content

Commit

Permalink
ON-479: natspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Sep 29, 2023
1 parent 47f00ab commit b993412
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contracts/OriumMarketplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ contract OriumMarketplace is Initializable, OwnableUpgradeable, PausableUpgradea
);
}

/**
* @dev Validates the create rental offer.
* @param _offer The rental offer struct.
*/
function _validateCreateRentalOffer(RentalOffer calldata _offer) internal view {
require(msg.sender == _offer.lender, "OriumMarketplace: Sender and Lender mismatch");
require(_offer.roles.length > 0, "OriumMarketplace: roles should not be empty");
Expand Down Expand Up @@ -313,7 +317,7 @@ contract OriumMarketplace is Initializable, OwnableUpgradeable, PausableUpgradea
* @param _amount The amount to calculate the percentage from.
* @param _percentage The percentage to calculate.
*/
function _getAmountFromPercentage(uint256 _amount, uint256 _percentage) internal view returns (uint256) {
function _getAmountFromPercentage(uint256 _amount, uint256 _percentage) internal pure returns (uint256) {
return (_amount * _percentage) / MAX_PERCENTAGE;
}

Expand Down

0 comments on commit b993412

Please sign in to comment.