Vault owner is incetivized to not switch invalid collateral token, during liquidation
When a collateral token becomes invalid, the liquidation logic shifts the entire payment burden to the collateral pool, reducing the vault owner's liability. This creates an incentive for the vault owner to avoid switching to a valid collateral token, undermining the system's design.
Originally disclosed on Code4rena
Submitted by rvierdiiev
Finding Description and Impact
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 ofpoolFactor). - 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.
Recommended Mitigation Steps
In case the collateral token becomes invalid, liquidation should still require payments from the vault based on the same vaultFactor logic, rather than shifting the entire burden to the pool. This ensures agents remain properly incentivized to update their collateral token when governance decisions invalidate one.
Token deprecation and agent vault token switching have been removed.
Status: Mitigation confirmed. Full details in reports from givn, rvierdiiev, and farman1094.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the liquidation payment strategy assigns the full payment to the collateral pool when the vault's collateral token is invalid, instead of applying the normal vaultFactor split.
Impact
Vault owners may deliberately keep an invalid collateral token to reduce their liquidation liability, shifting costs to the pool and undermining the intended incentive to switch.
What the attacker needed
Collateral token becomes invalid via governance; vault is undercollateralised during liquidation
The fix
Liquidation should still require vault payments based on the same vaultFactor logic even when the collateral token is invalid, so agents remain incentivised to switch; the project mitigated by removing token deprecation and vault token switching entirely.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In this system, a vault owner must switch to a new collateral token if the old one is declared invalid. But during liquidation, if the token is invalid, the shared pool pays more and the vault owner pays less. So the owner is rewarded for not switching, which goes against the rules.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.