diff --git a/src/modules/[chain]/index.vue b/src/modules/[chain]/index.vue index 521dd631..f3afbd37 100644 --- a/src/modules/[chain]/index.vue +++ b/src/modules/[chain]/index.vue @@ -67,7 +67,20 @@ const comLinks = [ ]; // wallet box - +const change = computed(() => { + const token = walletStore.balanceOfStakingToken + return token? format.priceChanges(token.denom) : 0 +}) +const color= computed(() => { + switch(true) { + case change.value > 0: + return "text-green-600" + case change.value === 0: + return "text-grey-500" + case change.value < 0: + return "text-red-600" + } +})