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

fix: cross chain sync links #5116

Merged
merged 1 commit into from
Jan 22, 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
1 change: 1 addition & 0 deletions src/components/contextual/pages/pools/StakedPoolsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ watch(
() => userGaugeShares.value,
async val => {
if (!val || isVeBalSupported.value) return;
console.log('userGaugeShares', val);
for (const gauge of val) {
try {
const id = gauge?.gauge.id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ function onCloseModal() {
<template #activator>
<BalLink
:href="syncLayerZeroTxLinks[network]"
:disabled="
!checkIfNetworkSyncing(network) ||
!syncLayerZeroTxLinks[network]
"
external
noStyle
class="group flex items-center"
Expand Down
1 change: 0 additions & 1 deletion src/composables/usePoolHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ export function totalAprLabel(
return '-';
}
if (boost && boost !== '1' && isConnected) {
console.log('boosted');
return numF(absMaxApr(aprs, boost), FNumFormats.bp);
}
if (
Expand Down
4 changes: 2 additions & 2 deletions src/providers/cross-chain-sync.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ export const crossChainSyncProvider = () => {
return '';
}

const { srcUaAddress, dstUaAddress, dstChainId, srcUaNonce } = message;
const link = `https://layerzeroscan.com/101/address/${srcUaAddress}/message/${dstChainId}/address/${dstUaAddress}/nonce/${srcUaNonce}`;
const { srcTxHash } = message;

const link = `https://layerzeroscan.com/tx/${srcTxHash}`;
return link;
}

Expand Down