From 2150dab74bd2e150f25fd9a2f9aa1eea2f9253b4 Mon Sep 17 00:00:00 2001 From: Siddharth2207 Date: Fri, 6 Dec 2024 22:16:19 +0530 Subject: [PATCH] mnw eth --- .../raindex/1-auction-dca/auction-dca.rain | 207 ++++++++++++++++++ .../2-dynamic-spread/dynamic-spread.rain | 123 +++++++++++ public/_strategies/raindex/3-grid/grid.rain | 37 +++- 3 files changed, 366 insertions(+), 1 deletion(-) diff --git a/public/_strategies/raindex/1-auction-dca/auction-dca.rain b/public/_strategies/raindex/1-auction-dca/auction-dca.rain index 2edb5f1e..01c8479d 100644 --- a/public/_strategies/raindex/1-auction-dca/auction-dca.rain +++ b/public/_strategies/raindex/1-auction-dca/auction-dca.rain @@ -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 @@ -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 @@ -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 @@ -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: > diff --git a/public/_strategies/raindex/2-dynamic-spread/dynamic-spread.rain b/public/_strategies/raindex/2-dynamic-spread/dynamic-spread.rain index 8e89b40d..8b600be7 100644 --- a/public/_strategies/raindex/2-dynamic-spread/dynamic-spread.rain +++ b/public/_strategies/raindex/2-dynamic-spread/dynamic-spread.rain @@ -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. @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/public/_strategies/raindex/3-grid/grid.rain b/public/_strategies/raindex/3-grid/grid.rain index c9cd2b24..0b5b9c7c 100644 --- a/public/_strategies/raindex/3-grid/grid.rain +++ b/public/_strategies/raindex/3-grid/grid.rain @@ -79,6 +79,10 @@ tokens: network: ethereum address: 0x13E4b8CfFe704d3De6F19E52b201d92c21EC18bD decimals: 18 + ethereum-mnw: + network: ethereum + address: 0xd3E4Ba569045546D09CF021ECC5dFe42b1d7f6E4 + decimals: 18 ethereum-weth: network: ethereum address: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 @@ -114,6 +118,13 @@ orders: - token: ethereum-weth outputs: - token: ethereum-pai + ethereum-weth-mnw: + orderbook: ethereum + network: ethereum + inputs: + - token: ethereum-weth + outputs: + - token: ethereum-mnw bsc-busd-tft: orderbook: bsc network: bsc @@ -162,6 +173,9 @@ deployments: ethereum-weth-pai: order: ethereum-weth-pai scenario: ethereum + ethereum-weth-mnw: + order: ethereum-weth-mnw + scenario: ethereum bsc-busd-tft: order: bsc-busd-tft scenario: bsc @@ -219,6 +233,28 @@ gui: name: Tranche size in PAI (e.g. 1000) min: 0 + - deployment: ethereum-weth-mnw + name: Grid sell MNW for WETH on Ethereum. + description: + Grid sell MNW for WETH on Ethereum Mainnet. + deposits: + - token: ethereum-mnw + min: 0 + presets: + - 1000 + - 10000 + - 100000 + fields: + - binding: baseline-io-ratio + name: Baseline WETH per MNW (e.g. 0.00012) + min: 0 + - binding: io-ratio-growth + name: IO ratio growth per tranche (e.g. 0.00001) + min: 0 + - binding: tranche-size + name: Tranche size in MNW (e.g. 2000) + min: 0 + - deployment: bsc-busd-tft name: Grid sell TFT for BUSD on BSC. description: @@ -265,7 +301,6 @@ gui: name: Tranche size in IOEN (e.g. 100000) min: 0 - --- #raindex-subparser !The subparser for Raindex.