Skip to content

Commit 7c6be09

Browse files
committed
update documentation on the wrapper interface
1 parent 13e09aa commit 7c6be09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/CowWrapper.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ interface ICowWrapper {
7474
/// @notice Initiates a wrapped settlement call
7575
/// @dev This is the entry point for wrapped settlements. The wrapper will execute custom logic
7676
/// before calling the next wrapper or settlement contract in the chain.
77-
/// @param settleData ABI-encoded call to ICowSettlement.settle()
78-
/// @param wrapperData Encoded chain of wrapper-specific data followed by addresses of next wrappers/settlement
77+
/// @param settleData ABI-encoded call to ICowSettlement.settle() containing trade data
78+
/// @param wrapperData Encoded data for this wrapper and the chain of next wrappers/settlement.
79+
/// Format: [2-byte len][wrapper-specific-data][next-address]([2-byte len][wrapper-specific-data][next-address]...)
7980
function wrappedSettle(bytes calldata settleData, bytes calldata wrapperData) external;
8081
}
8182

0 commit comments

Comments
 (0)