feat: add retries for swap refund (#1914)

* feat: add retries for swap refund

* chore: address feedback
This commit is contained in:
Adithya Vardhan 2025-11-18 09:35:20 +05:30 committed by GitHub
parent 87146bf80b
commit 1fde06a61d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 67 additions and 33 deletions

View file

@ -756,7 +756,7 @@ func (api *api) RefundSwap(refundSwapRequest *RefundSwapRequest) error {
if api.svc.GetSwapsService() == nil {
return errors.New("SwapsService not started")
}
return api.svc.GetSwapsService().RefundSwap(refundSwapRequest.SwapId, refundSwapRequest.Address)
return api.svc.GetSwapsService().RefundSwap(refundSwapRequest.SwapId, refundSwapRequest.Address, false)
}
func (api *api) GetAutoSwapConfig() (*GetAutoSwapConfigResponse, error) {