From 1eeff3fbdfafed71ea4cb492fd1e354465c4f1bf Mon Sep 17 00:00:00 2001 From: Pedro Yves Fracari <55461956+yvesfracari@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:20:02 -0300 Subject: [PATCH] Add relay protection explanation dev comment on stop loss (#90) --- 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