ILiquidationRewardsManagerErrorsEventsTypes
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
Name | Type | Description |
---|---|---|
gasUsedPerTick | uint32 | The amount of gas consumed per tick for liquidation. |
otherGasUsed | uint32 | The gas consumed for all additional computations. |
rebaseGasUsed | uint32 | The gas consumed for optional USDN rebase operation. |
rebalancerGasUsed | uint32 | The gas consumed for the optional rebalancer trigger. |
baseFeeOffset | uint64 | An offset added to the block's base gas fee. |
gasMultiplierBps | uint16 | The multiplier for the gas usage (in BPS). |
positionBonusMultiplierBps | uint16 | The multiplier for position size bonus (in BPS). |
fixedReward | uint128 | A fixed reward amount (in native currency, converted to wstETH). |
maxReward | uint128 | The maximum allowable reward amount (in native currency, converted to wstETH). |
Errors
LiquidationRewardsManagerGasUsedPerTickTooHigh
The gasUsedPerTick
parameter exceeds the allowable limit.
error LiquidationRewardsManagerGasUsedPerTickTooHigh(uint256 value);
Parameters
Name | Type | Description |
---|---|---|
value | uint256 | The given value. |
LiquidationRewardsManagerOtherGasUsedTooHigh
The otherGasUsed
parameter exceeds the allowable limit.
error LiquidationRewardsManagerOtherGasUsedTooHigh(uint256 value);
Parameters
Name | Type | Description |
---|---|---|
value | uint256 | The given value. |
LiquidationRewardsManagerRebaseGasUsedTooHigh
The rebaseGasUsed
parameter exceeds the allowable limit.
error LiquidationRewardsManagerRebaseGasUsedTooHigh(uint256 value);
Parameters
Name | Type | Description |
---|---|---|
value | uint256 | The given value. |
LiquidationRewardsManagerRebalancerGasUsedTooHigh
The rebalancerGasUsed
parameter exceeds the allowable limit.
error LiquidationRewardsManagerRebalancerGasUsedTooHigh(uint256 value);
Parameters
Name | Type | Description |
---|---|---|
value | uint256 | The given value. |
LiquidationRewardsManagerMaxRewardTooLow
The maxReward
parameter is below the allowable minimum.
error LiquidationRewardsManagerMaxRewardTooLow(uint256 value);
Parameters
Name | Type | Description |
---|---|---|
value | uint256 | The 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
Name | Type | Description |
---|---|---|
gasUsedPerTick | uint32 | The gas consumed per tick for liquidation. |
otherGasUsed | uint32 | The gas consumed for all additional computations. |
rebaseGasUsed | uint32 | The gas consumed for optional USDN rebase operation. |
rebalancerGasUsed | uint32 | The gas consumed for the optional rebalancer trigger. |
baseFeeOffset | uint64 | An offset added to the block's base gas fee. |
gasMultiplierBps | uint16 | The multiplier for the gas usage (in BPS). |
positionBonusMultiplierBps | uint16 | The multiplier for position size bonus (in BPS). |
fixedReward | uint128 | A fixed reward amount (in native currency, converted to wstETH). |
maxReward | uint128 | The maximum allowable reward amount (in native currency, converted to wstETH). |