Skip to content

Commit

Permalink
Limit scope of wallet portfolio request to tokens. (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg-Pecheneg authored Mar 4, 2024
1 parent bcdde8f commit 9f1398a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -862,10 +862,12 @@ extension Endpoint {

static func getCryptoPortfolio(for wallet: String) -> Endpoint {
//https://api.ud-staging.com/profile/user/0xcd0dadab45baf9a06ce1279d1342ecc3f44845af/wallets
let queryItems: [URLQueryItem] = [.init(name: "walletFields", value: "native,token")]

return Endpoint(
host: NetworkConfig.baseProfileHost,
path: "/profile/user/\(wallet)/wallets",
queryItems: [],
queryItems: queryItems,
body: "",
headers: NetworkService.profilesAPIHeader
)
Expand Down

0 comments on commit 9f1398a

Please sign in to comment.