Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CYSFLR<>cUSDX Dsf #321

Merged
merged 5 commits into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions public/_strategies/raindex/2-dynamic-spread/dynamic-spread.rain
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,101 @@ gui:
- 100
- 1000
- 10000
- deployment: flare-cusdx-cysflr
name: cUSDX<>cysFLR on Flare.
description: Rotate cUSDX 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 (cUSDX per cysFLR)
description: The rough initial cUSDX 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 cUSDX 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 cUSDX 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-cusdx
min: 0
presets:
- 0
- 100
- 200
- 500

- deployment: flare-usdce-sflr
name: USDC.e<>sFLR on Flare.
description: Rotate USDC.e (Bridged USDC on Stargate) and sFLR on Flare.
Expand Down Expand Up @@ -2695,6 +2790,12 @@ scenarios:
amount-token: 0x12e605bc104e93B45e1aD99F9e555f659051c2BB
initial-output-token: 0x12e605bc104e93B45e1aD99F9e555f659051c2BB
initial-input-token: 0x1D80c49BbBCd1C0911346656B529DF9E5c2F783d
cusdx-cysflr:
runs: 1
bindings:
amount-token: 0xFE2907DFa8DB6e320cDbF45f0aa888F6135ec4f8
initial-output-token: 0x19831cfB53A0dbeAD9866C43557C1D48DfF76567
initial-input-token: 0xFE2907DFa8DB6e320cDbF45f0aa888F6135ec4f8
sflr-joule:
runs: 1
bindings:
Expand Down Expand Up @@ -2992,6 +3093,12 @@ tokens:
network: flare
address: 0x1502FA4be69d526124D453619276FacCab275d3D
decimals: 18
flare-cysflr:
network: flare
address: 0x19831cfB53A0dbeAD9866C43557C1D48DfF76567
flare-cusdx:
network: flare
address: 0xFE2907DFa8DB6e320cDbF45f0aa888F6135ec4f8
flare-joule:
network: flare
address: 0xE6505f92583103AF7ed9974DEC451A7Af4e3A3bE
Expand Down Expand Up @@ -3176,6 +3283,15 @@ orders:
outputs:
- token: flare-sflr
- token: flare-wflr
flare-cusdx-cysflr:
network: flare
orderbook: flare
inputs:
- token: flare-cusdx
- token: flare-cysflr
outputs:
- token: flare-cusdx
- token: flare-cysflr
flare-sflr-joule:
network: flare
orderbook: flare
Expand Down Expand Up @@ -3361,6 +3477,9 @@ deployments:
flare-sflr-wflr:
order: flare-sflr-wflr
scenario: flare.sflr-wflr
flare-cusdx-cysflr:
order: flare-cusdx-cysflr
scenario: flare.cusdx-cysflr
flare-usdce-weth:
order: flare-usdce-weth
scenario: flare.usdce-weth
Expand Down
Loading