Skip to content

Commit

Permalink
NHT<>USDT setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth2207 committed Dec 11, 2024
1 parent 79ab523 commit a1dedbe
Showing 1 changed file with 260 additions and 0 deletions.
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: 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359
decimals: 6
polygon-usdt:
network: polygon
address: 0xc2132D05D31c914a87C6611C10748AEb04B58e8F
decimals: 6
polygon-nht:
network: polygon
address: 0x84342e932797FC62814189f01F0Fb05F52519708
decimals: 18
polygon-mnw:
network: polygon
address: 0x3c59798620e5fEC0Ae6dF1A19c6454094572Ab92
Expand Down Expand Up @@ -394,6 +402,20 @@ orders:
- token: polygon-mnw
outputs:
- token: polygon-usdc
polygon-usdt-nht:
orderbook: polygon
network: polygon
inputs:
- token: polygon-usdt
outputs:
- token: polygon-nht
polygon-nht-usdt:
orderbook: polygon
network: polygon
inputs:
- token: polygon-nht
outputs:
- token: polygon-usdt
polygon-gfi-usdce:
orderbook: polygon
network: polygon
Expand Down Expand Up @@ -512,6 +534,12 @@ deployments:
polygon-usdc-mnw:
order: polygon-usdc-mnw
scenario: polygon
polygon-nht-usdt:
order: polygon-nht-usdt
scenario: polygon
polygon-usdt-nht:
order: polygon-usdt-nht
scenario: polygon
polygon-gfi-usdce:
order: polygon-gfi-usdce
scenario: polygon
Expand Down Expand Up @@ -1456,6 +1484,238 @@ gui:
The initial MNW per USDC to kickoff the first auction (e.g. 2.2).
min: 0.01

- deployment: polygon-usdt-nht
name: Sell NHT for USDT on Polygon.
description: >
DCA NHT for USDT on Polygon.
deposits:
- token: polygon-nht
min: 0
presets:
- 0
- 100000
- 500000
- 1000000
- 2000000
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 (NHT per period)
description: >
The amount of NHT to spend each budget period.

For example, if the budget is daily and this is 1000 then 1000 NHT will be sold for USDT each day.
min: 0
- binding: max-trade-amount
name: Maximum trade size (NHT)
description: >
The maximum amount of NHT to sell in a single auction.
min: 0
- binding: min-trade-amount
name: Minimum trade size (NHT)
description: >
The minimum amount of NHT 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 USDT per NHT
description: >
The absolute minimum amount of USDT per NHT that the auction will trade at (e.g. 0.00038).
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 USDT per NHT
description: >
The initial USDT per NHT to kickoff the first auction (e.g. 0.00038).
min: 0

- deployment: polygon-mnw-usdt
name: Buy NHT with USDT on Polygon.
description: >
DCA USDT for NHT on Polygon.
deposits:
- token: polygon-usdt
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 (USDT per period)
description: >
The amount of USDT to spend each budget period.

For example, if the budget is daily and this is 100 then 100 USDT will be sold for NHT each day.
min: 0
- binding: max-trade-amount
name: Maximum trade size (USDT)
description: >
The maximum amount of USDT to sell in a single auction.
min: 0
- binding: min-trade-amount
name: Minimum trade size (USDT)
description: >
The minimum amount of USDT 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 NHT per USDT
description: >
The absolute minimum amount of NHT per USDT that the auction will trade at (e.g. 2600).
min: 0.01
- 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 NHT per USDT
description: >
The initial NHT per USDT to kickoff the first auction (e.g. 2604).
min: 0.01

- deployment: polygon-usdce-gfi
name: Sell GFI for USDC.e on Polygon.
description: >
Expand Down

0 comments on commit a1dedbe

Please sign in to comment.