added the GetCreditSendReverseQuote to tests
This commit is contained in:
		
							parent
							
								
									7eaa771eb4
								
							
						
					
					
						commit
						fe897cca84
					
				| @ -914,3 +914,10 @@ func (das *DevAccountService) GetCreditSendMaxLimit(ctx context.Context, poolAdd | ||||
| 		MaxSAT: "3507692", | ||||
| 	}, nil | ||||
| } | ||||
| 
 | ||||
| func (das *DevAccountService) GetCreditSendReverseQuote(ctx context.Context, poolAddress, fromTokenAddress, toTokenAddress, toTokenAMount string) (*models.CreditSendReverseQouteResult, error) { | ||||
| 	return &models.CreditSendReverseQouteResult{ | ||||
| 		InputAmount:  "3076923", | ||||
| 		OutputAmount: "40000000", | ||||
| 	}, nil | ||||
| } | ||||
|  | ||||
| @ -125,3 +125,8 @@ func (m MockAccountService) GetCreditSendMaxLimit(ctx context.Context, poolAddre | ||||
| 	args := m.Called(poolAddress, fromTokenAddress, toTokenAddress, publicKey) | ||||
| 	return args.Get(0).(*models.CreditSendLimitsResult), args.Error(1) | ||||
| } | ||||
| 
 | ||||
| func (m MockAccountService) GetCreditSendReverseQuote(ctx context.Context, poolAddress, fromTokenAddress, toTokenAddress, toTokenAMount string) (*models.CreditSendReverseQouteResult, error) { | ||||
| 	args := m.Called(poolAddress, fromTokenAddress, toTokenAddress, toTokenAMount) | ||||
| 	return args.Get(0).(*models.CreditSendReverseQouteResult), args.Error(1) | ||||
| } | ||||
|  | ||||
| @ -128,3 +128,7 @@ func (m TestAccountService) CheckTokenInPool(ctx context.Context, poolAddress, t | ||||
| func (m TestAccountService) GetCreditSendMaxLimit(ctx context.Context, poolAddress, fromTokenAddress, toTokenAddress, publicKey string) (*models.CreditSendLimitsResult, error) { | ||||
| 	return &models.CreditSendLimitsResult{}, nil | ||||
| } | ||||
| 
 | ||||
| func (m TestAccountService) GetCreditSendReverseQuote(ctx context.Context, poolAddress, fromTokenAddress, toTokenAddress, toTokenAMount string) (*models.CreditSendReverseQouteResult, error) { | ||||
| 	return &models.CreditSendReverseQouteResult{}, nil | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user