loopout: add asset accounting

This commit is contained in:
sputn1ck 2025-01-20 09:16:07 +01:00
parent dfa58d4906
commit 3e3c863819
No known key found for this signature in database
GPG key ID: 671103D881A5F0E4
6 changed files with 920 additions and 682 deletions

View file

@ -349,6 +349,10 @@ func (s *Client) FetchSwaps(ctx context.Context) ([]*SwapInfo, error) {
return nil, swap.ErrInvalidOutputType
}
if swp.Contract.AssetSwapInfo != nil {
swapInfo.AssetSwapInfo = swp.Contract.AssetSwapInfo
}
swaps = append(swaps, swapInfo)
}