Repository navigation
solana-driver: report the network fee in /quote - #5101
squadgazzz wants to merge 4 commits into
Conversation
|
Reminder: Please consider backward compatibility when modifying the API specification.
Caused by: |
The driver's `/quote` answers `networkFee` for the quoted route (#5101), so BE-366 takes the fee from there rather than pricing the compute unit ceiling at a configured price. The TODO and the openapi text name that instead of the formula that goes away.
|
Claude finished @squadgazzz's task in 2m 51s —— View job PR Review:
|
Description
The driver prices the route and the orderbook prices the trade, the EVM
gasshape, but the Solana driver's/quoteanswers the amounts only, so the orderbook prices every quote at a 6,400 lamport placeholder (#5055): the compute unit ceiling at a made-up price./quoteanswersnetworkFeein lamports: the 5,000 lamport signature fee plus the priority fee the driver's own estimator gives over the accounts the quoted interactions write, at the engine'scuEstimate, or at the 1.4M unit ceiling when the engine sent none. Those are the numberssettlepays. A fee over the configured budget refuses the quote withPriorityFeeTooHigh, as it refuses the settlement. The amounts stay the engine's raw legs, the orderbook nets the fee in BE-366.Changes
/quoteanswersnetworkFee, documented inopenapi.ymlEstimate::network_feeadds the signature fee to the priority feeHow to test
New and updated driver API tests.
Related issues
BE-411