From 227c732b8ac4a21372ef76952bb0242763370276 Mon Sep 17 00:00:00 2001 From: Siddharth2207 Date: Wed, 5 Feb 2025 23:49:44 +0530 Subject: [PATCH] cyweth<>cysflr dsf --- .../2-dynamic-spread/dynamic-spread.rain | 118 ++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/public/_strategies/raindex/2-dynamic-spread/dynamic-spread.rain b/public/_strategies/raindex/2-dynamic-spread/dynamic-spread.rain index 649a06f2..c0858d9c 100644 --- a/public/_strategies/raindex/2-dynamic-spread/dynamic-spread.rain +++ b/public/_strategies/raindex/2-dynamic-spread/dynamic-spread.rain @@ -2015,6 +2015,101 @@ gui: - 200 - 500 + - deployment: flare-cyweth-cysflr + name: cyWETH<>cysFLR on Flare. + description: Rotate cyWETH and cysFLR on Flare. + + fields: + - binding: is-fast-exit + name: Fast exit? + description: If enabled, the strategy will attempt to exit any position it builds up in a single trade, as soon as it can do so profitably. + presets: + - name: Yes + value: 1 + - name: No + value: 0 + - binding: initial-io + name: Initial price (cyWETH per cysFLR) + description: The rough initial cyWETH per cysFLR ratio (e.g. 0.75). + min: 0 + - binding: next-trade-multiplier + name: Next trade multiplier + description: This is the most the strategy will move the price in a single trade. Larger numbers will capture larger price jumps but trade less often, smaller numbers will trade more often but be less defensive against large price jumps in the market. + min: 1 + presets: + - name: 1.001x + value: 1.001 + - name: 1.002x + value: 1.002 + - name: 1.005x + value: 1.005 + - binding: cost-basis-multiplier + name: Cost basis multiplier + description: The minimum spread applied to the breakeven in addition to the auction. This is applied in both directions so 1.01x would be a 2% total spread. + min: 1 + presets: + - name: 1 (auction spread only) + value: 1 + - name: 1.0005x (0.1% total) + value: 1.0005 + - name: 1.001x (0.2% total) + value: 1.001 + - name: 1.0025x (0.5% total) + value: 1.0025 + - name: 1.005x (1% total) + value: 1.005 + - binding: time-per-epoch + name: Time per halving (seconds) + description: The amount of time (in seconds) between halvings of the price and the amount offered during each auction, relative to their baselines. + min: 600 + presets: + - name: 1 hour (3600) + value: 3600 + - name: 2 hours (7200) + value: 7200 + - name: 4 hours (14400) + value: 14400 + - name: 8 hours (28800) + value: 28800 + - binding: max-amount + name: Max amount + description: The maximum amount of cyWETH that will be offered in a single auction. + min: 0 + presets: + - name: 10 + value: 10 + - name: 100 + value: 100 + - name: 1000 + value: 1000 + - binding: min-amount + name: Minimum amount + description: The minimum amount of cyWETH that will be offered in a single auction. + min: 0 + presets: + - name: 10 + value: 10 + - name: 100 + value: 100 + - name: 1000 + value: 1000 + + deposits: + - token: flare-cysflr + min: 0 + presets: + - 0 + - 100 + - 200 + - 500 + - token: flare-cyweth + min: 0 + presets: + - 0 + - 100 + - 200 + - 500 + - deployment: flare-wflr-cysflr name: WFLR<>cysFLR on Flare. description: Rotate WFLR and cysFLR on Flare. @@ -3687,6 +3782,12 @@ scenarios: amount-token: 0xFE2907DFa8DB6e320cDbF45f0aa888F6135ec4f8 initial-output-token: 0x19831cfB53A0dbeAD9866C43557C1D48DfF76567 initial-input-token: 0xFE2907DFa8DB6e320cDbF45f0aa888F6135ec4f8 + cyweth-cysflr: + runs: 1 + bindings: + amount-token: 0xd8bf1d2720e9ffd01a2f9a2efc3e101a05b852b4 + initial-output-token: 0x19831cfB53A0dbeAD9866C43557C1D48DfF76567 + initial-input-token: 0xd8bf1d2720e9ffd01a2f9a2efc3e101a05b852b4 wflr-cysflr: runs: 1 bindings: @@ -4031,6 +4132,11 @@ tokens: flare-cysflr: network: flare address: 0x19831cfB53A0dbeAD9866C43557C1D48DfF76567 + decimals: 18 + flare-cyweth: + network: flare + address: 0xd8BF1d2720E9fFD01a2F9A2eFc3E101a05B852b4 + decimals: 18 flare-cusdx: network: flare address: 0xFE2907DFa8DB6e320cDbF45f0aa888F6135ec4f8 @@ -4288,6 +4394,15 @@ orders: outputs: - token: flare-cusdx - token: flare-cysflr + flare-cyweth-cysflr: + network: flare + orderbook: flare + inputs: + - token: flare-cyweth + - token: flare-cysflr + outputs: + - token: flare-cyweth + - token: flare-cysflr flare-wflr-cysflr: network: flare orderbook: flare @@ -4530,6 +4645,9 @@ deployments: flare-wflr-cysflr: order: flare-wflr-cysflr scenario: flare.wflr-cysflr + flare-cyweth-cysflr: + order: flare-cyweth-cysflr + scenario: flare.cyweth-cysflr flare-usdce-weth: order: flare-usdce-weth scenario: flare.usdce-weth