Exemple #1
0
        public BigInteger GetTokenSupply(StorageContext storage, string symbol)
        {
            if (!TokenExists(symbol))
            {
                throw new ChainException($"Token does not exist ({symbol})");
            }

            var supplies = new SupplySheet(symbol, RootChain, this);

            return(supplies.GetTotal(storage));
        }
Exemple #2
0
        public BigInteger GetTokenSupply(StorageContext storage, string symbol)
        {
            var supplies = new SupplySheet(symbol, this, Nexus);

            return(supplies.GetTotal(storage));
        }