Skip to content

Commit

Permalink
fixup! CurrencyManager: Set AssetEnabled when StorePairs(enabled)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Dec 11, 2024
1 parent 21e00f9 commit c092bfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion currency/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ func (p *PairsManager) GetFormat(a asset.Item, request bool) (PairFormat, error)
// StorePairs stores a list of pairs for an asset type
// If enabled is true:
// * AssetEnabled is set true if the pair list is not empty
// * pairs replace the Enabled pairs, but are added to the Available pairs
// * pairs replace the Enabled pairs
// * pairs are added to Available pairs
func (p *PairsManager) StorePairs(a asset.Item, pairs Pairs, enabled bool) error {
if !a.IsValid() {
return fmt.Errorf("%s %w", a, asset.ErrNotSupported)
Expand Down

0 comments on commit c092bfa

Please sign in to comment.