fix: Check security_type in vs exp Equals impl

This commit is contained in:
John Colvin authored and Adeel Khan committed 2024-10-03 17:46:50 +05:00
1 parent 39db44ed63
commit 08484a0954
1 file changed
+4 -1
@@ -51,7 +51,10 @@ namespace mbts.analytics {
public bts.api.SecurityType security_type;
public bool Equals(VolSurfaceExpiration other) {
return other != null && symbol.Equals(other.symbol) && expiration.Equals(other.expiration);
return other != null
&& symbol.Equals(other.symbol)
&& expiration.Equals(other.expiration)
&& security_type == other.security_type;
}
public override int GetHashCode() { return security_type.GetHashCode() ^ symbol.GetHashCode() ^ expiration.GetHashCode(); }