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
9d37b1bb
Unverified
Commit
9d37b1bb
authored
Nov 29, 2022
by
Jack Short
Committed by
GitHub
Nov 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: sweep adding the correct assets from amms (#5424)
WEB-2438 sudo and nftx fixes
parent
57371fb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Sweep.tsx
src/nft/components/collection/Sweep.tsx
+2
-2
No files found.
src/nft/components/collection/Sweep.tsx
View file @
9d37b1bb
...
@@ -198,7 +198,7 @@ export const Sweep = ({ contractAddress, minPrice, maxPrice }: SweepProps) => {
...
@@ -198,7 +198,7 @@ export const Sweep = ({ contractAddress, minPrice, maxPrice }: SweepProps) => {
if
(
nft20Assets
)
jointCollections
=
[...
jointCollections
,
...
nft20Assets
]
if
(
nft20Assets
)
jointCollections
=
[...
jointCollections
,
...
nft20Assets
]
const
sudoSwapAssetsInJointCollections
=
jointCollections
.
filter
(
const
sudoSwapAssetsInJointCollections
=
jointCollections
.
filter
(
(
sweepAsset
)
=>
sweepAsset
.
marketplace
===
Markets
.
Sudoswap
(
sweepAsset
)
=>
sweepAsset
.
marketplace
===
Markets
.
Sudoswap
&&
!
sweepAsset
.
susFlag
)
)
jointCollections
.
forEach
((
asset
)
=>
{
jointCollections
.
forEach
((
asset
)
=>
{
...
@@ -216,8 +216,8 @@ export const Sweep = ({ contractAddress, minPrice, maxPrice }: SweepProps) => {
...
@@ -216,8 +216,8 @@ export const Sweep = ({ contractAddress, minPrice, maxPrice }: SweepProps) => {
const
poolPrice
=
calcPoolPrice
(
asset
,
isNFTX
?
counterNFTX
:
counterNFT20
)
const
poolPrice
=
calcPoolPrice
(
asset
,
isNFTX
?
counterNFTX
:
counterNFT20
)
if
(
BigNumber
.
from
(
poolPrice
).
gt
(
0
))
{
if
(
BigNumber
.
from
(
poolPrice
).
gt
(
0
))
{
isNFTX
?
counterNFTX
++
:
counterNFT20
++
isNFTX
?
counterNFTX
++
:
counterNFT20
++
asset
.
priceInfo
.
ETHPrice
=
poolPrice
}
}
asset
.
priceInfo
.
ETHPrice
=
poolPrice
}
}
}
}
})
})
...
...
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