added the GetCreditSendMaxLimit to tests
This commit is contained in:
		
							parent
							
								
									c11060648d
								
							
						
					
					
						commit
						3e82e16923
					
				| @ -907,3 +907,10 @@ func (das *DevAccountService) CheckTokenInPool(ctx context.Context, poolAddress, | ||||
| 		CanSwapFrom: true, | ||||
| 	}, nil | ||||
| } | ||||
| 
 | ||||
| func (das *DevAccountService) GetCreditSendMaxLimit(ctx context.Context, poolAddress, fromTokenAddress, toTokenAddress, publicKey string) (*models.CreditSendLimitsResult, error) { | ||||
| 	return &models.CreditSendLimitsResult{ | ||||
| 		MaxRAT: "45599996", | ||||
| 		MaxSAT: "3507692", | ||||
| 	}, nil | ||||
| } | ||||
|  | ||||
| @ -120,3 +120,8 @@ func (m MockAccountService) CheckTokenInPool(ctx context.Context, poolAddress, t | ||||
| 	args := m.Called(poolAddress, tokenAddress) | ||||
| 	return args.Get(0).(*models.TokenInPoolResult), args.Error(1) | ||||
| } | ||||
| 
 | ||||
| func (m MockAccountService) GetCreditSendMaxLimit(ctx context.Context, poolAddress, fromTokenAddress, toTokenAddress, publicKey string) (*models.CreditSendLimitsResult, error) { | ||||
| 	args := m.Called(poolAddress, fromTokenAddress, toTokenAddress, publicKey) | ||||
| 	return args.Get(0).(*models.CreditSendLimitsResult), args.Error(1) | ||||
| } | ||||
|  | ||||
| @ -116,3 +116,8 @@ func (m TestAccountService) GetSwapFromTokenMaxLimit(ctx context.Context, poolAd | ||||
| func (m TestAccountService) CheckTokenInPool(ctx context.Context, poolAddress, tokenAddress string) (*models.TokenInPoolResult, error) { | ||||
| 	return &models.TokenInPoolResult{}, nil | ||||
| } | ||||
| 
 | ||||
| func (m TestAccountService) GetCreditSendMaxLimit(ctx context.Context, poolAddress, fromTokenAddress, toTokenAddress, publicKey string) (*models.CreditSendLimitsResult, error) { | ||||
| 	return &models.CreditSendLimitsResult{}, nil | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user