You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For colocated driver, risk parameters should be loaded within solvers crate. Then, RiskCalculator should be used to calculate the success_probability that will be forwarded to driver for Naive,Baseline,Dex solvers.
First, commit d43b05c should be reverted to enable reading the risk parameters.
The text was updated successfully, but these errors were encountered:
# Description
Implements #1899
# Changes
Risk parameters are now part of `solvers` crate configuration.
Based on risk parameters, `success_probability` is calculated and
forwarded to `driver`.
This PR is aware of bad gas estimates used. Better gas estimates might
come from #1531
Currently, `Dex` and `Baseline` solvers are using these bad gas
estimates, while `Naive` solver returns `success_probability=1` since it
does not have any gas estimate.
# Release
Risk parameters need to be defined in the configuration. Risk parameters
should be extracted from
https://github.com/cowprotocol/services/blob/main/crates/solver/src/solver/risk_computation.rs#L53
IF we want to stop using bad gas estimates and just fallback to
`success_probability=1`, then risk parameters need to be set as
`[0,0,0,f64::MAX]`.
For colocated driver, risk parameters should be loaded within
solvers
crate. Then,RiskCalculator
should be used to calculate thesuccess_probability
that will be forwarded todriver
for Naive,Baseline,Dex solvers.First, commit d43b05c should be reverted to enable reading the risk parameters.
The text was updated successfully, but these errors were encountered: