We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e695da6 commit 020bb8dCopy full SHA for 020bb8d
1 file changed
cadence/tests/contracts/MockSwapper.cdc
@@ -202,6 +202,9 @@ access(all) contract MockSwapper {
202
}
203
204
/// 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
208
access(all) struct StrictCapLimitedSwapper : DeFiActions.Swapper {
209
access(self) let inVault: Type
210
access(self) let outVault: Type
0 commit comments