コード例 #1
0
 public async Task <bool> IsAllocatedDestinationAsync(
     string to,
     CancellationToken cancellationToken = default)
 {
     return(!string.IsNullOrEmpty(to) && await _tezosAllocationChecker
            .IsAllocatedAsync(to, cancellationToken)
            .ConfigureAwait(false));
 }
コード例 #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);
        }