duality-labs / duality-web-app

2 stars 2 forks source link

fix: ensure correct calculated liquidity from usePairLiquidity #475

Closed dib542 closed 11 months ago

dib542 commented 1 year ago

This fix removes the FetchAPI caching logic for token pair liquidity because the calculated liquidity starting with cached value may be wrong.

- possibly there is a race condition that saves the wrong state
- it was found that new Response headers did not affect cache time: the fetchAPI caches the Response value indefinitely
github-actions[bot] commented 1 year ago

Preview URL: https://21847b21-1b2a6ccc--duality-xyz.netlify.app Logs: https://app.netlify.com/sites/duality-xyz/deploys/653781d6b7ca47008db27f44

dib542 commented 11 months ago

:tada: This PR is included in version 0.3.34 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: