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

arbitrum canary #306

Merged
merged 4 commits into from
Dec 8, 2024
Merged
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
83 changes: 83 additions & 0 deletions public/_strategies/raindex/4-canary/canary.rain
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,37 @@ networks:
chain-id: 8453
network-id: 8453
currency: ETH
arbitrum:
rpc: https://rpc.ankr.com/arbitrum
chain-id: 42161
network-id: 42161
currency: ETH

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

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

orderbooks:
base:
address: 0xd2938e7c9fe3597f78832ce780feb61945c377d7
network: base
subgraph: base
arbitrum:
address: 0x550878091b2B1506069F61ae59e3A5484Bca9166
network: arbitrum
subgraph: arbitrum

deployers:
base:
address: 0xC1A14cE2fd58A3A2f99deCb8eDd866204eE07f8D
network: base
arbitrum:
address: 0x9B0D254bd858208074De3d2DaF5af11b3D2F377F
network: arbitrum

tokens:
base-usdc:
Expand All @@ -33,6 +47,14 @@ tokens:
network: base
address: 0x4200000000000000000000000000000000000006
decimals: 18
arbitrum-usdc:
network: arbitrum
address: 0xaf88d065e77c8cC2239327C5EDb3A432268e5831
decimals: 6
arbitrum-weth:
network: arbitrum
address: 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1
decimals: 18

orders:
base:
Expand All @@ -43,6 +65,14 @@ orders:
- token: base-usdc
outputs:
- token: base-weth
arbitrum:
orderbook: arbitrum
network: arbitrum
inputs:
# Input is irrelevant because we always set the IO ratio to 0.
- token: arbitrum-usdc
outputs:
- token: arbitrum-weth

scenarios:
base:
Expand All @@ -51,11 +81,20 @@ scenarios:
runs: 1
bindings:
raindex-subparser: 0x662dFd6d5B6DF94E07A60954901D3001c24F856a
arbitrum:
deployer: arbitrum
orderbook: arbitrum
runs: 1
bindings:
raindex-subparser: 0xb06202aA3Fe7d85171fB7aA5f17011d17E63f382

deployments:
base:
order: base
scenario: base
arbitrum:
order: arbitrum
scenario: arbitrum

gui:
name: Canary
Expand Down Expand Up @@ -107,6 +146,50 @@ gui:
- name: 1 hour
value: 3600

- deployment: arbitrum
name: Canary on Arbitrum.
description:
A simple strategy that gives a bounty to the solver regularly.
deposits:
- token: arbitrum-weth
min: 0
presets:
- 0
- 0.001
- 0.01
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 ETH).
min: 0
presets:
- value: 0
- value: 0.0000003
- binding: max-bounty
name: Maximum bounty to give to the solver (in ETH).
min: 0
presets:
- value: 0.00005
- 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
Loading