kleros / escrow

Decentralized Escrow - Ethereum Project
https://escrow.kleros.io
MIT License
17 stars 9 forks source link

PropTypes and Parallel fetch #57

Closed eccentricexit closed 5 years ago

eccentricexit commented 5 years ago

This PR does 3 things:

  1. Fix an issue with the stablecoin query. It was not setting the lastAddress parameter after each request, which means if the stablecoin TCR had > 1000 items, it would start failing.
  2. Fix proptypes issues related to the stablecoin redux store.
  3. Speeds up fetching tokens by:
    • Fetching all tokenIDs at once with the getTokensIDsForAddresses function from the latest view contract.
    • Calling t2cr.tokens in parallel instead of sequentially.