public Task <InterceptorResult> CheckSendRequestAsync(long satoshiAmount, string to, string currency,
                                                       bool isReferral)
 {
     if (!Currency.Equals(currency, StringComparison.OrdinalIgnoreCase))
     {
         return(Task.FromResult(InterceptorResult.Success()));
     }
     return(Task.FromResult(InterceptorResult.IfFailure(satoshiAmount > SatoshiLimit,
                                                        () => $"The send value ({satoshiAmount} {currency} satoshi) is higher than limit ({SatoshiLimit} {currency} satoshi).")));
 }
Beispiel #2
0
 public InterceptorFailException(string message, InterceptorResult result, Exception innerException,
                                 Type interceptorType = null) : base(message, innerException)
 {
     InterceptorType = interceptorType;
     Result          = result;
 }
Beispiel #3
0
 public InterceptorFailException(InterceptorResult result, Type interceptorType = null) : base(result.Message)
 {
     InterceptorType = interceptorType;
     Result          = result;
 }