Skip to content

Commit 967ef1d

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 a724d38 commit 967ef1d

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
@@ -994,6 +994,12 @@ func (m *Manager) AssetMatchesSpecifier(ctx context.Context,
994994
}
995995
}
996996

997+
// GetPriceDeviationPpm returns the configured price deviation in ppm that is
998+
// used in rfq negotiations.
999+
func (m *Manager) GetPriceDeviationPpm() uint64 {
1000+
return m.cfg.AcceptPriceDeviationPpm
1001+
}
1002+
9971003
// ChannelCompatible checks a channel's assets against an asset specifier. If
9981004
// the specifier is an asset ID, then all assets must be of that specific ID,
9991005
// if the specifier is a group key, then all assets in the channel must belong

0 commit comments

Comments
 (0)