feat: protocol stats display + parameter sweep fuzzing infrastructure (#106)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
37b1002dae
commit
21857ae8ca
10 changed files with 1592 additions and 308 deletions
|
|
@ -75,6 +75,25 @@
|
|||
</div>
|
||||
</FCard>
|
||||
|
||||
<FCard title="Protocol Stats">
|
||||
<div class="cheats-form">
|
||||
<template v-if="!statCollection.initialized">
|
||||
<p class="cheats-hint">Loading protocol stats…</p>
|
||||
</template>
|
||||
<template v-else-if="statCollection.statsError">
|
||||
<p class="cheats-warning">{{ statCollection.statsError }}</p>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="liquidity-meta">
|
||||
<span>Total Supply: {{ formatEth(statCollection.kraikenTotalSupply) }} KRK</span>
|
||||
</div>
|
||||
<div class="liquidity-meta">
|
||||
<span>Total Staked: {{ formatEth(statCollection.outstandingStake) }} KRK</span>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</FCard>
|
||||
|
||||
<div class="cheats-grid">
|
||||
<FCard title="Mint ETH">
|
||||
<div class="cheats-form">
|
||||
|
|
@ -127,6 +146,7 @@ import FButton from '@/components/fcomponents/FButton.vue';
|
|||
import FCard from '@/components/fcomponents/FCard.vue';
|
||||
import FInput from '@/components/fcomponents/FInput.vue';
|
||||
import { config } from '@/wagmi';
|
||||
import { useStatCollection } from '@/composables/useStatCollection';
|
||||
import { useToast } from 'vue-toastification';
|
||||
import { useAccount } from '@wagmi/vue';
|
||||
import { getChain, DEFAULT_CHAIN_ID } from '@/config';
|
||||
|
|
@ -149,6 +169,7 @@ import {
|
|||
} from 'viem';
|
||||
|
||||
const toast = useToast();
|
||||
const statCollection = useStatCollection();
|
||||
const { address, chainId } = useAccount();
|
||||
const wagmiConfig: WagmiConfig = config;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue