Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/components/TxnList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function TxnList({ transactions, symbol0Override, symbol1Override, color }) {
)}
{!below1080 && (
<DataText area="account">
<Link color={color} external href={'https://explorer-mainnet.maticvigil.com/address/' + item.account}>
<Link color={color} external href={'https://polygonscan.com/address/' + item.account}>
{item.account && item.account.slice(0, 6) + '...' + item.account.slice(38, 42)}
</Link>
</DataText>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Warning/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function Warning({ type, show, setShow, address }) {
fontWeight={500}
lineHeight={'145.23%'}
color={'#2172E5'}
href={'https://explorer-mainnet.maticvigil.com/address/' + address}
href={'https://polygonscan.com/address/' + address}
target="_blank"
>
View {type === 'token' ? 'token' : 'pair'} contract on Explorer
Expand All @@ -92,7 +92,7 @@ export default function Warning({ type, show, setShow, address }) {
fontWeight={500}
lineHeight={'145.23%'}
color={'#2172E5'}
href={'https://explorer-mainnet.maticvigil.com/address/' + address}
href={'https://polygonscan.com/address/' + address}
target="_blank"
>
View {type === 'token' ? 'token' : 'pair'} contract on Explorer
Expand Down
4 changes: 2 additions & 2 deletions src/pages/AccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function AccountPage({ account }) {
<RowBetween>
<TYPE.body>
<BasicLink to="/accounts">{'Accounts '}</BasicLink>→{' '}
<Link lineHeight={'145.23%'} href={'https://explorer-mainnet.maticvigil.com/address/' + account} target="_blank">
<Link lineHeight={'145.23%'} href={'https://polygonscan.com/address/' + account} target="_blank">
{' '}
{account?.slice(0, 42)}{' '}
</Link>
Expand All @@ -169,7 +169,7 @@ function AccountPage({ account }) {
<RowBetween>
<span>
<TYPE.header fontSize={24}>{account?.slice(0, 6) + '...' + account?.slice(38, 42)}</TYPE.header>
<Link lineHeight={'145.23%'} href={'https://explorer-mainnet.maticvigil.com/address/' + account} target="_blank">
<Link lineHeight={'145.23%'} href={'https://polygonscan.com/address/' + account} target="_blank">
<TYPE.main fontSize={14}>View on Explorer</TYPE.main>
</Link>
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/PairPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ function PairPage({ pairAddress, history }) {
</AutoRow>
</Column>
<ButtonLight color={backgroundColor}>
<Link color={backgroundColor} external href={'https://explorer-mainnet.maticvigil.com/address/' + pairAddress}>
<Link color={backgroundColor} external href={'https://polygonscan.com/address/' + pairAddress}>
View on Explorer ↗
</Link>
</ButtonLight>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/TokenPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function TokenPage({ address, history }) {
style={{ width: 'fit-content' }}
color={backgroundColor}
external
href={'https://explorer-mainnet.maticvigil.com/address/' + address}
href={'https://polygonscan.com/address/' + address}
>
<Text style={{ marginLeft: '.15rem' }} fontSize={'14px'} fontWeight={400}>
({address.slice(0, 8) + '...' + address.slice(36, 42)})
Expand Down Expand Up @@ -383,7 +383,7 @@ function TokenPage({ address, history }) {
</AutoRow>
</Column>
<ButtonLight color={backgroundColor}>
<Link color={backgroundColor} external href={'https://explorer-mainnet.maticvigil.com/address/' + address}>
<Link color={backgroundColor} external href={'https://polygonscan.com/address/' + address}>
View on Explorer ↗
</Link>
</ButtonLight>
Expand Down
8 changes: 4 additions & 4 deletions src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ export const setThemeColor = (theme) => document.documentElement.style.setProper
export const Big = (number) => new BigNumber(number)

export const urls = {
showTransaction: (tx) => `https://explorer-mainnet.maticvigil.com/tx/${tx}/`,
showAddress: (address) => `https://explorer-mainnet.maticvigil.com/address/${address}/`,
showToken: (address) => `https://explorer-mainnet.maticvigil.com/tokens/${address}/`,
showBlock: (block) => `https://explorer-mainnet.maticvigil.com/blocks/${block}/`,
showTransaction: (tx) => `https://polygonscan.com/tx/${tx}/`,
showAddress: (address) => `https://polygonscan.com/address/${address}/`,
showToken: (address) => `https://polygonscan.com/token/${address}/`,
showBlock: (block) => `https://polygonscan.com/block/${block}/`,
}

export const formatTime = (unix) => {
Expand Down