IListingController
IListingController
calculateRentalFee
function calculateRentalFee(struct IListingTermsRegistry.Params listingTermsParams, struct IListingTermsRegistry.ListingTerms listingTerms, struct Rentings.Params rentingParams) external view returns (uint256 totalFee, uint256 listerBaseFee, uint256 universeBaseFee, uint256 protocolBaseFee, struct ITaxTermsRegistry.TaxTerms universeTaxTerms, struct ITaxTermsRegistry.TaxTerms protocolTaxTerms)
Calculates rental fee based on listing terms, tax terms and renting params.
Name |
Type |
Description |
listingTermsParams |
struct IListingTermsRegistry.Params |
Listing terms params. |
listingTerms |
struct IListingTermsRegistry.ListingTerms |
Listing terms. |
rentingParams |
struct Rentings.Params |
Renting params. |
Name |
Type |
Description |
totalFee |
uint256 |
Rental fee (base tokens per second including taxes). |
listerBaseFee |
uint256 |
Lister fee (base tokens per second without taxes). |
universeBaseFee |
uint256 |
Universe fee. |
protocolBaseFee |
uint256 |
Protocol fee. |
universeTaxTerms |
struct ITaxTermsRegistry.TaxTerms |
Universe tax terms. |
protocolTaxTerms |
struct ITaxTermsRegistry.TaxTerms |
Protocol tax terms. |
strategyId
function strategyId() external pure returns (bytes4)
Returns implemented strategy ID.
Name |
Type |
Description |
[0] |
bytes4 |
Listing strategy ID. |