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

RKFI<>USDC Dsf, Auction Dca #336

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
223 changes: 223 additions & 0 deletions public/_strategies/raindex/1-auction-dca/auction-dca.rain
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ tokens:
network: base
address: 0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf
decimals: 8
base-rkfi:
network: base
address: 0x65FdA84473084bA2CcA8452883E6eA3561092234
decimals: 18
base-usdc:
network: base
address: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Expand Down Expand Up @@ -349,6 +353,20 @@ orders:
- token: base-paid
outputs:
- token: base-usdc
base-usdc-rkfi:
orderbook: base
network: base
inputs:
- token: base-usdc
outputs:
- token: base-rkfi
base-rkfi-usdc:
orderbook: base
network: base
inputs:
- token: base-rkfi
outputs:
- token: base-usdc
base-usdc-wlth:
orderbook: base
network: base
Expand Down Expand Up @@ -828,6 +846,12 @@ deployments:
base-paid-usdc:
order: base-paid-usdc
scenario: base
base-usdc-rkfi:
order: base-usdc-rkfi
scenario: base
base-rkfi-usdc:
order: base-rkfi-usdc
scenario: base
base-usdc-wlth:
order: base-usdc-wlth
scenario: base
Expand Down Expand Up @@ -4180,6 +4204,205 @@ gui:
value: 20
- name: 50
value: 50

- deployment: base-usdc-rkfi
name: Sell RKFI for USDC on Base.
description: >
Sell RKFI for USDC on Base.
deposits:
- token: base-rkfi
min: 0
presets:
- 0
- 10000
- 50000
- 100000
- 1000000

fields:
- binding: time-per-amount-epoch
name: Budget period (in seconds)
description: >
The budget is spent over this time period.
min: 1
presets:
- name: Every 30 minutes (1800)
value: 1800
- name: Per hour (3600)
value: 3600
- name: Per day (86400)
value: 86400
- name: Per week (604800)
value: 604800
- binding: amount-per-epoch
name: Budget (RKFI per period)
description: >
The amount of RKFI to spend each budget period.
min: 0
- binding: max-trade-amount
name: Maximum trade size (RKFI)
description: >
The maximum amount of RKFI to sell in a single auction.
min: 0
- binding: min-trade-amount
name: Minimum trade size (RKFI)
description: >
The minimum amount of RKFI 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
- name: Every 4 hours (14400)
value: 14400
- binding: baseline
name: Baseline USDC per RKFI
description: >
The absolute minimum amount of USDC per RKFI that the auction will trade at (e.g. 0.0010 USDC per RKFI)
min: 0
presets:
- name: 0.01
value: 0.01
- name: 0.02
value: 0.02
- name: 0.05
value: 0.05
- 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 per RKFI
description: >
The initial USDC per RKFI to kickoff the first auction (e.g. 0.0014 USDC per RKFI)
min: 0
presets:
- name: 0.05
value: 0.05
- name: 0.1
value: 0.1

- deployment: base-rkfi-usdc
name: Buy RKFI with USDC on Base.
description: >
Buy RKFI with USDC on Base.
deposits:
- token: base-usdc
min: 0
presets:
- 0
- 100
- 1000
- 10000

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 hour (3600)
value: 3600
- name: Per day (86400)
value: 86400
- name: Per week (604800)
value: 604800
- binding: amount-per-epoch
name: Budget (USDC per period)
description: >
The amount of USDC to spend each budget period.
min: 0
- binding: max-trade-amount
name: Maximum trade size (USDC)
description: >
The maximum amount of USDC to spend in a single auction.
min: 0
- binding: min-trade-amount
name: Minimum trade size (USDC)
description: >
The minimum amount of USDC to spend 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
- name: Every 4 hours (14400)
value: 14400
- binding: baseline
name: Baseline RKFI per USDC
description: >
The absolute minimum amount of RKFI per USDC that the auction will trade at (e.g. 600 RKFI per USDC)
min: 0
presets:
- name: 10
value: 10
- name: 20
value: 20
- name: 50
value: 50
- 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 RKFI per USDC
description: >
The initial RKFI per USDC to kickoff the first auction (e.g. 681 RKFI per USDC)
min: 0
presets:
- name: 20
value: 20
- name: 50
value: 50

- deployment: base-usdc-wlth
name: Sell WLTH for USDC on Base.
Expand Down
Loading
Loading