This crank app uses a single "orchestrator" account, and sets up feegrants to allow concurrent cranking of the BOW Contracts and USK Liqudiations.
Long-term this will be replaced by the on-chain scheduler. Until then, this app allows us to understand the dynamics of these crankers before committing to the scheduler.
- Ensure that you have
MNEMONIC
available on your env for the orchestrator account yarn
NETWORK=mainnet yarn start
RPC_ENDPOINT
to change the default RPC.ENABLED_WORKERS
.The crank can also export current position data as a CSV. Currently only BOW margin is supported.
Select a single worker with ENABLED_WORKERS
, set EXPORT
to positions
(all positions) or candidates
(liquidatable positions).
The export can take some time.
NETWORK=mainnet ENABLED_WORKERS=bow-margin EXPORT=candidates yarn start 1> bow-margin-export.csv