Skip to content

IAssetRentabilityMechanics

IAssetRentabilityMechanics

AssetIsNotRentable

error AssetIsNotRentable(string reason)

Thrown when the asset renting is rejected by warper due to the `reason`.

__isRentableAsset

function __isRentableAsset(address renter, uint256 tokenId, uint256 amount) external view returns (bool isRentable, string errorMessage)

Returns information if an asset is rentable.

Name Type Description
renter address The address of the renter.
tokenId uint256 The token ID.
amount uint256 The token amount.
Name Type Description
isRentable bool True if asset is rentable.
errorMessage string The reason of the asset not being rentable.