Skip to content

Commit

Permalink
add relay protection explanation dev comment on stop loss
Browse files Browse the repository at this point in the history
  • Loading branch information
yvesfracari committed Aug 12, 2024
1 parent 9666d9d commit 5cfef77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/StopLoss.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5cfef77

Please sign in to comment.