Skip to main content

get_builder

Function get_builder 

Source
pub fn get_builder(
    dex: DexKind,
    rpc: Arc<RpcClient>,
) -> Option<Box<dyn SwapInstructionBuilder>>
Expand description

Factory: get the right builder for a DEX. rpc will be forwarded to each builder once they accept Arc<RpcClient> (tasks 2–4).