Swap Dero to BTC, LTC, XMR, ARRR
Go to file
2024-04-20 22:39:29 +02:00
cfg Swap Client 2024-04-20 22:23:48 +02:00
clients Swap Client 2024-04-20 22:23:48 +02:00
coin Swap Client 2024-04-20 22:23:48 +02:00
dero Swap Client 2024-04-20 22:23:48 +02:00
monero swap client support 2024-04-20 22:21:02 +02:00
config.json Updated config.json 2024-04-20 22:26:40 +02:00
extras.go initial upload 2024-04-11 14:35:17 +02:00
fees.json Swap Client 2024-04-20 22:23:48 +02:00
go.mod Swap Client 2024-04-20 22:23:48 +02:00
main.go Swap Client 2024-04-20 22:23:48 +02:00
price_variables.go Swap Client 2024-04-20 22:23:48 +02:00
price.go Swap Client 2024-04-20 22:23:48 +02:00
README.md Readme 2024-04-20 22:39:29 +02:00
server.go Swap Client 2024-04-20 22:23:48 +02:00
swap_manager.go Swap Client 2024-04-20 22:23:48 +02:00
swap.go Swap Client 2024-04-20 22:23:48 +02:00

Dero Swap Client

Build from source

Clone the repository to your local disk.
Run go mod tidy and compile with go build.

Configuration

There are no paramters (yet).
Instead, 2 config files are used.
Place the following two config files in the program directory.

  • config.json
{
        "server"        : (string) IP:Port of swap server,
        "nickname"      : (string) name of client,
        "monero_wallet" : (string) IP:Port of Monero Wallet,
        "dero_daemon"   : (string) IP:Port of Dero Daemon,
        "dero_wallet"   : (string) IP:Port of Dero Wallet,
        "pairs"         : (string array) enabled pairs
}
  • fees.json
{
        "withdrawal" :  {
                "dero-btc"      : (float) Bitcoin withdrawal fee,
                "dero-ltc"      : (float) Litecoin withdrawal fee,
                "dero-arrr"     : (float) Pirate withdrawal fee,
                "dero-xmr"      : (float) Monero withdrawal fee
        },
        "swap"  : {
                "bid": (float) in percent, Bid fees 
                "ask": (float) in percent, Ask fees
        }
}

Example file:

{
        "withdrawal" :  {
                "dero-btc"      : 0.00004,
                "dero-ltc"      : 0.0002,
                "dero-arrr"     : 0.001,
                "dero-xmr"      : 0.00006
        },
        "swap"  : {
                "bid": 0.75,
                "ask": 0.75
        }
}

The mentioned withdrawal fees are recommended and can be adjusted later.

Available Pairs

The following Pairs are supported:

  • xmr-dero
  • dero-xmr

Usage

The swap client connects to the specified server, provides information about the current balance and listens for incoming swap requests.

Download the Monero-CLI files from https://www.getmonero.org/downloads/#cli
Create a new wallet. If there is no local daemon, use a remote node (eg. node.moneroworld.com:18089; ./monero-wallet-cli --daemon-address node.moneroworld.com:18089)
Start the RPC server (eg. ./monero-wallet-rpc --daemon-address node.moneroworld.com:18089 --rpc-bind-port 18090 --wallet-file <wallet> --password <wallet_pw> --disable-rpc-login)
Update config.json
Run client