Skip to content

Commit

Permalink
mnw eth
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth2207 committed Dec 6, 2024
1 parent 9d86f8b commit 2150dab
Show file tree
Hide file tree
Showing 3 changed files with 366 additions and 1 deletion.
207 changes: 207 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: ethereum
address: 0x13E4b8CfFe704d3De6F19E52b201d92c21EC18bD
decimals: 18
ethereum-mnw:
network: ethereum
address: 0xd3E4Ba569045546D09CF021ECC5dFe42b1d7f6E4
decimals: 18
base-lucky:
network: base
address: 0x2C002ffEC41568d138Acc36f5894d6156398D539
Expand Down Expand Up @@ -306,6 +310,20 @@ orders:
- token: ethereum-pai
outputs:
- token: ethereum-weth
ethereum-mnw-weth:
orderbook: ethereum
network: ethereum
inputs:
- token: ethereum-mnw
outputs:
- token: ethereum-weth
ethereum-weth-mnw:
orderbook: ethereum
network: ethereum
inputs:
- token: ethereum-weth
outputs:
- token: ethereum-mnw
ethereum-lock-weth:
orderbook: ethereum
network: ethereum
Expand Down Expand Up @@ -539,6 +557,12 @@ deployments:
ethereum-weth-pai:
order: ethereum-weth-pai
scenario: ethereum
ethereum-mnw-weth:
order: ethereum-mnw-weth
scenario: ethereum
ethereum-weth-mnw:
order: ethereum-weth-mnw
scenario: ethereum
ethereum-lock-weth:
order: ethereum-lock-weth
scenario: ethereum
Expand Down Expand Up @@ -3052,6 +3076,189 @@ gui:
- name: 5000
value: 5000

- deployment: ethereum-weth-mnw
name: Sell MNW for WETH on Ethereum.
description: >
Swap MNW for WETH on Ethereum mainnet.
deposits:
- token: ethereum-mnw
min: 0
presets:
- 0
- 100
- 500
- 1000
- 5000
- 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 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 (MNW per period)
description: >
The amount of MNW to spend each budget period.
min: 0
- binding: max-trade-amount
name: Maximum trade size (MNW)
description: >
The maximum amount of MNW to sell in a single auction.
min: 0
- binding: min-trade-amount
name: Minimum trade size (MNW)
description: >
The minimum amount of MNW 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 WETH per MNW
description: >
The absolute minimum amount of WETH per MNW that the auction will trade at. (e.g. 0.0001 WETH per MNW)
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 WETH per MNW
description: >
The initial WETH per MNW to kickoff the first auction. (e.g. 0.00015 WETH per MNW)
min: 0

- deployment: ethereum-mnw-weth
name: Sell WETH for MNW on Ethereum.
description: >
Swap WETH for MNW on Ethereum mainnet.
deposits:
- token: ethereum-weth
min: 0
presets:
- 0
- 0.1
- 0.5
- 1
- 2
- 5

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 (WETH per period)
description: >
The amount of WETH to spend each budget period.
min: 0
- binding: max-trade-amount
name: Maximum trade size (WETH)
description: >
The maximum amount of WETH to sell in a single auction.
min: 0
- binding: min-trade-amount
name: Minimum trade size (WETH)
description: >
The minimum amount of WETH 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 MNW per WETH
description: >
The absolute minimum amount of MNW per WETH that the auction will trade at. (e.g. 5000 MNW per WETH)
min: 0
presets:
- name: 500
value: 500
- name: 1000
value: 1000
- name: 2000
value: 2000
- 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 MNW per WETH
description: >
The initial MNW per WETH to kickoff the first auction. (e.g. 6300 MNW per WETH)
min: 0

- deployment: ethereum-weth-lock
name: Sell LOCK for WETH on Ethereum.
description: >
Expand Down
123 changes: 123 additions & 0 deletions public/_strategies/raindex/2-dynamic-spread/dynamic-spread.rain
Original file line number Diff line number Diff line change
Expand Up @@ -2024,6 +2024,107 @@ gui:
- 0.5
- 2
- 4

- deployment: ethereum-mnw-weth
name: MNW<>WETH on Ethereum.
description: Rotate MNW and WETH on Ethereum.

