We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28cc486 commit f72e5b2Copy full SHA for f72e5b2
src/Polyswap.sol
@@ -61,4 +61,13 @@ contract Polyswap is BaseConditionalOrder {
61
revert IConditionalOrder.PollTryNextBlock(CONDITION_NOT_MET);
62
}
63
64
+
65
+ /**
66
+ * @dev Get the hash of the Polyswap order.
67
+ * @param polyswapOrder The Polyswap order to get the hash of.
68
+ * @return The hash of the Polyswap order.
69
+ */
70
+ function getOrderHash(PolyswapOrder.Data memory polyswapOrder) public view returns (bytes32) {
71
+ return GPv2Order.hash(PolyswapOrder.orderFor(polyswapOrder), composableCow.domainSeparator());
72
+ }
73
0 commit comments