ci(release): publish latest release

parent eac404cb
IPFS hash of the deployment: IPFS hash of the deployment:
- CIDv0: `QmWSe3hTmjqzZqabn4gHezjj72nWg96k2mnzoq1LkndfWA` - CIDv0: `QmZkbk8RdTbdKaLmzNx5yinoycn8v7Bqc8ayt6GcREsSaE`
- CIDv1: `bafybeidymy5uhlni5456cwgyyj5wlst44gdh5343cfkivvvdysiwok5uam` - CIDv1: `bafybeifjsmsjmwo6upeelfdmwteod4ybfaqajpjkknqzjwnlqfj5awp75m`
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org). The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
...@@ -10,15 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway. ...@@ -10,15 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway.
Your Uniswap settings are never remembered across different URLs. Your Uniswap settings are never remembered across different URLs.
IPFS gateways: IPFS gateways:
- https://bafybeidymy5uhlni5456cwgyyj5wlst44gdh5343cfkivvvdysiwok5uam.ipfs.dweb.link/ - https://bafybeifjsmsjmwo6upeelfdmwteod4ybfaqajpjkknqzjwnlqfj5awp75m.ipfs.dweb.link/
- https://bafybeidymy5uhlni5456cwgyyj5wlst44gdh5343cfkivvvdysiwok5uam.ipfs.cf-ipfs.com/ - https://bafybeifjsmsjmwo6upeelfdmwteod4ybfaqajpjkknqzjwnlqfj5awp75m.ipfs.cf-ipfs.com/
- [ipfs://QmWSe3hTmjqzZqabn4gHezjj72nWg96k2mnzoq1LkndfWA/](ipfs://QmWSe3hTmjqzZqabn4gHezjj72nWg96k2mnzoq1LkndfWA/) - [ipfs://QmZkbk8RdTbdKaLmzNx5yinoycn8v7Bqc8ayt6GcREsSaE/](ipfs://QmZkbk8RdTbdKaLmzNx5yinoycn8v7Bqc8ayt6GcREsSaE/)
### 5.14.2 (2024-02-27) ### 5.14.3 (2024-02-27)
### Bug Fixes ### Bug Fixes
* **web:** [info] remove markets from pool token (#6613) (#6617) add0389 * **web:** Price fix [hotfix for prod] (#6621) de40c45
web/5.14.2 web/5.14.3
\ No newline at end of file \ No newline at end of file
import { Currency, CurrencyAmount, Fraction, Price } from '@uniswap/sdk-core' import { Currency, CurrencyAmount, Price } from '@uniswap/sdk-core'
import { parseUnits } from 'ethers/lib/utils' import { parseUnits } from 'ethers/lib/utils'
import JSBI from 'jsbi' import JSBI from 'jsbi'
import { useMemo } from 'react' import { useMemo } from 'react'
...@@ -34,10 +34,12 @@ export function useCurrentPriceAdjustment({ ...@@ -34,10 +34,12 @@ export function useCurrentPriceAdjustment({
baseCurrency, baseCurrency,
JSBI.BigInt(parseUnits('1', baseCurrency?.decimals)) JSBI.BigInt(parseUnits('1', baseCurrency?.decimals))
) )
const marketQuote = marketPrice.quote(oneUnitOfBaseCurrency).quotient
const parsedPriceQuote = parsedLimitPrice.quote(oneUnitOfBaseCurrency).quotient const marketQuote = marketPrice.quote(oneUnitOfBaseCurrency)
const difference = JSBI.subtract(parsedPriceQuote, marketQuote) const parsedPriceQuote = parsedLimitPrice.quote(oneUnitOfBaseCurrency)
const percentageChange = new Fraction(difference, marketQuote) const difference = parsedPriceQuote.subtract(marketQuote)
const percentageChange = difference.divide(marketQuote)
const currentPriceAdjustment = Math.floor(Number(percentageChange.multiply(100).toFixed(2))) const currentPriceAdjustment = Math.floor(Number(percentageChange.multiply(100).toFixed(2)))
return { return {
currentPriceAdjustment, currentPriceAdjustment,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment