Commit 9d37b1bb authored by Jack Short's avatar Jack Short Committed by GitHub

fix: sweep adding the correct assets from amms (#5424)

WEB-2438 sudo and nftx fixes
parent 57371fb4
...@@ -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
} }
} }
}) })
......
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