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