WalletBalanceProvider
Implements a logic of getting multiple tokens balance for one user address
NOTE: THIS CONTRACT IS NOT USED WITHIN THE ParaSpace PROTOCOL. It's an accessory contract used to reduce the number of calls towards the blockchain from the ParaSpace backend.
MOCK_ETH_ADDRESS
receive
Fallback function, don't accept any ETH
balanceOf
_Check the token balance of a wallet in a token contract
batchBalanceOf
Fetches, for a list of _users and _tokens (ETH included with mock address), the balances
Parameters
Name
Type
Description
users
address[]
The list of users
tokens
address[]
The list of tokens
Return Values
Name
Type
Description
[0]
uint256[]
And array with the concatenation of, for each user, his/her balances
getUserWalletBalances
provides balances of user wallet for all reserves available on the pool