Skip to content

Commit

Permalink
Merge pull request #665 from threefoldtech/development_add_link_to_tf…
Browse files Browse the repository at this point in the history
…tswapping

Added a link for more information about swapping.
  • Loading branch information
Mahmoud-Emad authored Jun 20, 2023
2 parents 542970d + 35945c4 commit 0f9854f
Showing 1 changed file with 15 additions and 0 deletions.
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

0 comments on commit 0f9854f

Please sign in to comment.