Skip to content

Commit

Permalink
optimized page view
Browse files Browse the repository at this point in the history
  • Loading branch information
winter520 committed Aug 9, 2022
1 parent 1030886 commit e3a1630
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<%= htmlWebpackPlugin.tags.bodyTags %>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<!-- <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/stellar-freighter-api/1.1.2/index.min.js"></script>
<!-- <script defer src="https://www.googletagmanager.com/gtag/js?id=UA-220410839-2"></script>
<script>
Expand Down
3 changes: 2 additions & 1 deletion src/hooks/near/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ export function useNearSendTxns(
symbol: inputCurrency?.symbol,
version: destConfig.type,
pairid: inputCurrency?.symbol,
routerToken: routerToken
}
addTransaction(txReceipt, {
summary: `Cross bridge ${typedValue} ${inputCurrency?.symbol}`,
Expand All @@ -530,7 +531,7 @@ export function useNearSendTxns(
toAddress: receiverId.indexOf('0x') === 0 ? receiverId?.toLowerCase() : receiverId,
symbol: inputCurrency?.symbol,
version: 'swapin',
routerToken: '',
routerToken: routerToken,
token: inputCurrency?.address,
logoUrl: inputCurrency?.logoUrl,
isLiquidity: destConfig?.isLiquidity,
Expand Down
6 changes: 3 additions & 3 deletions src/utils/bridge/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function recordsTxns ({
const useVersion = version ? version : USE_VERSION
// console.log(version)
// console.log(USE_VERSION)
const ip:any = await getUrlData('https://api.ipify.org/?format=json')
// const ip:any = await getUrlData('https://api.ipify.org/?format=json')
const data = {
hash: hash,
srcChainID: chainId,
Expand All @@ -67,8 +67,8 @@ export function recordsTxns ({
to: to,
symbol: symbol,
pairid: pairid,
userAgent: window?.navigator?.userAgent,
userIP: window?.returnCitySN ? window?.returnCitySN : (ip?.data?.ip ? {cip: ip?.data?.ip} : '')
// userAgent: window?.navigator?.userAgent,
// userIP: window?.returnCitySN ? window?.returnCitySN : (ip?.data?.ip ? {cip: ip?.data?.ip} : '')
}
if (!registerList[hash]) {
registerList[hash] = {
Expand Down

0 comments on commit e3a1630

Please sign in to comment.