Skip to content

Commit 020bb8d

Browse files
committed
Clarify strict MultiSwapper mock behavior
1 parent e695da6 commit 020bb8d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cadence/tests/contracts/MockSwapper.cdc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ access(all) contract MockSwapper {
202202
}
203203

204204
/// TEST-ONLY capacity-limited swapper that also enforces the provided quote.
205+
/// Specific behavior under test:
206+
/// - quoteOut() may report a reduced executable inAmount when maxOut caps the route
207+
/// - swap()/swapBack() reject execution when more input is forwarded than quote.inAmount
205208
access(all) struct StrictCapLimitedSwapper : DeFiActions.Swapper {
206209
access(self) let inVault: Type
207210
access(self) let outVault: Type

0 commit comments

Comments
 (0)