Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
1540a646
Commit
1540a646
authored
Feb 27, 2024
by
Uniswap Labs Service Account
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci(release): publish latest release
parent
eac404cb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
13 deletions
+15
-13
RELEASE
RELEASE
+7
-7
VERSION
VERSION
+1
-1
useCurrentPriceAdjustment.ts
...utPanel/LimitPriceInputPanel/useCurrentPriceAdjustment.ts
+7
-5
No files found.
RELEASE
View file @
1540a646
IPFS hash of the deployment:
IPFS hash of the deployment:
- CIDv0: `Qm
WSe3hTmjqzZqabn4gHezjj72nWg96k2mnzoq1LkndfWA
`
- CIDv0: `Qm
Zkbk8RdTbdKaLmzNx5yinoycn8v7Bqc8ayt6GcREsSaE
`
- CIDv1: `bafybei
dymy5uhlni5456cwgyyj5wlst44gdh5343cfkivvvdysiwok5ua
m`
- CIDv1: `bafybei
fjsmsjmwo6upeelfdmwteod4ybfaqajpjkknqzjwnlqfj5awp75
m`
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://bafybei
dymy5uhlni5456cwgyyj5wlst44gdh5343cfkivvvdysiwok5ua
m.ipfs.dweb.link/
- https://bafybei
fjsmsjmwo6upeelfdmwteod4ybfaqajpjkknqzjwnlqfj5awp75
m.ipfs.dweb.link/
- https://bafybei
dymy5uhlni5456cwgyyj5wlst44gdh5343cfkivvvdysiwok5ua
m.ipfs.cf-ipfs.com/
- https://bafybei
fjsmsjmwo6upeelfdmwteod4ybfaqajpjkknqzjwnlqfj5awp75
m.ipfs.cf-ipfs.com/
- [ipfs://Qm
WSe3hTmjqzZqabn4gHezjj72nWg96k2mnzoq1LkndfWA/](ipfs://QmWSe3hTmjqzZqabn4gHezjj72nWg96k2mnzoq1LkndfWA
/)
- [ipfs://Qm
Zkbk8RdTbdKaLmzNx5yinoycn8v7Bqc8ayt6GcREsSaE/](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
VERSION
View file @
1540a646
web/5.14.2
web/5.14.3
\ No newline at end of file
\ No newline at end of file
apps/web/src/components/CurrencyInputPanel/LimitPriceInputPanel/useCurrentPriceAdjustment.ts
View file @
1540a646
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment