Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
/ icx-makerbot Public archive

ICX Parity Maker Bot

License

Notifications You must be signed in to change notification settings

DeFiCh/icx-makerbot

Repository files navigation

icx-makerbot

ICX Parity Maker Bot

Purpose

This bot interfaces with DeFiChain node, monitors for available BTC and dBTC at specified address(es), adds the entirety of it to ICX as maker at parity, i.e. 1 BTC for 1dBTC and vice versa.

The bot will perform the necessary steps to ensure the safety of the counter-party's steps and follows through when it determines that it's safe.

Installation

This script requires Deno to be installed: https://deno.land/

Prerequisites

The parameters are pass in to the script via several environment variables, you need to define 7 environment variables in .bash_profile. The ALARM_HOOK is optional.

export RPC_ADDRESS=127.0.0.1
export RPC_PORT=18554
export RPC_USER=user
export RPC_PASSWORD=password
export DFI_ADDRESS=7Jw72Q9yGJ1UWCXdQcUwkwSX48mkvdV2sS
export SPV_BTC_ADDRESS=tb1qfdl5fs580x8ykqjngfvgdwhryu62r59q3tuaga
export ALARM_HOOK="The slack webhook url"

Run the dBTC maker bot.

Before running the script, ensure your account has sufficient dBTC token and tokenDFI, utxoDFI is also required.

deno run --allow-all icx_bot_dbtc_maker.js

Run the BTC maker bot.

Before running the script, ensure your account has sufficient BTC and tokenDFI, utxoDFI is also required.

deno run --allow-all icx_bot_btc_maker.js

Releases

No releases published

Packages