Skip to content

Commit

Permalink
Merge pull request #84 from pnetwork-association/feat/uos-names-update
Browse files Browse the repository at this point in the history
Update UOS swap infos
  • Loading branch information
envin3 authored Apr 9, 2024
2 parents eb6be48 + a26e83b commit fcc603a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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

0 comments on commit fcc603a

Please sign in to comment.