Return to site
Return to site

Bug Deep Dive #26

Vault owner is incetivized to not switch invalid collateral token, during liquidation - $33790

· Bug Deep Dive
Section image

A collateral token may become invalid following a governance decision. In such a case, the agent is expected to switch it to another valid collateral token. However, there is a scenario where the vault owner has no incentive to perform this switch at least temporarily.
During liquidation, if the vault collateral token is invalid, then the collateral pool covers the entire payment. If both the pool and the vault are undercollateralized, the vault’s liability is capped at half of the pool’s responsibility.

This creates an incentive for the agent:

  • With a valid collateral token, the vault typically pays 100% (vaultFactor) while the pool pays 30% (poolFactor), totaling ~115% for the agent (as vault covers half of poolFactor).
  • With an invalid collateral token, the vault’s effective share may drop to only ~65% of responsibility, which is significantly more favorable for the agent.

As a result, agents may strategically avoid switching to a valid collateral token during liquidation, undermining the system’s design.

Section image

Alpha: think about the business logic of the flows, is there a way an actor can act in a certain way that doesn't make sense and profit?

Conclusion

This finding would earn you $33790, only requiring a business understanding of the code.

Full Report
Codebase

Subscribe
Previous
Bug Deep Dive #25
Next
Bug Deep Dive #27
 Return to site
Cookie Use
We use cookies to improve browsing experience, security, and data collection. By accepting, you agree to the use of cookies for advertising and analytics. You can change your cookie settings at any time. Learn More
Accept all
Settings
Decline All
Cookie Settings
Necessary Cookies
These cookies enable core functionality such as security, network management, and accessibility. These cookies can’t be switched off.
Analytics Cookies
These cookies help us better understand how visitors interact with our website and help us discover errors.
Preferences Cookies
These cookies allow the website to remember choices you've made to provide enhanced functionality and personalization.
Save