Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update UOS swap infos #84

Merged
merged 2 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sweet-sheep-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ptokens-dapp-v2': minor
---

update UOS swap infos
10 changes: 9 additions & 1 deletion src/components/pages/swap/Swap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ReactTooltip from 'react-tooltip'
import styled from 'styled-components'

import TermsOfService from '../../../components/molecules/popup/TermsOfService'
import { MAX_IMPACT, PBTC_ON_ETH_MAINNET_V1_MIGRATION } from '../../../constants'
import { MAX_IMPACT, PBTC_ON_ETH_MAINNET_V1_MIGRATION, PUOS_ON_ULTRA_MAINNET } from '../../../constants'
import { sendEvent } from '../../../ga4'
import { useAssets } from '../../../hooks/use-assets'
import { useSwap } from '../../../hooks/use-swap'
Expand Down Expand Up @@ -393,6 +393,14 @@ const Swap = ({
0x1003d3574ac79303a5fa0951ecb04cc7acba9747) and it is the only official pBTC representation on BSC.
</InfoEta>
) : null}
{to && to.id === 'UOS' ? (
<InfoEta>
By bridging to Ethereum you will get native ERC20 UOS tokens passing through the pUOS pToken
</InfoEta>
) : null}
{to && to.id === PUOS_ON_ULTRA_MAINNET ? (
<InfoEta>By bridging to Ultra you will get native UOS tokens passing through the pUOS pToken</InfoEta>
) : null}
{to && to.id === 'PBTC_ON_ALGORAND_MAINNET' ? (
<InfoEta>
Please make sure that the receiving Algorand account has opted in for pBTC (Asset ID: {to.address}).
Expand Down
2 changes: 2 additions & 0 deletions src/settings/swap-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ const swapAssets = [
isPerc20: true,
chainId: ChainId.UltraMainnet,
onPnetworkV2: true,
formattedName: 'Native UOS',
},
{
address: '0x9b917D94Fb0138eDF520332f3d45494f1a74Bec8',
Expand Down Expand Up @@ -1174,6 +1175,7 @@ const swapAssets = [
image: 'UOS.svg',
withBalanceDecimalsConversion: true,
chainId: ChainId.EthereumMainnet,
formattedName: 'ERC20 UOS',
},
{
address: 'everipediaiq',
Expand Down