ILiquidationRewardsManagerErrorsEventsTypes

Git Source

Interface defining events, structs, and errors for the LiquidationRewardsManager.

Events

RewardsParametersUpdated

The rewards parameters are updated.

event RewardsParametersUpdated(
    uint32 gasUsedPerTick,
    uint32 otherGasUsed,
    uint32 rebaseGasUsed,
    uint32 rebalancerGasUsed,
    uint64 baseFeeOffset,
    uint16 gasMultiplierBps,
    uint16 positionBonusMultiplierBps,
    uint128 fixedReward,
    uint128 maxReward
);

Parameters

NameTypeDescription
gasUsedPerTickuint32The amount of gas consumed per tick for liquidation.
otherGasUseduint32The gas consumed for all additional computations.
rebaseGasUseduint32The gas consumed for optional USDN rebase operation.
rebalancerGasUseduint32The gas consumed for the optional rebalancer trigger.
baseFeeOffsetuint64An offset added to the block's base gas fee.
gasMultiplierBpsuint16The multiplier for the gas usage (in BPS).
positionBonusMultiplierBpsuint16The multiplier for position size bonus (in BPS).
fixedRewarduint128A fixed reward amount (in native currency, converted to wstETH).
maxRewarduint128The maximum allowable reward amount (in native currency, converted to wstETH).

Errors

LiquidationRewardsManagerGasUsedPerTickTooHigh

The gasUsedPerTick parameter exceeds the allowable limit.

error LiquidationRewardsManagerGasUsedPerTickTooHigh(uint256 value);

Parameters

NameTypeDescription
valueuint256The given value.

LiquidationRewardsManagerOtherGasUsedTooHigh

The otherGasUsed parameter exceeds the allowable limit.

error LiquidationRewardsManagerOtherGasUsedTooHigh(uint256 value);

Parameters

NameTypeDescription
valueuint256The given value.

LiquidationRewardsManagerRebaseGasUsedTooHigh

The rebaseGasUsed parameter exceeds the allowable limit.

error LiquidationRewardsManagerRebaseGasUsedTooHigh(uint256 value);

Parameters

NameTypeDescription
valueuint256The given value.

LiquidationRewardsManagerRebalancerGasUsedTooHigh

The rebalancerGasUsed parameter exceeds the allowable limit.

error LiquidationRewardsManagerRebalancerGasUsedTooHigh(uint256 value);

Parameters

NameTypeDescription
valueuint256The given value.

LiquidationRewardsManagerMaxRewardTooLow

The maxReward parameter is below the allowable minimum.

error LiquidationRewardsManagerMaxRewardTooLow(uint256 value);

Parameters

NameTypeDescription
valueuint256The given value.

Structs

RewardsParameters

The parameters used for calculating rewards.

struct RewardsParameters {
    uint32 gasUsedPerTick;
    uint32 otherGasUsed;
    uint32 rebaseGasUsed;
    uint32 rebalancerGasUsed;
    uint64 baseFeeOffset;
    uint16 gasMultiplierBps;
    uint16 positionBonusMultiplierBps;
    uint128 fixedReward;
    uint128 maxReward;
}

Properties

NameTypeDescription
gasUsedPerTickuint32The gas consumed per tick for liquidation.
otherGasUseduint32The gas consumed for all additional computations.
rebaseGasUseduint32The gas consumed for optional USDN rebase operation.
rebalancerGasUseduint32The gas consumed for the optional rebalancer trigger.
baseFeeOffsetuint64An offset added to the block's base gas fee.
gasMultiplierBpsuint16The multiplier for the gas usage (in BPS).
positionBonusMultiplierBpsuint16The multiplier for position size bonus (in BPS).
fixedRewarduint128A fixed reward amount (in native currency, converted to wstETH).
maxRewarduint128The maximum allowable reward amount (in native currency, converted to wstETH).