Skip to content

WarperContext

WarperContext

CallerIsNotRentingManager

error CallerIsNotRentingManager()

Thrown when the message sender doesn't match the Renting Manager address.

CallerIsNotWarperAdmin

error CallerIsNotWarperAdmin()

Thrown when the message sender doesn't match the warper admin address.

_METAHUB_SLOT

bytes32 _METAHUB_SLOT

Metahub address slot.

_ORIGINAL_SLOT

bytes32 _ORIGINAL_SLOT

Original asset address slot.

onlyRentingManager

modifier onlyRentingManager()

Modifier to make a function callable only by the Renting Manager contract.

onlyWarperAdmin

modifier onlyWarperAdmin()

Modifier to make a function callable only by the warper admin.

_setOriginal

function _setOriginal(address original) internal

Sets warper original asset address.

_setMetahub

function _setMetahub(address metahub) internal

Sets warper metahub address.

_original

function _original() internal view returns (address)

Returns warper original asset address.

_metahub

function _metahub() internal view returns (address)

warper metahub address.