USG peg assumption in on-chain safety checks incorrect liquidation/insolvency decisions when USG depegs
The market contract compares collateral valued in USD against debt denominated in USG tokens without converting the debt to USD, effectively assuming one USG always equals one dollar. If USG depegs, health and liquidation checks become wrong, which could cause silent insolvency or unfair liquidations.
Source: https://github.com/sherlock-audit/2025-08-usg-tangent-judging/issues/102
This issue has been acknowledged by the team but won't be fixed at this time.
Found by
AMOW, BADROBINX, X0sauce, Xmanuel, covey0x07, oxelmiguel, sl1, tobi0x18
Summary
MarketCore computes health, LTV and liquidation eligibility using collateral USD price but does not convert USG-denominated debt to USD (it assumes 1 USG == $1), so a USG depeg causes incorrect safety checks that can produce silent insolvency or unfair liquidations.
The code compares USD-valued collateral (via a collateral oracle) against USG token units without converting the USG amount into USD using a USG price oracle. This is a unit mismatch: collateral is valued in USD, debt is denominated in USG, yet the comparison assumes 1 USG == $1 on-chain.
The function returns:
https://github.com/sherlock-audit/2025-08-usg-tangent/blob/main/tangent-contracts/src/USG/Market/abstract/Collateral.sol#L194
returns USD price (1e18), but userDebt_ is raw USG token units; there is no multiplication by USG price to convert debt → USD.
Impacts Silent insolvency Incorrect liquidation / incentive mismatch Operational risk due to off-chain keepers
Recommendation Convert debt to USD for safety checks
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 health and liquidation maths mixes units: collateral is converted to USD via an oracle, but USG-denominated debt is used as raw token units with no USG price conversion.
Impact
If USG depegs, the contract could misjudge borrower health, leading to silent insolvency or incorrect and unfair liquidations; the team acknowledged the issue but will not fix it at this time.
What the attacker needed
USG must depeg from $1; borrowers hold USG-denominated debt
The fix
The debt should be converted to USD using a USG price oracle before it is compared with the USD-valued collateral.
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.
This lending-style contract decides whether a borrower is safe by comparing what their collateral is worth in dollars with how much they owe. The problem is that the debt is counted in a different token (USG) but treated as if each unit were worth exactly one dollar. If that token loses its peg, the comparison is wrong, so the contract may think a borrower is fine when they are not, or liquidate someone unfairly.
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.