Skip to content

Commit

Permalink
wip on wbtc to weth
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Sep 28, 2024
1 parent 03c7bd1 commit ec32e80
Showing 1 changed file with 77 additions and 9 deletions.
86 changes: 77 additions & 9 deletions public/_strategies/arbitrum/0-auction-dca/auction-dca.rain
Original file line number Diff line number Diff line change
Expand Up @@ -73,28 +73,57 @@ gui:
name: Sell WBTC for WETH on Arbitrum.
description: >
Participate in [the flippening](https://ultrasound.money/#flippening) by swapping WBTC for WETH on Arbitrum.
deposits:
- token: arbitrum-wbtc
min: 0
presets:
- 0
- 0.001
- 0.01
- 0.1
- 0.2

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 second (1)
value: 1
- 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 amount (per period)
name: Budget (WBTC per period)
description: >
The amount of WBTC to spend each budget period.

For example, if the budget is daily and this is 0.01 then 0.01 WBTC will be sold for WETH each day.
min: 0
- binding: min-trade-amount
name: Minimum trade amount
name: Minimum trade size
description: >
The minimum amount of WBTC to sell in a single auction.
min: 0
- binding: max-trade-amount
name: Maximum trade amount
name: Maximum trade size
description: >
The maximum amount of WBTC to sell in a single auction.

min: 0
- binding: time-per-trade-epoch
name: Auction period (in seconds)
description: >
Expand All @@ -107,6 +136,15 @@ gui:
then the price will be 20 WETH per WBTC after 1 hour (halfway between 30 and 10),
15 WETH per WBTC after 2 hours (halfway between 20 and 10),
and so on.
presets:
- name: Per second (1)
value: 1
- name: Per minute (60)
value: 60
- name: Per hour (3600)
value: 3600
- name: Per day (86400)
value: 86400
- binding: baseline
name: Baseline price
description: >
Expand All @@ -119,15 +157,32 @@ gui:
ETH/BTC ratio is worse than 0.05.

This can be set to 0 to disable the baseline.
presets:
- name: 10
value: 10
- name: 20
value: 20
- name: 25
value: 25
- name: 30
value: 30
- binding: next-trade-multiplier
name: Auction start multiplier
description: >
The multiplier to apply to the last trade to kick off the next auction.

For example, if this is 1.1 and the last trade was at 20 WETH per WBTC,
then the next auction will start at 22 WETH per WBTC.

This should always be greater than 1.
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: >
Expand All @@ -139,9 +194,22 @@ gui:
Note that this moving baseline is ignored if it goes below the baseline.
I.e. the absolute minimum baseline overrides this if necessary.

This can be set to 0 to disable the moving baseline.
This can be set to 0 to disable the moving baseline, and should be less than 1.
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 price
name: Kickoff WETH per WBTC
description: >
The initial WETH per WBTC to kickoff the first auction.

Expand All @@ -158,7 +226,7 @@ gui:
price should be fine.

This should be greater than the baseline.

min: 0

---
#raindex-subparser !Raindex subparser.
Expand Down

0 comments on commit ec32e80

Please sign in to comment.