forked from blockworks-foundation/liquidatable-accounts-feed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-config.toml
35 lines (28 loc) · 1.41 KB
/
example-config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Address of Solana JSON RPC pubsub websocket
rpc_ws_url = "ws://api.mainnet-beta.solana.com"
# Address of Solana JSON RPC endpoint
#
# The endpoint must support getProgramAccounts requests: the
# example address here does not.
rpc_http_url = "https://api.mainnet-beta.solana.com"
# Configuration of Mango related addresses, so the program knows
# what to look at.
mango_program_id = "mv3ekLzLbnVPNxjSKvqBpU3ZeZXPQdEC3bp5MDEBG68"
mango_group_id = "98pjRuQjK3qA6gXts96PqZT4Ze5QmnCmt3QYjhbUSPue"
mango_cache_id = "EBDRoayCDDUvDgCimta45ajQeXbexv7aKqJubruqpyvu"
mango_signer_id = "9BVcYqEQxyccuwznvxXqDkSJFavvTyheiTYk231T1A8S"
serum_program_id = "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"
# Interval between requesting getProgramAccounts data snapshots
snapshot_interval_secs = 240
# Number of parallel getMultipleAccounts requests to send during snapshotting.
parallel_rpc_requests = 10
# Number of accounts that can be retrieved in a getMultipleAccounts call.
# Typically 100 for normal RPC nodes.
get_multiple_accounts_count = 100
# Address at which a websocket server will be openend. Connect
# to listen to information about liquidatable accounts.
websocket_server_bind_address = "localhost:9123"
# If > 0, notify about potentially liquidatable accounts before they
# become technically liquidatable. The notification starts if
# assets / liabilities < 1.0 + early_candidate_percentage / 100
early_candidate_percentage = 1.0