Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.57 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.57 KB

About

The graphinator is a lightweight alternative to the superfluid-sentinel. It looks for critical or insolvent accounts and liquidates their outgoing flows (CFA and GDA). Unlike the sentinel, it is stateless and relies on the Superfluid Subgraph as data source.

By default, the graphinator operates in a one-shot mode, meaning: it checks and liquidates once, then exits. For continued operation, it's recommended to set up a cronjob.

Once graphinator instance operates for a to-be-specified chain. By default, it operates on all listed Super Token, but also allows to operate only on a single Super Token.

Prerequisites

Install Bun:

curl -fsSL https://bun.sh/install | bash

Set up the repo and install dependencies:

git clone https://github.com/superfluid-finance/graphinator
cd graphinator
bun install

Run

PRIVATE_KEY=... ./grt.ts -n <network>

network needs to be the canonical name of a chain where Superfluid is deployed. See metadata/networks.json (field name). For example base-mainnet.

You can also provide PRIVATE_KEY via an .env file.

Make sure grt.ts is executable.

See ./grt.ts --help for more config options.

License

MIT