Improvement: Obtain Wallet and Liquidity Balances via WEB3

This commit is contained in:
Smidy13 committed 2021-11-15 00:02:55 +13:00
1 parent 97cc7d94c8
commit 939a8bf6c7
4 files changed
+77 -52

No files matched your search

+10
View File
@@ -79,6 +79,16 @@ exports.newHttpInterface = function newHttpInterface() {
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(serverResponse), httpResponse)
return
}
case 'getUserWalletBalance': {
let serverResponse = await PL.servers.WEB3_SERVER.getUserWalletBalance(
params.walletAddress,
params.contractAddress
)
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(serverResponse), httpResponse)
return
}
case 'getWalletBalances': {
let serverResponse = await PL.servers.WEB3_SERVER.getWalletBalances(