Skip to content

Commit

Permalink
Merge pull request #298 from rainlanguage/2024-11-27-wflr-usdc-dsf
Browse files Browse the repository at this point in the history
WLFR<>USDC.e DSF setup
  • Loading branch information
hardyjosh authored Nov 28, 2024
2 parents af9592d + 97bd9c4 commit cb6c757
Showing 1 changed file with 112 additions and 0 deletions.
112 changes: 112 additions & 0 deletions public/_strategies/raindex/2-dynamic-spread/dynamic-spread.rain
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,101 @@ gui:
- 0.05
- 0.2
- 0.4
- deployment: flare-usdce-wflr
name: USDC.e<>WFLR on Flare.
description: Rotate USDC.e (Bridged USDC on Stargate) and WFLR 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 (USDC.e per WFLR)
description: The rough USD price you see for WFLR on Dextools (e.g. 0.022).
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.01x
value: 1.01
- name: 1.02x
value: 1.02
- name: 1.05x
value: 1.05
- 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: 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 USDC.e that will be offered in a single auction.
min: 0
presets:
- name: $10
value: 10
- name: $20
value: 20
- name: $50
value: 50
- name: $100
value: 100
- binding: min-amount
name: Minimum amount
description: The minimum amount of USDC.e that will be offered in a single auction.
min: 0
presets:
- name: $0.1
value: 0.1
- name: $1
value: 1
- name: $10
value: 10

deposits:
- token: flare-usdce
min: 0
presets:
- 0
- 0.01
- 50
- 100
- token: flare-wflr
min: 0
presets:
- 0
- 0.01
- 50
- 100

- deployment: flare-sflr-joule
name: sFLR<>JOULE on Flare.
description: Rotate sFLR (Sceptre staked FLR) and JOULE on Flare.
Expand Down Expand Up @@ -2239,6 +2333,12 @@ scenarios:
amount-token: 0xfbda5f676cb37624f28265a144a48b0d6e87d3b6
initial-output-token: 0x12e605bc104e93B45e1aD99F9e555f659051c2BB
initial-input-token: 0xfbda5f676cb37624f28265a144a48b0d6e87d3b6
usdce-wflr:
runs: 1
bindings:
amount-token: 0xfbda5f676cb37624f28265a144a48b0d6e87d3b6
initial-output-token: 0x1D80c49BbBCd1C0911346656B529DF9E5c2F783d
initial-input-token: 0xfbda5f676cb37624f28265a144a48b0d6e87d3b6
usdce-weth:
runs: 1
bindings:
Expand Down Expand Up @@ -2666,6 +2766,15 @@ orders:
outputs:
- token: flare-usdce
- token: flare-weth
flare-usdce-wflr:
network: flare
orderbook: flare
inputs:
- token: flare-usdce
- token: flare-wflr
outputs:
- token: flare-usdce
- token: flare-wflr
polygon-quick-old-quick:
network: polygon
orderbook: polygon
Expand Down Expand Up @@ -2791,6 +2900,9 @@ deployments:
flare-usdce-weth:
order: flare-usdce-weth
scenario: flare.usdce-weth
flare-usdce-wflr:
order: flare-usdce-wflr
scenario: flare.usdce-wflr
flare-sflr-joule:
order: flare-sflr-joule
scenario: flare.sflr-joule
Expand Down

0 comments on commit cb6c757

Please sign in to comment.