ILiquidationRewardsManager
Inherits: IBaseLiquidationRewardsManager, ILiquidationRewardsManagerErrorsEventsTypes
Interface for managing liquidation rewards within the protocol.
Functions
BPS_DIVISOR
Gets the denominator used for the reward multipliers.
function BPS_DIVISOR() external pure returns (uint32);
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | The BPS divisor. |
BASE_GAS_COST
Gets the fixed gas amount used as a base for transaction cost computations.
Stored as a uint256 to prevent overflow during gas usage computations.
function BASE_GAS_COST() external pure returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The base gas cost. |
MAX_GAS_USED_PER_TICK
Gets the maximum allowable gas usage per liquidated tick.
function MAX_GAS_USED_PER_TICK() external pure returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The maximum gas used per tick. |
MAX_OTHER_GAS_USED
Gets the maximum allowable gas usage for all other computations.
function MAX_OTHER_GAS_USED() external pure returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The maximum gas used for additional computations. |
MAX_REBASE_GAS_USED
Gets the maximum allowable gas usage for rebase operations.
function MAX_REBASE_GAS_USED() external pure returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The maximum gas used for rebase operations. |
MAX_REBALANCER_GAS_USED
Gets the maximum allowable gas usage for triggering the optional rebalancer.
function MAX_REBALANCER_GAS_USED() external pure returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The maximum gas used for the optional rebalancer trigger. |
getRewardsParameters
Retrieves the current parameters used for reward calculations.
function getRewardsParameters() external view returns (RewardsParameters memory);
Returns
Name | Type | Description |
---|---|---|
<none> | RewardsParameters | rewardsParameters_ A struct containing the rewards parameters. |
setRewardsParameters
Updates the parameters used for calculating liquidation rewards.
function setRewardsParameters(
uint32 gasUsedPerTick,
uint32 otherGasUsed,
uint32 rebaseGasUsed,
uint32 rebalancerGasUsed,
uint64 baseFeeOffset,
uint16 gasMultiplierBps,
uint16 positionBonusMultiplierBps,
uint128 fixedReward,
uint128 maxReward
) external;
Parameters
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 | 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). |