Skip to content

Commit 5010a0f

Browse files
committed
rfq: manager exposed price deviation ppm
We add a simple helper to expose the configured price deviation ppm to be used by other systems. This is used in a following commit.
1 parent 581c881 commit 5010a0f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rfq/manager.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,12 @@ func (m *Manager) AssetMatchesSpecifier(ctx context.Context,
10121012
}
10131013
}
10141014

1015+
// GetPriceDeviationPpm returns the configured price deviation in ppm that is
1016+
// used in rfq negotiations.
1017+
func (m *Manager) GetPriceDeviationPpm() uint64 {
1018+
return m.cfg.AcceptPriceDeviationPpm
1019+
}
1020+
10151021
// ChannelCompatible checks a channel's assets against an asset specifier. If
10161022
// the specifier is an asset ID, then all assets must be of that specific ID,
10171023
// if the specifier is a group key, then all assets in the channel must belong

0 commit comments

Comments
 (0)