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

linea canary #310

Closed
wants to merge 1 commit into from
Closed
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
82 changes: 82 additions & 0 deletions public/_strategies/raindex/4-canary/canary.rain
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,27 @@ networks:
chain-id: 56
network-id: 56
currency: BNB
linea:
rpc: https://rpc.linea.build
chain-id: 59144
network-id: 59144
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
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
linea: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-linea/2024-10-14-12fc/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
linea: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-linea-0xed7d6156/1.0.0/gn

orderbooks:
base:
Expand All @@ -62,6 +69,10 @@ orderbooks:
address: 0xd2938E7c9fe3597F78832CE780Feb61945c377d7
network: bsc
subgraph: bsc
linea:
address: 0x22410e2a46261a1B1e3899a072f303022801C764
network: linea
subgraph: linea

deployers:
base:
Expand All @@ -79,6 +90,9 @@ deployers:
bsc:
address: 0xA2f56F8F74B7d04d61f281BE6576b6155581dcBA
network: bsc
linea:
address: 0xA2f56F8F74B7d04d61f281BE6576b6155581dcBA
network: linea

tokens:
base-usdc:
Expand Down Expand Up @@ -121,6 +135,14 @@ tokens:
network: bsc
address: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
decimals: 18
linea-usdt:
network: linea
address: 0xA219439258ca9da29E9Cc4cE5596924745e12B93
decimals: 6
linea-weth:
network: linea
address: 0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f
decimals: 18

orders:
base:
Expand Down Expand Up @@ -160,6 +182,14 @@ orders:
- token: bsc-usdt
outputs:
- token: bsc-wbnb
linea:
orderbook: linea
network: linea
inputs:
# Input is irrelevant because we always set the IO ratio to 0.
- token: linea-usdt
outputs:
- token: linea-weth

scenarios:
base:
Expand Down Expand Up @@ -192,6 +222,11 @@ scenarios:
runs: 1
bindings:
raindex-subparser: 0x662dFd6d5B6DF94E07A60954901D3001c24F856a
linea:
orderbook: linea
runs: 1
bindings:
raindex-subparser: 0xF77b3c3f61af5a3cE7f7CE3cfFc117491104432E

deployments:
base:
Expand All @@ -209,6 +244,9 @@ deployments:
bsc:
order: bsc
scenario: bsc
linea:
order: linea
scenario: linea

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

- deployment: linea
name: Canary on Linea.
description:
A simple strategy that gives a bounty to the solver regularly.
deposits:
- token: linea-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.000004
- binding: max-bounty
name: Maximum bounty to give to the solver (in ETH).
min: 0
presets:
- value: 0.00075
- 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