Skip to main content

Module builder

Module builder 

Source
Expand description

Builder fees: what an order pays the builder that routed it, the cap on each market kind, and the setting orders are routed through with what an order needs approved first.

Re-exports§

pub use fee::Builder;
pub use fee::BuilderFee;
pub use fee::OUTCOME_BUILDER_CAP;
pub use fee::OverCap;
pub use fee::PERP_BUILDER_CAP;
pub use fee::SPOT_BUILDER_CAP;
pub use setting::Approval;
pub use setting::ApprovalRefused;
pub use setting::Approved;
pub use setting::BuilderSetting;
pub use setting::FeeRule;

Modules§

fee
A builder’s fee in tenths of a basis point, as an order’s f and maxBuilderFee count it (10 is 1 basis point). approveBuilderFee names the same figure as a percent.
setting
Builder fees as a setting: what each market kind pays the caller’s builder, held to that kind’s cap, and what an order paying it needs first, by what the account has approved and which key signs. Whether the builder can be paid at all is crate::account::builder_readiness.