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

Added a link for more information about swapping. #665

Merged
merged 1 commit into from
Jun 20, 2023
Merged
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
15 changes: 15 additions & 0 deletions packages/dashboard/src/portal/components/TftSwapPrice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
<span>TFT Exchange Rate</span>
</v-tooltip>
<p>{{ prices[1].amount }} {{ prices[1].currency }}</p>
<v-tooltip>
<template v-slot:activator="{ on, attrs }">
<v-btn @click="openInfoLink" icon v-bind="attrs" v-on="on" class="d-flex align-center">
<v-icon>mdi-information</v-icon>
</v-btn>
</template>
<span>More information</span>
</v-tooltip>
</div>
</div>
</v-container>
Expand Down Expand Up @@ -58,6 +66,13 @@ export default class TftSwapPrice extends Vue {
}
}

openInfoLink() {
window.open(
"https://stellar.expert/explorer/public/asset/TFT-GBOVQKJYHXRR3DX6NOX2RRYFRCUMSADGDESTDNBDS6CDVLGVESRTAC47-1?asset[]=TFT-GBOVQKJYHXRR3DX6NOX2RRYFRCUMSADGDESTDNBDS6CDVLGVESRTAC47-1&filter=markets&market=USDC-GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN-1",
"_blank",
);
}

async getTFTPrice() {
// Getting the TFT price from the substrate.
const res = await this.$api.query.tftPriceModule.tftPrice();
Expand Down