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

Eth HOT<>USDT Auction Dca, Grid setup #330

Open
wants to merge 3 commits 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
200 changes: 200 additions & 0 deletions public/_strategies/raindex/1-auction-dca/auction-dca.rain
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ tokens:
network: ethereum
address: 0x922D8563631B03C2c4cf817f4d18f6883AbA0109
decimals: 18
ethereum-hot:
network: ethereum
address: 0x6c6EE5e31d828De241282B9606C8e98Ea48526E2
decimals: 18
ethereum-usdt:
network: ethereum
address: 0xdAC17F958D2ee523a2206206994597C13D831ec7
Expand Down Expand Up @@ -397,6 +401,20 @@ orders:
- token: ethereum-weth
outputs:
- token: ethereum-mnw
ethereum-hot-usdt:
orderbook: ethereum
network: ethereum
inputs:
- token: ethereum-hot
outputs:
- token: ethereum-usdt
ethereum-usdt-hot:
orderbook: ethereum
network: ethereum
inputs:
- token: ethereum-usdt
outputs:
- token: ethereum-hot
ethereum-lock-weth:
orderbook: ethereum
network: ethereum
Expand Down Expand Up @@ -828,6 +846,12 @@ deployments:
ethereum-usdc-nmt:
order: ethereum-usdc-nmt
scenario: ethereum
ethereum-hot-usdt:
order: ethereum-hot-usdt
scenario: ethereum
ethereum-usdt-hot:
order: ethereum-usdt-hot
scenario: ethereum
ethereum-lock-usdt:
order: ethereum-lock-usdt
scenario: ethereum
Expand Down Expand Up @@ -5470,6 +5494,182 @@ gui:
The initial LOCK per USDT to kickoff the first auction. (e.g. 0.9 LOCK per USDT)
min: 0

- deployment: ethereum-usdt-hot
name: Sell HOT for USDT on Ethereum.
description: >
Swap HOT for USDT on Ethereum mainnet.
deposits:
- token: ethereum-hot
min: 0
presets:
- 0
- 5000
- 10000
- 20000
- 50000
- 100000

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

- deployment: ethereum-hot-usdt
name: Sell USDT for HOT on Ethereum.
description: >
Swap USDT for HOT on Ethereum mainnet.
deposits:
- token: ethereum-usdt
min: 0
presets:
- 0
- 500
- 1000
- 2000
- 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 (USDT per period)
description: >
The amount of USDT to spend each budget period.
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.
presets:
- name: Every hour (3600)
value: 3600
- name: Every 2 hours (7200)
value: 7200
- binding: baseline
name: Baseline HOT per USDT
description: >
The absolute minimum amount of HOT per USDT that the auction will trade at. (e.g. 400 HOT per USDT)
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 HOT per USDT
description: >
The initial HOT per USDT to kickoff the first auction. (e.g. 438 HOT per USDT)
min: 0

- deployment: flare-cysflr-cusdx
name: Sell cUSDX for cysFLR on Flare.
description: >
Expand Down
102 changes: 102 additions & 0 deletions public/_strategies/raindex/3-grid/grid.rain
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ tokens:
network: ethereum
address: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
decimals: 18
ethereum-hot:
network: ethereum
address: 0x6c6EE5e31d828De241282B9606C8e98Ea48526E2
decimals: 18
ethereum-usdt:
network: ethereum
address: 0xdAC17F958D2ee523a2206206994597C13D831ec7
decimals: 6
bsc-tft:
network: bsc
address: 0x8f0FB159380176D324542b3a7933F0C2Fd0c2bbf
Expand Down Expand Up @@ -149,6 +157,20 @@ orders:
- token: ethereum-weth
outputs:
- token: ethereum-mnw
ethereum-hot-usdt:
orderbook: ethereum
network: ethereum
inputs:
- token: ethereum-hot
outputs:
- token: ethereum-usdt
ethereum-usdt-hot:
orderbook: ethereum
network: ethereum
inputs:
- token: ethereum-usdt
outputs:
- token: ethereum-hot
polygon-weth-mnw:
orderbook: polygon
network: polygon
Expand Down Expand Up @@ -235,6 +257,12 @@ deployments:
ethereum-weth-mnw:
order: ethereum-weth-mnw
scenario: ethereum
ethereum-hot-usdt:
order: ethereum-hot-usdt
scenario: ethereum
ethereum-usdt-hot:
order: ethereum-usdt-hot
scenario: ethereum
bsc-busd-tft:
order: bsc-busd-tft
scenario: bsc
Expand Down Expand Up @@ -371,6 +399,80 @@ gui:
- name: 24 hours (86400)
value: 86400

- deployment: ethereum-hot-usdt
name: Grid buy HOT with USDT on Ethereum.
description:
Grid buy HOT with USDT on Ethereum Mainnet.
deposits:
- token: ethereum-usdt
min: 0
presets:
- 1000
- 5000
- 10000
- 100000
fields:
- binding: baseline-io-ratio
name: Baseline HOT per USDT (e.g. 438)
min: 0
- binding: io-ratio-growth
name: IO ratio growth per tranche (e.g. 5)
min: 0
- binding: tranche-size
name: Tranche size in USDT (e.g. 500)
min: 0
- binding: seconds-per-tranche
name: Time to recharge one grid tranche in seconds (0 is disabled).
min: 0
presets:
- name: Disabled (0)
value: 0
- name: 1 hour (3600)
value: 3600
- name: 6 hours (21600)
value: 21600
- name: 12 hours (43200)
value: 43200
- name: 24 hours (86400)
value: 86400

- deployment: ethereum-usdt-hot
name: Grid sell HOT for USDT on Ethereum.
description:
Grid sell HOT for USDT on Ethereum Mainnet.
deposits:
- token: ethereum-hot
min: 0
presets:
- 10000
- 50000
- 100000
- 1000000
fields:
- binding: baseline-io-ratio
name: Baseline USDT per HOT (e.g. 0.0022)
min: 0
- binding: io-ratio-growth
name: IO ratio growth per tranche (e.g. 0.0005)
min: 0
- binding: tranche-size
name: Tranche size in HOT (e.g. 5000)
min: 0
- binding: seconds-per-tranche
name: Time to recharge one grid tranche in seconds (0 is disabled).
min: 0
presets:
- name: Disabled (0)
value: 0
- name: 1 hour (3600)
value: 3600
- name: 6 hours (21600)
value: 21600
- name: 12 hours (43200)
value: 43200
- name: 24 hours (86400)
value: 86400

- deployment: bsc-busd-tft
name: Grid sell TFT for BUSD on BSC.
description:
Expand Down
Loading