ILiquidationRewardsManager

Git Source

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

NameTypeDescription
<none>uint32The 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

NameTypeDescription
<none>uint256The 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

NameTypeDescription
<none>uint256The 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

NameTypeDescription
<none>uint256The 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

NameTypeDescription
<none>uint256The 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

NameTypeDescription
<none>uint256The 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

NameTypeDescription
<none>RewardsParametersrewardsParameters_ 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

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).
positionBonusMultiplierBpsuint16Multiplier 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).