50 lines
1.4 KiB
Go
50 lines
1.4 KiB
Go
|
package cfg
|
||
|
|
||
|
type Config struct {
|
||
|
ListenAddress string `json:"listen"`
|
||
|
BTC_daemon string `json:"btc_daemon"`
|
||
|
BTC_dir string `json:"btc_dir"`
|
||
|
LTC_daemon string `json:"ltc_daemon"`
|
||
|
LTC_dir string `json:"ltc_dir"`
|
||
|
ARRR_daemon string `json:"arrr_daemon"`
|
||
|
ARRR_dir string `json:"arrr_dir"`
|
||
|
Dero_daemon string `json:"dero_daemon"`
|
||
|
Dero_wallet string `json:"dero_wallet"`
|
||
|
Monero_daemon string `json:"monero_daemon"`
|
||
|
Monero_wallet string `json:"monero_wallet"`
|
||
|
Pairs []string `json:"pairs"`
|
||
|
//SwapFees float64 `json:"swap_fees"`
|
||
|
}
|
||
|
|
||
|
type (
|
||
|
Fees struct {
|
||
|
Swap Swap_Fees `json:"swap"`
|
||
|
Withdrawal Withdrawal_Fees `json:"withdrawal"`
|
||
|
}
|
||
|
/*
|
||
|
Swap_Fees struct {
|
||
|
DeroLTC float64 `json:"dero-ltc"`
|
||
|
DeroBTC float64 `json:"dero-btc"`
|
||
|
DeroARRR float64 `json:"dero-arrr"`
|
||
|
DeroXMR float64 `json:"dero-xmr"`
|
||
|
LTCDero float64 `json:"ltc-dero"`
|
||
|
BTCDero float64 `json:"btc-dero"`
|
||
|
ARRRDero float64 `json:"arrr-dero"`
|
||
|
XMRDero float64 `json:"xmr-dero"`
|
||
|
}
|
||
|
*/
|
||
|
Swap_Fees struct {
|
||
|
Bid float64 `json:"bid"`
|
||
|
Ask float64 `json:"ask"`
|
||
|
}
|
||
|
Withdrawal_Fees struct {
|
||
|
DeroLTC float64 `json:"dero-ltc"`
|
||
|
DeroBTC float64 `json:"dero-btc"`
|
||
|
DeroARRR float64 `json:"dero-arrr"`
|
||
|
DeroXMR float64 `json:"dero-xmr"`
|
||
|
}
|
||
|
)
|
||
|
|
||
|
var Settings Config
|
||
|
var SwapFees = Fees{Withdrawal: Withdrawal_Fees{DeroLTC: 0.0002, DeroBTC: 0.00004, DeroARRR: 0.001, DeroXMR: 0.00006}}
|