Skip to content

IRentalFeePremiumMechanics

IRentalFeePremiumMechanics

__calculatePremiums

function __calculatePremiums(address renter, uint256 tokenId, uint256 amount, uint32 rentalPeriod, uint256 universeFee, uint256 listerFee) external view returns (uint256 universePremium, uint256 listerPremium)

Calculate extra premiums.

Name Type Description
renter address The renter address.
tokenId uint256 The token ID to calculate the extra premium for.
amount uint256 The token amount.
rentalPeriod uint32 The rental period in seconds.
universeFee uint256 The current universe fee.
listerFee uint256 The current lister fee.
Name Type Description
universePremium uint256 The universe premium price to add.
listerPremium uint256 The lister premium price to add.