{{ define "vsp-stats" }}

<div class="row vsp-stats">
    
    <div class="col-6 col-sm-4 col-lg-2 py-3">
        <div class="stat-title">Live tickets</div>
        <div class="stat-value">{{ comma .WebApiCache.Voting }}</div>
    </div>

    <div class="col-6 col-sm-4 col-lg-2 py-3">
        <div class="stat-title">Voted tickets</div>
        <div class="stat-value">{{ comma .WebApiCache.Voted }}</div>
    </div>

    <div class="col-6 col-sm-4 col-lg-2 py-3">
        <div class="stat-title">Revoked tickets</div>
        <div class="stat-value">
            {{ comma .WebApiCache.Revoked }}
            <span class="text-muted">({{ float32ToPercent .WebApiCache.RevokedProportion }})</span>
        </div>
    </div>

    <div class="col-6 col-sm-4 col-lg-2 py-3">
        <div class="stat-title">VSP Fee</div>
        <div class="stat-value">{{ .WebApiCfg.VSPFee }}%</div>
    </div>

    <div class="col-6 col-sm-4 col-lg-2 py-3">
        <div class="stat-title">Network</div>
        <div class="stat-value">{{ .WebApiCfg.NetParams.Name }}</div>
    </div>

    <div class="col-6 col-sm-4 col-lg-2 py-3">
        <div class="stat-title">Network Proportion</div>
        <div class="stat-value">{{ float32ToPercent .WebApiCache.NetworkProportion }}</div>
    </div>

</div>

{{ end }}
