Ejemplo n.º 1
0
 public async Task <bool> IsAllocatedDestinationAsync(
     string to,
     CancellationToken cancellationToken = default)
 {
     return(!string.IsNullOrEmpty(to) && await _tezosAllocationChecker
            .IsAllocatedAsync(to, cancellationToken)
            .ConfigureAwait(false));
 }
Ejemplo n.º 2
0
        public async Task <bool> IsAllocatedDestinationAsync(
            BlockchainTransactionType type,
            string to,
            CancellationToken cancellationToken = default)
        {
            if (to != null)
            {
                return(await _tezosAllocationChecker
                       .IsAllocatedAsync(to, cancellationToken)
                       .ConfigureAwait(false));
            }

            if (type == BlockchainTransactionType.SwapRedeem) // || type == BlockchainTransactionType.SwapRefund)
            {
                return(false);
            }
            else if (type == BlockchainTransactionType.SwapRefund)
            {
                return(false);
            }

            return(false);
        }