Skip to content

IListingWizardV1

IListingWizardV1

CallerIsNotLister

error CallerIsNotLister()

Thrown when the provided `account` doesn't match the Listing params' lister address.

createListingWithTerms

function createListingWithTerms(struct Assets.Asset[] assets, struct Listings.Params params, struct IListingTermsRegistry.ListingTerms terms, uint32 maxLockPeriod, bool immediatePayout, uint256 universeId) external returns (uint256 listingId, uint256 listingTermsId)

Creates new listing and fill in listing terms on universe level. Emits an {ListingCreated, UniverseListingTermsRegistered} events.

Name Type Description
assets struct Assets.Asset[] Assets to be listed.
params struct Listings.Params Listing params.
terms struct IListingTermsRegistry.ListingTerms Listing terms on universe level.
maxLockPeriod uint32 The maximum amount of time the original asset owner can wait before getting the asset back.
immediatePayout bool Indicates whether the rental fee must be transferred to the lister on every renting. * If FALSE, the rental fees get accumulated until withdrawn manually.
universeId uint256 Universe ID. * Makes possible to run this {assets} only within this universe.
Name Type Description
listingId uint256 New listing ID.
listingTermsId uint256 New listing terms ID.