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

AJNA<>USDC Auction Dca #347

Merged
merged 1 commit into from
Feb 5, 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
227 changes: 226 additions & 1 deletion public/_strategies/raindex/1-auction-dca/auction-dca.rain
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ tokens:
network: base
address: 0x2F20Cf3466f80A5f7f532fCa553c8cbc9727FEf6
decimals: 18
base-ajna:
network: base
address: 0x7F05a7A9AF2f5a07D1e64877C8dC37a64a22508E
decimals: 18
base-weth:
network: base
address: 0x4200000000000000000000000000000000000006
Expand Down Expand Up @@ -384,6 +388,20 @@ orders:
- token: base-paid
outputs:
- token: base-usdc
base-usdc-ajna:
orderbook: base
network: base
inputs:
- token: base-usdc
outputs:
- token: base-ajna
base-ajna-usdc:
orderbook: base
network: base
inputs:
- token: base-ajna
outputs:
- token: base-usdc
base-usdc-sarco:
orderbook: base
network: base
Expand Down Expand Up @@ -937,6 +955,12 @@ deployments:
base-akuma-usdc:
order: base-akuma-usdc
scenario: base
base-usdc-ajna:
order: base-usdc-ajna
scenario: base
base-ajna-usdc:
order: base-ajna-usdc
scenario: base
base-usdc-toast:
order: base-usdc-toast
scenario: base
Expand Down Expand Up @@ -4928,7 +4952,208 @@ gui:
value: 100
- name: 500
value: 500


- deployment: base-usdc-ajna
name: Sell AJNA for USDC on Base.
description: >
Sell AJNA for USDC on Base.
deposits:
- token: base-ajna
min: 0
presets:
- 0
- 100000
- 500000
- 1000000
- 10000000

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 (AJNA per period)
description: >
The amount of AJNA to spend each budget period.
min: 0
- binding: max-trade-amount
name: Maximum trade size (AJNA)
description: >
The maximum amount of AJNA to sell in a single auction.
min: 0
- binding: min-trade-amount
name: Minimum trade size (AJNA)
description: >
The minimum amount of AJNA 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 AJNA
description: >
The absolute minimum amount of USDC per AJNA that the auction will trade at (e.g. 0.0015 USDC per AJNA)
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 AJNA
description: >
The initial USDC per AJNA to kickoff the first auction (e.g. 0.0027 USDC per AJNA)
min: 0
presets:
- name: 0.05
value: 0.05
- name: 0.1
value: 0.1

- deployment: base-ajna-usdc
name: Buy AJNA with USDC on Base.
description: >
Buy AJNA 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 AJNA per USDC
description: >
The absolute minimum amount of AJNA per USDC that the auction will trade at (e.g. 300 AJNA 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 AJNA per USDC
description: >
The initial AJNA per USDC to kickoff the first auction (e.g. 367 AJNA per USDC)
min: 0
presets:
- name: 20
value: 20
- name: 50
value: 50
- name: 100
value: 100
- name: 500
value: 500

- deployment: base-usdc-toast
name: Sell TOAST for USDC on Base.
description: >
Expand Down
Loading