Skip to content

Commit

Permalink
ON-468: Fee amount per second
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Sep 21, 2023
1 parent 2384ae2 commit 20ecfed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions contracts/OriumMarketplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ contract OriumMarketplace is Initializable, OwnableUpgradeable, PausableUpgradea
address tokenAddress;
uint256 tokenId;
address feeTokenAddress;
uint256 feeAmount;
uint256 feeAmountPerSecond;
uint256 nonce;
uint64 deadline;
bytes32[] roles;
Expand Down Expand Up @@ -107,7 +107,7 @@ contract OriumMarketplace is Initializable, OwnableUpgradeable, PausableUpgradea
* @param tokenAddress address of the contract of the NFT to rent
* @param tokenId tokenId of the NFT to rent
* @param feeTokenAddress address of the ERC20 token for rental fees
* @param feeAmount amount of the upfront rental cost
* @param feeAmountPerSecond amount of fee per second
* @param deadline until when the rental offer is valid
* @param roles array of roles to be assigned to the borrower
* @param rolesData array of data for each role
Expand All @@ -119,7 +119,7 @@ contract OriumMarketplace is Initializable, OwnableUpgradeable, PausableUpgradea
address tokenAddress,
uint256 tokenId,
address feeTokenAddress,
uint256 feeAmount,
uint256 feeAmountPerSecond,
uint256 deadline,
bytes32[] roles,
bytes[] rolesData
Expand Down Expand Up @@ -182,7 +182,7 @@ contract OriumMarketplace is Initializable, OwnableUpgradeable, PausableUpgradea
_offer.tokenAddress,
_offer.tokenId,
_offer.feeTokenAddress,
_offer.feeAmount,
_offer.feeAmountPerSecond,
_offer.deadline,
_offer.roles,
_offer.rolesData
Expand All @@ -209,7 +209,7 @@ contract OriumMarketplace is Initializable, OwnableUpgradeable, PausableUpgradea
_offer.tokenAddress,
_offer.tokenId,
_offer.feeTokenAddress,
_offer.feeAmount,
_offer.feeAmountPerSecond,
_offer.nonce,
_offer.deadline,
_offer.roles,
Expand Down
4 changes: 2 additions & 2 deletions test/OriumMarketplace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('OriumMarketplace', () => {
tokenAddress: nft.address,
tokenId,
feeTokenAddress: paymentToken.address,
feeAmount: ethers.BigNumber.from(0),
feeAmountPerSecond: ethers.BigNumber.from(0),
deadline: blockTimestamp + ONE_DAY,
roles: [],
rolesData: [],
Expand All @@ -75,7 +75,7 @@ describe('OriumMarketplace', () => {
rentalOffer.tokenAddress,
rentalOffer.tokenId,
rentalOffer.feeTokenAddress,
rentalOffer.feeAmount,
rentalOffer.feeAmountPerSecond,
rentalOffer.deadline,
rentalOffer.roles,
rentalOffer.rolesData,
Expand Down
2 changes: 1 addition & 1 deletion utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface RentalOffer {
tokenAddress: string
tokenId: number
feeTokenAddress: string
feeAmount: BigNumber
feeAmountPerSecond: BigNumber
deadline: number
roles: string[]
rolesData: string[]
Expand Down

0 comments on commit 20ecfed

Please sign in to comment.