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

cyWETH<>USDC.e Auction Dca #345

Merged
merged 2 commits into from
Feb 2, 2025
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
201 changes: 201 additions & 0 deletions public/_strategies/raindex/1-auction-dca/auction-dca.rain
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ tokens:
flare-cysflr:
network: flare
address: 0x19831cfB53A0dbeAD9866C43557C1D48DfF76567
decimals: 18
flare-cyweth:
network: flare
address: 0xd8BF1d2720E9fFD01a2F9A2eFc3E101a05B852b4
decimals: 18
flare-cusdx:
network: flare
address: 0xFE2907DFa8DB6e320cDbF45f0aa888F6135ec4f8
Expand Down Expand Up @@ -582,6 +587,20 @@ orders:
- token: flare-cusdx
outputs:
- token: flare-cysflr
flare-cyweth-usdce:
orderbook: flare
network: flare
inputs:
- token: flare-cyweth
outputs:
- token: flare-usdce
flare-usdce-cyweth:
orderbook: flare
network: flare
inputs:
- token: flare-usdce
outputs:
- token: flare-cyweth
flare-cusdx-usdce:
orderbook: flare
network: flare
Expand Down Expand Up @@ -993,6 +1012,12 @@ deployments:
flare-cusdx-cysflr:
order: flare-cusdx-cysflr
scenario: flare
flare-cyweth-usdce:
order: flare-cyweth-usdce
scenario: flare
flare-usdce-cyweth:
order: flare-usdce-cyweth
scenario: flare
flare-cysflr-usdce:
order: flare-cysflr-usdce
scenario: flare
Expand Down Expand Up @@ -6810,6 +6835,182 @@ gui:
The initial cUSDX per cysFLR to kickoff the first auction. (e.g. 0.80 cUSDX per cysFLR)
min: 0

- deployment: flare-cyweth-usdce
name: Sell USDC.e for cyWETH on Flare.
description: >
Swap USDC.e for cyWETH on Flare.
deposits:
- token: flare-usdce
min: 0
presets:
- 0
- 100
- 200
- 500
- 1000
- 2000

fields:
- binding: time-per-amount-epoch
name: Budget period (in seconds)
description: >
The budget is spent over this time period.
min: 1
presets:
- name: Per minute (60)
value: 60
- name: Per hour (3600)
value: 3600
- name: Per day (86400)
value: 86400
- name: Per week (604800)
value: 604800
- binding: amount-per-epoch
name: Budget (USDC.e per period)
description: >
The amount of USDC.e to spend each budget period.
min: 0
- binding: max-trade-amount
name: Maximum trade size (USDC.e)
description: >
The maximum amount of USDC.e to sell in a single auction.
min: 0
- binding: min-trade-amount
name: Minimum trade size (USDC.e)
description: >
The minimum amount of USDC.e to sell in a single auction.
min: 0
- binding: time-per-trade-epoch
name: Auction period (in seconds)
description: >
The auction period is the time between each auction price halvening.
presets:
- name: Every hour (3600)
value: 3600
- name: Every 2 hours (7200)
value: 7200
- binding: baseline
name: Baseline cyWETH per USDC.e
description: >
The absolute minimum amount of cyWETH per USDC.e that the auction will trade at. (e.g. 0.5 cyWETH per USDC.e)
min: 0
- binding: next-trade-multiplier
name: Auction start multiplier
description: >
The multiplier to apply to the last trade to kick off the next auction.
min: 1.01
presets:
- name: 1.01x
value: 1.01
- name: 1.02x
value: 1.02
- name: 1.05x
value: 1.05
- binding: next-trade-baseline-multiplier
name: Auction end multiplier
description: >
The multiplier to apply to the last trade to set the baseline for the next auction.
presets:
- name: Disabled (0)
value: 0
- name: 0.9x
value: 0.9
- name: 0.95x
value: 0.95
- binding: initial-io
name: Kickoff cyWETH per USDC.e
description: >
The initial cyWETH per USDC.e to kickoff the first auction. (e.g. 1 cyWETH per USDC.e)
min: 0

- deployment: flare-usdce-cyweth
name: Sell cyWETH for USDC.e on Flare.
description: >
Swap cyWETH for USDC.e on Flare.
deposits:
- token: flare-cyweth
min: 0
presets:
- 0
- 1000
- 2000
- 5000
- 10000
- 20000

fields:
- binding: time-per-amount-epoch
name: Budget period (in seconds)
description: >
The budget is spent over this time period.
min: 1
presets:
- name: Per minute (60)
value: 60
- name: Per hour (3600)
value: 3600
- name: Per day (86400)
value: 86400
- name: Per week (604800)
value: 604800
- binding: amount-per-epoch
name: Budget (cyWETH per period)
description: >
The amount of cyWETH to spend each budget period.
min: 0
- binding: max-trade-amount
name: Maximum trade size (cyWETH)
description: >
The maximum amount of cyWETH to sell in a single auction.
min: 0
- binding: min-trade-amount
name: Minimum trade size (cyWETH)
description: >
The minimum amount of cyWETH to sell in a single auction.
min: 0
- binding: time-per-trade-epoch
name: Auction period (in seconds)
description: >
The auction period is the time between each auction price halvening.
presets:
- name: Every hour (3600)
value: 3600
- name: Every 2 hours (7200)
value: 7200
- binding: baseline
name: Baseline USDC.e per cyWETH
description: >
The absolute minimum amount of USDC.e per cyWETH that the auction will trade at. (e.g. 0.75 USDC.e per cyWETH)
min: 0
- binding: next-trade-multiplier
name: Auction start multiplier
description: >
The multiplier to apply to the last trade to kick off the next auction.
min: 1.01
presets:
- name: 1.01x
value: 1.01
- name: 1.02x
value: 1.02
- name: 1.05x
value: 1.05
- binding: next-trade-baseline-multiplier
name: Auction end multiplier
description: >
The multiplier to apply to the last trade to set the baseline for the next auction.
presets:
- name: Disabled (0)
value: 0
- name: 0.9x
value: 0.9
- name: 0.95x
value: 0.95
- binding: initial-io
name: Kickoff USDC.e per cyWETH
description: >
The initial USDC.e per cyWETH to kickoff the first auction. (e.g. 1 USDC.e per cyWETH)
min: 0

- deployment: flare-usdce-cusdx
name: Sell cUSDX for USDCe on Flare.
description: >
Expand Down
Loading