Skip to content

Commit

Permalink
Merge branch 'main' into 2024-11-29-nht-dsf
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth2207 committed Dec 5, 2024
2 parents 575d2c2 + 76bd37e commit c00dfe6
Show file tree
Hide file tree
Showing 2 changed files with 380 additions and 1 deletion.
260 changes: 260 additions & 0 deletions public/_strategies/raindex/1-auction-dca/auction-dca.rain
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ tokens:
network: polygon
address: 0x3c59798620e5fEC0Ae6dF1A19c6454094572Ab92
decimals: 18
polygon-usdce:
network: polygon
address: 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174
decimals: 6
polygon-gfi:
network: polygon
address: 0x874e178A2f3f3F9d34db862453Cd756E7eAb0381
decimals: 18
polygon-ioen:
network: polygon
address: 0xd0e9c8f5Fae381459cf07Ec506C1d2896E8b5df6
Expand Down Expand Up @@ -368,6 +376,20 @@ orders:
- token: polygon-mnw
outputs:
- token: polygon-usdc
polygon-gfi-usdce:
orderbook: polygon
network: polygon
inputs:
- token: polygon-gfi
outputs:
- token: polygon-usdce
polygon-usdce-gfi:
orderbook: polygon
network: polygon
inputs:
- token: polygon-usdce
outputs:
- token: polygon-gfi
polygon-usdc-ioen:
orderbook: polygon
network: polygon
Expand Down Expand Up @@ -472,6 +494,12 @@ deployments:
polygon-usdc-mnw:
order: polygon-usdc-mnw
scenario: polygon
polygon-gfi-usdce:
order: polygon-gfi-usdce
scenario: polygon
polygon-usdce-gfi:
order: polygon-usdce-gfi
scenario: polygon
polygon-ioen-usdc:
order: polygon-ioen-usdc
scenario: polygon
Expand Down Expand Up @@ -1403,6 +1431,238 @@ gui:
description: >
The initial MNW per USDC to kickoff the first auction (e.g. 2.2).
min: 0.01

- deployment: polygon-usdce-gfi
name: Sell GFI for USDC.e on Polygon.
description: >
DCA GFI for USDC.e on Polygon.
deposits:
- token: polygon-gfi
min: 0
presets:
- 0
- 10000
- 20000
- 100000
- 200000
fields:
- binding: time-per-amount-epoch
name: Budget period (in seconds)
description: >
The budget is spent over this time period.

For example, if the budget is daily then this is 86400 seconds (24 * 60 * 60).
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
- name: Per 30 days (2592000)
value: 2592000
- name: Per 365 days (31536000)
value: 31536000
- binding: amount-per-epoch
name: Budget (GFI per period)
description: >
The amount of GFI to spend each budget period.

For example, if the budget is daily and this is 1000 then 1000 GFI will be sold for USDC.e each day.
min: 0
- binding: max-trade-amount
name: Maximum trade size (GFI)
description: >
The maximum amount of GFI to sell in a single auction.
min: 0
- binding: min-trade-amount
name: Minimum trade size (GFI)
description: >
The minimum amount of GFI 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.
min: 600
presets:
- name: Every 20 minutes (1200)
value: 1200
- name: Every 30 minutes (1800)
value: 1800
- name: Every hour (3600)
value: 3600
- name: Every 2 hours (7200)
value: 7200
- name: Every 3 hours (10800)
value: 10800
- name: Every 6 hours (21600)
value: 21600
- name: Every 12 hours (43200)
value: 43200
- name: Every 24 hours (86400)
value: 86400
- binding: baseline
name: Baseline USDC.e per GFI
description: >
The absolute minimum amount of USDC.e per GFI that the auction will trade at (e.g. 0.001).
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
- name: 1.1x
value: 1.1
- 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.
min: 0
presets:
- name: Disabled (0)
value: 0
- name: 0.7x
value: 0.7
- name: 0.8x
value: 0.8
- name: 0.9x
value: 0.9
- name: 0.95x
value: 0.95
- name: 0.99x
value: 0.99
- binding: initial-io
name: Kickoff USDC.e per GFI
description: >
The initial USDC.e per GFI to kickoff the first auction (e.g. 0.003).
min: 0

- deployment: polygon-gfi-usdce
name: Buy GFI with USDCe on Polygon.
description: >
DCA USDCe for GFI on Polygon.
deposits:
- token: polygon-usdce
min: 0
presets:
- 0
- 100
- 1000
- 5000
- 10000
fields:
- binding: time-per-amount-epoch
name: Budget period (in seconds)
description: >
The budget is spent over this time period.

For example, if the budget is daily then this is 86400 seconds (24 * 60 * 60).
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
- name: Per 30 days (2592000)
value: 2592000
- name: Per 365 days (31536000)
value: 31536000
- binding: amount-per-epoch
name: Budget (USDCe per period)
description: >
The amount of USDCe to spend each budget period.

For example, if the budget is daily and this is 100 then 100 USDCe will be sold for GFI each day.
min: 0
- binding: max-trade-amount
name: Maximum trade size (USDCe)
description: >
The maximum amount of USDCe to sell in a single auction.
min: 0
- binding: min-trade-amount
name: Minimum trade size (USDCe)
description: >
The minimum amount of USDCe 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.
min: 600
presets:
- name: Every 20 minutes (1200)
value: 1200
- name: Every 30 minutes (1800)
value: 1800
- name: Every hour (3600)
value: 3600
- name: Every 2 hours (7200)
value: 7200
- name: Every 3 hours (10800)
value: 10800
- name: Every 6 hours (21600)
value: 21600
- name: Every 12 hours (43200)
value: 43200
- name: Every 24 hours (86400)
value: 86400
- binding: baseline
name: Baseline GFI per USDCe
description: >
The absolute minimum amount of GFI per USDCe that the auction will trade at (e.g. 250).
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
- name: 1.1x
value: 1.1
- 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.
min: 0
presets:
- name: Disabled (0)
value: 0
- name: 0.7x
value: 0.7
- name: 0.8x
value: 0.8
- name: 0.9x
value: 0.9
- name: 0.95x
value: 0.95
- name: 0.99x
value: 0.99
- binding: initial-io
name: Kickoff GFI per USDCe
description: >
The initial GFI per USDCe to kickoff the first auction (e.g. 250).
min: 0

- deployment: polygon-usdc-ioen
name: Sell IOEN for USDC on Polygon.
Expand Down
Loading

0 comments on commit c00dfe6

Please sign in to comment.