From 5cfef770c5abd65fe906ad9bfa7639b8c74b86ce Mon Sep 17 00:00:00 2001 From: Pedro Yves Fracari Date: Mon, 12 Aug 2024 10:02:43 -0300 Subject: [PATCH] add relay protection explanation dev comment on stop loss --- src/types/StopLoss.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/StopLoss.sol b/src/types/StopLoss.sol index ad85a23..2ac6e0f 100644 --- a/src/types/StopLoss.sol +++ b/src/types/StopLoss.sol @@ -20,7 +20,7 @@ string constant ORDER_EXPIRED = "order expired"; * @title StopLoss conditional order * Requires providing two price oracles (e.g. chainlink) and a strike price. If the sellToken price falls below the strike price, the order will be triggered * @notice Both oracles need to be denominated in the same quote currency (e.g. GNO/ETH and USD/ETH for GNO/USD stop loss orders) - * @dev This order type does not have any replay protection, meaning it may trigger again in the next validityBucket (e.g. 00:15-00:30) + * @dev This order type has replay protection due to the `validTo` parameter, ensuring it will just execute one time */ contract StopLoss is BaseConditionalOrder { /// @dev Scaling factor for the strike price