ICX Parity Maker Bot
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.
This script requires Deno to be installed: https://deno.land/
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"
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
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