Merge branch 'multi-pool' into pool-swap-endpoints

This commit is contained in:
2025-03-20 08:35:22 +03:00
2 changed files with 92 additions and 51 deletions

View File

@@ -22,6 +22,7 @@ const (
topPoolsPrefix = "/api/v1/pool/top"
retrievePoolDetailsPrefix = "/api/v1/pool/reverse"
poolSwappableVouchersPrefix = "/api/v1/pool"
AliasEnsPrefix = "/api/v1/bypass"
)
var (
@@ -47,6 +48,7 @@ var (
TopPoolsURL string
RetrievePoolDetailsURL string
PoolSwappableVouchersURL string
AliasEnsURL string
)
func setBase() error {
@@ -90,5 +92,6 @@ func LoadConfig() error {
RetrievePoolDetailsURL, _ = url.JoinPath(dataURLBase, retrievePoolDetailsPrefix)
PoolSwappableVouchersURL, _ = url.JoinPath(dataURLBase, poolSwappableVouchersPrefix)
AliasEnsURL, _ = url.JoinPath(aliasEnsURLBase, AliasEnsPrefix)
return nil
}