dero-swaps/cfg/variables.go

52 lines
1.3 KiB
Go
Raw Normal View History

2024-04-11 14:35:17 +02:00
package cfg
2024-04-20 22:23:48 +02:00
import "net/url"
2024-04-11 14:35:17 +02:00
type Config struct {
2024-04-20 22:23:48 +02:00
ServerAddress string `json:"server"`
Nickname string `json:"nickname"`
2024-04-20 22:21:02 +02:00
Dero_Daemon string `json:"Dero_Daemon"`
Dero_Wallet string `json:"dero_wallet"`
Dero_Login string `json:"dero_login"`
Monero_Daemon string `json:"monero_daemon"`
Monero_Wallet string `json:"Monero_Wallet"`
2024-04-23 20:21:35 +02:00
LTC_Daemon string `json:"LTC_Daemon"`
LTC_Dir string `json:"LTC_Dir"`
2024-04-11 14:35:17 +02:00
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
2024-04-20 22:21:02 +02:00
var SwapFees Fees
2024-04-20 22:23:48 +02:00
var Server_URL url.URL