Skip to main content

IOverlayerWrapDefs

Defines the core structures and events for the Overlayer Wrap system

ConstructorParams​

Parameters required for constructing the Overlayer Wrap contract

Parameters​

NameTypeDescription
struct ConstructorParams {
address admin;
address lzEndpoint;
string name;
string symbol;
struct OverlayerWrapCoreTypes.StableCoin collateral;
struct OverlayerWrapCoreTypes.StableCoin aCollateral;
uint256 maxMintPerBlock;
uint256 maxRedeemPerBlock;
uint256 minValmaxRedeemPerBlock;
uint256 hubChainId;
}

OverlayerWrapZeroAddressException​

error OverlayerWrapZeroAddressException()

Zero address not allowed

OverlayerWrapInvalidDecimals​

error OverlayerWrapInvalidDecimals()

The asset decimals can not be larger that the underlying decimals

OverlayerWrapAccountDisabled​

error OverlayerWrapAccountDisabled()

An account has been disabled from performing transactions

OverlayerWrapBlacklistNotActive​

error OverlayerWrapBlacklistNotActive()

Blacklist not active

OverlayerWrapBlacklistTimeNotValid​

error OverlayerWrapBlacklistTimeNotValid()

Blacklist time not valid

OverlayerWrapInvalidBenefactor​

error OverlayerWrapInvalidBenefactor()

The benefactor of an operation is not the message sender

OverlayerWrapCannotRenounceBlacklist​

error OverlayerWrapCannotRenounceBlacklist()

Cannot renounce the blacklisted role

OverlayerWrapCannotDirectlyAssignBlacklist​

error OverlayerWrapCannotDirectlyAssignBlacklist()

Cannot directly grant or revoke the blacklisted role via grantRole/revokeRole

DisableAccount​

event DisableAccount(address account)

A blacklist event

EnableAccount​

event EnableAccount(address account)

A reverted blacklist event

BlackListTimeUpdated​

event BlackListTimeUpdated(uint256 previous, uint256 current)

Emitted when the blacklist activation time is updated