HF RL Explorer

Bug: Limit Price Protection prematurely rejects small swaps due to fees being included in tolerance check

Bug: Limit Price Protection prematurely rejects small swaps due to fees being included in tolerance check: a task in LegoFlow-SWE (Harbor dataset). The Limit Price Protection (LPP) max oracle price slippage setting incorrectly includes network and broker fees in its slippage calculation. This…

The task

The Limit Price Protection (LPP) `max_oracle_price_slippage` setting incorrectly includes network and broker fees in its slippage calculation. This causes a bug where the minimum network fee falsely triggers LPP protection on the first chunk of small swaps, even when the swap would otherwise be valid. The current…

Part of Lego-X/LegoFlow-SWE.