Skip to content

Commit 92b087e

Browse files
Updated comment before test according to suggestion
1 parent 439d48e commit 92b087e

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

cadence/tests/insurance_swapper_test.cdc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,14 @@ fun test_setInsuranceSwapper_wrongInputType_fails() {
212212
}
213213

214214
// -----------------------------------------------------------------------------
215-
/// Swapper returns 10 % less collateral than quoted.
215+
/// TODO: Update when automated liquidation (DEX swap execution) is implemented.
216216
///
217-
/// The protocol validates `seizeAmount < quote.inAmount`, which is checked
218-
/// before the swap executes, liquidation tx must revert.
217+
/// This test is intended to validate a scenario where the swapper returns less
218+
/// than quoted (e.g. due to slippage or malicious behavior).
219+
///
220+
/// Currently, manual liquidation only uses the swapper as a price reference,
221+
/// so this test effectively reduces to a DEX/oracle price deviation check and
222+
/// overlaps with existing tests.
219223
// -----------------------------------------------------------------------------
220224

221225
access(all)

0 commit comments

Comments
 (0)