Skip to content

Commit

Permalink
Merge branch 'main' into 2024-12-11-nht-dca
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister authored Dec 12, 2024
2 parents c592389 + 55f7503 commit 9ff41b6
Showing 1 changed file with 169 additions and 0 deletions.
169 changes: 169 additions & 0 deletions public/_strategies/raindex/4-canary/canary.rain
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,30 @@ networks:
chain-id: 14
network-id: 14
currency: FLR
polygon:
rpc: https://rpc.ankr.com/polygon
chain-id: 137
network-id: 137
currency: POL
bsc:
rpc: https://rpc.ankr.com/bsc
chain-id: 56
network-id: 56
currency: BNB

subgraphs:
base: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-base/0.7/gn
arbitrum: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-arbitrum/0.1/gn
flare: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-flare/0.2/gn
polygon: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-polygon/0.4/gn
bsc: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-bsc/2024-10-14-63f4/gn

metaboards:
base: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-base-0x59401C93/0.1/gn
arbitrum: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-arbitrum/0.1/gn
flare: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-flare-0x893BBFB7/0.1/gn
polygon: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-polygon/0.1/gn
bsc: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-bsc/0.1/gn

orderbooks:
base:
Expand All @@ -40,6 +54,14 @@ orderbooks:
address: 0xCEe8Cd002F151A536394E564b84076c41bBBcD4d
network: flare
subgraph: flare
polygon:
address: 0x7D2f700b1f6FD75734824EA4578960747bdF269A
network: polygon
subgraph: polygon
bsc:
address: 0xd2938E7c9fe3597F78832CE780Feb61945c377d7
network: bsc
subgraph: bsc

deployers:
base:
Expand All @@ -51,6 +73,12 @@ deployers:
flare:
address: 0xE3989Ea7486c0F418C764e6c511e86f6E8830FAb
network: flare
polygon:
address: 0xE7116BC05C8afe25e5B54b813A74F916B5D42aB1
network: polygon
bsc:
address: 0xA2f56F8F74B7d04d61f281BE6576b6155581dcBA
network: bsc

tokens:
base-usdc:
Expand All @@ -77,6 +105,22 @@ tokens:
network: flare
address: 0x1D80c49BbBCd1C0911346656B529DF9E5c2F783d
decimals: 18
polygon-usdc:
network: polygon
address: 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359
decimals: 6
polygon-wmatic:
network: polygon
address: 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270
decimals: 18
bsc-usdc:
network: bsc
address: 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d
decimals: 18
bsc-wbnb:
network: bsc
address: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
decimals: 18

orders:
base:
Expand All @@ -103,6 +147,22 @@ orders:
- token: flare-usdce
outputs:
- token: flare-wflr
polygon:
orderbook: polygon
network: polygon
inputs:
# Input is irrelevant because we always set the IO ratio to 0.
- token: polygon-usdc
outputs:
- token: polygon-wmatic
bsc:
orderbook: bsc
network: bsc
inputs:
# Input is irrelevant because we always set the IO ratio to 0.
- token: bsc-usdc
outputs:
- token: bsc-wbnb

scenarios:
base:
Expand All @@ -123,6 +183,18 @@ scenarios:
runs: 1
bindings:
raindex-subparser: 0xFe2411CDa193D9E4e83A5c234C7Fd320101883aC
polygon:
deployer: polygon
orderbook: polygon
runs: 1
bindings:
raindex-subparser: 0xF9323B7d23c655122Fb0272D989b83E105cBcf9d
bsc:
deployer: bsc
orderbook: bsc
runs: 1
bindings:
raindex-subparser: 0x662dFd6d5B6DF94E07A60954901D3001c24F856a

deployments:
base:
Expand All @@ -134,6 +206,12 @@ deployments:
flare:
order: flare
scenario: flare
polygon:
order: polygon
scenario: polygon
bsc:
order: bsc
scenario: bsc

gui:
name: Canary
Expand Down Expand Up @@ -273,6 +351,97 @@ gui:
- name: 1 hour
value: 3600

- deployment: polygon
name: Canary on Polygon.
description:
A simple strategy that gives a bounty to the solver regularly.
deposits:
- token: polygon-wmatic
min: 0
presets:
- 0
- 1
- 10
fields:
- binding: cooldown
name: Cooldown between possible trades in seconds.
min: 120
presets:
- name: Two minutes (120)
value: 120
- name: Five minutes (300)
value: 300
- name: 1 hour (3600)
value: 3600
- binding: min-bounty
name: Minimum bounty to give to the solver (in POL).
min: 0
presets:
- value: 0
- value: 0.001
- binding: max-bounty
name: Maximum bounty to give to the solver (in POL).
min: 0
presets:
- value: 0.01
- value: 0.02
- value: 0.05
- value: 0.1
- binding: time-per-epoch
name: Total auction duration in seconds.
min: 1
presets:
- name: 5 minutes
value: 300
- name: 15 minutes
value: 900
- name: 1 hour
value: 3600

- deployment: bsc
name: Canary on BSC.
description:
A simple strategy that gives a bounty to the solver regularly.
deposits:
- token: bsc-wbnb
min: 0
presets:
- 0
- 0.01
- 0.05
fields:
- binding: cooldown
name: Cooldown between possible trades in seconds.
min: 120
presets:
- name: Two minutes (120)
value: 120
- name: Five minutes (300)
value: 300
- name: 1 hour (3600)
value: 3600
- binding: min-bounty
name: Minimum bounty to give to the solver (in BNB).
min: 0
presets:
- value: 0
- value: 0.0001
- binding: max-bounty
name: Maximum bounty to give to the solver (in BNB).
min: 0
presets:
- value: 0.0075
- binding: time-per-epoch
name: Total auction duration in seconds.
min: 1
presets:
- name: 5 minutes
value: 300
- name: 15 minutes
value: 900
- name: 1 hour
value: 3600

---
#raindex-subparser !The subparser contract address for Raindex.
#cooldown !The time in seconds between possible trades.
Expand Down

0 comments on commit 9ff41b6

Please sign in to comment.