Skip to content

Liquidator is able to withdraw unclaimed user's rewards #182

Description

@lekhovitsky

Liquidations are designed to be quite general to allow liquidators to make use of adapters and router instead of solving the routing issue themselves. The price of this flexibility is that we can't fully control what adapter calls are made during liquidation and what happens to the tokens that were not enabled as collateral and were not accounted in totalValue. One slightly unexpected and unfortunate instance of this is that liquidator can claim and withdraw user's farming rewards.

Full mitigation of this issue might require an undesired overhaul of the system. Much simpler to implement, "deleverage bots" can perform actions like claiming rewards / enabling disabled tokens / swapping collateral to underlying once account's health factor drops below 1.01.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions