-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Lima
committed
May 10, 2024
1 parent
18f0aa1
commit 8c36c4a
Showing
1 changed file
with
2 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ import { LibNftRentalMarketplace, RentalOffer, Rental } from './libraries/LibNft | |
* @author Orium Network Team - [email protected] | ||
*/ | ||
contract NftRentalMarketplace is Initializable, OwnableUpgradeable, PausableUpgradeable { | ||
|
||
/** ######### Global Variables ########### **/ | ||
|
||
/// @dev oriumMarketplaceRoyalties stores the collection royalties and fees | ||
|
@@ -240,10 +239,7 @@ contract NftRentalMarketplace is Initializable, OwnableUpgradeable, PausableUpgr | |
* @param _tokenAddresses The NFT tokenAddresses. | ||
* @param _tokenIds The NFT tokenIds. | ||
*/ | ||
function batchWithdraw( | ||
address[] calldata _tokenAddresses, | ||
uint256[] calldata _tokenIds | ||
) external whenNotPaused { | ||
function batchWithdraw(address[] calldata _tokenAddresses, uint256[] calldata _tokenIds) external whenNotPaused { | ||
LibNftRentalMarketplace.batchWithdraw(oriumMarketplaceRoyalties, _tokenAddresses, _tokenIds); | ||
} | ||
|
||
|
@@ -285,7 +281,7 @@ contract NftRentalMarketplace is Initializable, OwnableUpgradeable, PausableUpgr | |
); | ||
|
||
nonceDeadline[msg.sender][_offer.nonce] = uint64(block.timestamp); | ||
for(uint256 i = 0; i < _offer.roles.length; i++) { | ||
for (uint256 i = 0; i < _offer.roles.length; i++) { | ||
roleDeadline[_offer.roles[i]][_offer.tokenAddress][_offer.tokenId] = uint64(block.timestamp); | ||
} | ||
emit RentalOfferCancelled(_offer.lender, _offer.nonce); | ||
|
@@ -310,13 +306,4 @@ contract NftRentalMarketplace is Initializable, OwnableUpgradeable, PausableUpgr | |
function unpause() external onlyOwner { | ||
_unpause(); | ||
} | ||
|
||
/** | ||
* @notice Sets the address of the OriumMarketplaceRoyalties contract. | ||
* @dev Only owner can call this function. | ||
* @param _oriumMarketplaceRoyalties The address of the OriumMarketplaceRoyalties contract. | ||
*/ | ||
function setOriumMarketplaceRoyalties(address _oriumMarketplaceRoyalties) external onlyOwner { | ||
oriumMarketplaceRoyalties = _oriumMarketplaceRoyalties; | ||
} | ||
} |