fields:
- binding: is-fast-exit
name: Fast exit?
description: If enabled, the strategy will attempt to exit any position it builds up in a single trade, as soon as it can do so profitably.
presets:
- name: Yes
value: 1
- name: No
value: 0
- binding: initial-io
name: Initial price (WETH per MNW)
description: The rough WETH price you see for MNW on Dextools (e.g. 0.00015).
min: 0
- binding: next-trade-multiplier
name: Next trade multiplier
description: This is the most the strategy will move the price in a single trade. Larger numbers will capture larger price jumps but trade less often, smaller numbers will trade more often but be less defensive against large price jumps in the market.
min: 1
presets:
- name: 1.01x
value: 1.01
- name: 1.02x
value: 1.02
- name: 1.05x
value: 1.05
- binding: cost-basis-multiplier
name: Cost basis multiplier
description: The minimum spread applied to the breakeven in addition to the auction. This is applied in both directions so 1.01x would be a 2% total spread.
min: 1
presets:
- name: 1 (auction spread only)
value: 1
- name: 1.0005x (0.1% total)
value: 1.0005
- name: 1.001x (0.2% total)
value: 1.001
- name: 1.0025x (0.5% total)
value: 1.0025
- name: 1.005x (1% total)
value: 1.005
- binding: time-per-epoch
name: Time per halving (seconds)
description: The amount of time (in seconds) between halvings of the price and the amount offered during each auction, relative to their baselines.
min: 600
presets:
- name: 4 hours (14400)
value: 14400
- name: 8 hours (28800)
value: 28800
- name: 12 hours (43200)
value: 43200
- name: 24 hours (86400)
value: 86400
- binding: max-amount
name: Max amount
description: The maximum amount of WETH that will be offered in a single auction.
min: 1
presets:
- name: 1 WETH
value: 1
- name: 3 WETH
value: 3
- name: 5 WETH
value: 5
- name: 10 WETH
value: 10
- name: 20 WETH
value: 20
- binding: min-amount
name: Minimum amount
description: The minimum amount of WETH that will be offered in a single auction.
min: 1
presets:
- name: 1 WETH
value: 1
- name: 1.25 WETH
value: 1.25
- name: 1.5 WETH
value: 1.5
- name: 2 WETH
value: 2
deposits:
- token: ethereum-mnw
min: 0
presets:
- 0
- 1000
- 5000
- 10000
- token: ethereum-weth
min: 0
presets:
- 0
- 0.5
- 2
- 4

- deployment: bsc-tft-busd
name: BUSD<>TFT on BSC.
description: Rotate BUSD and TFT on BSC.
Expand Down Expand Up @@ -2610,6 +2711,12 @@ scenarios:
amount-token: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
initial-output-token: 0x13E4b8CfFe704d3De6F19E52b201d92c21EC18bD
initial-input-token: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
mnw-weth:
runs: 1
bindings:
amount-token: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
initial-output-token: 0xd3E4Ba569045546D09CF021ECC5dFe42b1d7f6E4
initial-input-token: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
linea:
orderbook: linea
runs: 1
Expand Down Expand Up @@ -2851,6 +2958,10 @@ tokens:
network: ethereum
address: 0x13E4b8CfFe704d3De6F19E52b201d92c21EC18bD
decimals: 18
ethereum-mnw:
network: ethereum
address: 0xd3E4Ba569045546D09CF021ECC5dFe42b1d7f6E4
decimals: 18
ethereum-weth:
network: ethereum
address: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Expand Down Expand Up @@ -3080,6 +3191,15 @@ orders:
outputs:
- token: ethereum-pai
- token: ethereum-weth
ethereum-mnw-weth:
network: ethereum
orderbook: ethereum
inputs:
- token: ethereum-mnw
- token: ethereum-weth
outputs:
- token: ethereum-mnw
- token: ethereum-weth
linea-clip-weth:
network: linea
orderbook: linea
Expand Down Expand Up @@ -3169,6 +3289,9 @@ deployments:
ethereum-pai-weth:
order: ethereum-pai-weth
scenario: ethereum.pai-weth
ethereum-mnw-weth:
order: ethereum-mnw-weth
scenario: ethereum.mnw-weth
linea-clip-weth:
order: linea-clip-weth
scenario: linea.clip-weth
Expand Down
Loading

0 comments on commit 2150dab

Please sign in to comment.